[Qt-interest] embedded Qt on ubuntu 8.04 - compiling the mysql driver keeps failing
Pau Garcia i Quiles
pgquiles at elpauer.org
Wed Jan 20 00:24:38 CET 2010
Hello,
Qt 4.6.0 for Hardy, including the MySQL driver, is available from my PPA:
http://launchpad.net/~pgquiles/+archive/ppa
Qt 4.6.1 will be available soon, too
On Tue, Jan 19, 2010 at 11:58 PM, S. Aguinaga <sa_jr at yahoo.com> wrote:
> 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
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the Qt-interest-old
mailing list