[lazarus] TMPack link error.

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 13 11:17:45 EST 2003

On Thu, 13 Nov 2003 12:48:37 +0100
Florian Klaempfl <Florian.Klaempfl at gmx.de> wrote:

> Ken Moffat wrote:
> > I have attempted to add TMPack to my Lazarus install. Untarred in to a 
> > directory under my home, opened lazarus as root, opened the file 
> > tmpack.lpk, and tried install. This gave the message about having to 
> > recompile lazarus, so I clicked Okay to recompile, and this is how the 
> > procedure ended:
> > 
> > TOutputFilter: "Free Pascal Compiler version 1.0.11 [2003/10/22] for
> > i386" TOutputFilter: "Copyright (c) 1993-2003 by Florian Klaempfl"
> > TOutputFilter: "Target OS: Linux for i386"
> > TOutputFilter: "Compiling lazarus.pp"
> > TOutputFilter: "Assembling lazarus"
> > TOutputFilter: "Linking ./lazarus"
> > TOutputFilter: "/usr/bin/ld: cannot find -lmysqlclient"
> > TOutputFilter: "lazarus.pp(352) Error: Error while linking"
> > TOutputFilter: "Closing script ./ppas.sh"
> > TOutputFilter: "make[1]: *** [lazarus] Error 1"
> > TExternalToolList.Run make[1]: *** [lazarus] Error 1
> > 
> > I had previously attempted to add mysqlaz to the ide without success.
> > (/usr/share/lazarus/components/mysql/) I don't know if this had an
> > effect.
> The component isn't enough, you need also the appropriate mysql 
> developement library for your system. It's called libmyqlclient-dev or 
> similiar.
> To lazarus developers: maybe there should be an option for the packages 
> so that they check the library requirements of an installed package.

I'm for it. Can you give some hints, how such things should look like? That
means, how a user should define such checks. Under win32/linux/xxxbsd and
how to define it platform independently. I plan to add conditional compiler
options and I think, these things should work hand in hand. 
Some examples would be nice, so I can see, what tasks need to be supported.


More information about the Lazarus mailing list