Recent

Author Topic: ODBC lazarus  (Read 6054 times)

rhmargus

  • New Member
  • *
  • Posts: 16
ODBC lazarus
« on: July 07, 2004, 05:03:29 pm »
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

  • Guest
Please, check the following things
« Reply #1 on: July 07, 2004, 10:45:14 pm »
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

  • New Member
  • *
  • Posts: 16
MYSQLDB
« Reply #2 on: July 08, 2004, 01:53:27 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
ODBC lazarus
« Reply #3 on: July 08, 2004, 03:59:38 pm »
This looks like an fpc bug. A work-around may be to do Build All, before doing run.

 

TinyPortal © 2005-2018