Forum > Linux

ODBC lazarus

(1/1)

rhmargus:
Hello !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I use Fedora Core 2, and install fpc, fpcsrc from rpm package. I use lazarus source code, when compiling with "make clean all" in my home directory.
MySQL 3, MySQL devel packages ...
When I add MySQL package in IDE all is OK, but when is project run stop with error :

         /usr/bin/ld: Cant find -lmysqlclient
In a forum I read "libmysqlclient.so -> libmysqlclient.some.version.so"
How do that ??????????????????

I read http://lazarus-ccr.sourceforge.net/index.php?wiki=LazarusDatabase

but:

ln-s /usr/lib/mysql/libmysqlclient.so.10.0.0 /usr/bin/lmysqlcient
ln-s /usr/lib/mysql/libmysqlclient.so.10.0.0 /usr/bin/libmysqlcient.so
ln-s /usr/lib/mysql/libmysqlclient.so.10.0.0 /usr/bin/mysqlcient

not solve the problem.



Please help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Anonymous:
rhmargus:

Do'nt forget to change the /etc/fpc.cfg and enable :

-Fl/lib;/usr/lib

and the following line must be:

 ln -s /usr/lib/mysql/libmysqlclient.so.10.0.0 /usr/lib/libmysqlclient.so
                                                 
Pay attention that the folder is /usr/lib (not /usr/bin)

Have a nice day...
Eduardo.

rhmargus:
I have another error

 When i placed control on form and RUN

Error: unit MYSQLDB cant't be shared or static linked :cry:

Vincent Snijders:
This looks like an fpc bug. A work-around may be to do Build All, before doing run.

Navigation

[0] Message Index

Go to full version