[Qt-interest] embedded Qt on ubuntu 8.04 - compiling the mysql driver keeps failing

S. Aguinaga sa_jr at yahoo.com
Tue Jan 19 23:58:17 CET 2010


Hello Fellows,

I've exhausted my options, and you are my only hope!
I have an Atom board running ubuntu 8.04 because I want to use an ELO acoustic response touch screen and their driver was tested on this Linux distro.
I downloaded qt embedded and compiled it from source.  After that I went to the plugins/sqldrivers/mysql  folder to create this driver and I fail to make work with the notes from trolltech/nokia: 
    http://qt.nokia.com/doc/4.5/sql-driver.html#embedded-mysql-server

When try to link using -lmysqld I get the following error:
/usr/bin/ld: cannot find -lmysqld
collect2: ld returned 1 exit status
make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1

The source is: qt-everywhere-opensource-src-4.6.0/

I noticed that the suggested line to create the Makefile in $QTDIR/src/plugins/sqldrivers/mysql: 

qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqld" mysql.pro

but when I check my /usr/local/include and my /usr/local/lib ... these are pretty empty.:
  ls /usr/local/include/
  arsclib.h  fftlib.h

and

  ls  /usr/local/lib
  libarsc.a  libfft.a  libsio.a  python2.5  site_ruby

so I changed the recommende qmake line to 
qmake "INCLUDEPATH+=/usr/include" "LIBS+=-L/usr/lib -lmysqld" mysql.pro

and when I type "make" I get the error about mysqld not found. So I looked for the daemon, and it's found 
at /sbin/mysqld
and I also restarted mysql by typing sudo /etc/init.d/mysql restart ... which ends gracefully.  

Any ideas on how to get past the "/usr/bin/ld: cannot find -lmysqld" as I try to get my embedded system working
please let me know. 


// Salvador Aguinaga
// Northwestern University


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100119/51e9405e/attachment.html 


More information about the Qt-interest-old mailing list