[Qt-embedded-interest] Problem with MySQL and QtE

Kevin Gilbert kevin952 at tpg.com.au
Mon Sep 22 07:46:34 CEST 2008


I'm having troubles with Qt-Embedded and MySQL. I've configured QtE with the 
command:

./configure -phonon -no-accessibility -no-cups -v

and the following is an edited version of the configure & make output.

<snip>
MySQL (thread-safe) auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-generic-g++ -I. -
I/usr/include/mysql -I. -o mysql.o ../mysql/mysql.cpp
g++ -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.4.1/lib -o mysql_r mysql.o     
-L/usr/lib/mysql -lz -lpthread -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -
lmysqlclient_r
MySQL (thread-safe) enabled.
<snip>
MySQL support ....... plugin
<snip>
  Reading /home/kmg/qt/qt-embedded-linux-opensource-
src-4.4.1/src/plugins/sqldrivers/mysql/mysql.pro
<snip>
  for /home/kmg/qt/qt-embedded-linux-opensource-
src-4.4.1/src/plugins/sqldrivers/mysql/mysql.pro (linux-generic-g++)
/home/kmg/qt/qt-embedded-linux-opensource-src-4.4.1/bin/qmake -spec 
/home/kmg/qt/qt-embedded-linux-opensource-src-4.4.1/mkspecs/qws/linux-generic-
g++ -o /home/kmg/qt/qt-embedded-linux-opensource-
src-4.4.1/./src/plugins/sqldrivers/mysql /home/kmg/qt/qt-embedded-linux-
opensource-src-4.4.1/src/plugins/sqldrivers/mysql/mysql.pro
<snip>
cd mysql/ && gmake -f Makefile
gmake[3]: Entering directory `/home/kmg/qt/qt-embedded-linux-opensource-
src-4.4.1/src/plugins/sqldrivers/mysql'
gmake[3]: Nothing to be done for `first'.
gmake[3]: Leaving directory `/home/kmg/qt/qt-embedded-linux-opensource-
src-4.4.1/src/plugins/sqldrivers/mysql'
<snip>

Of course, when I run a QtE/MySQL application it fails because there is no 
database driver. I've tried various things but none work. Why wont MySQL work 
with my build of QtE? What am I doing wrong?

Thanks in advance,
Kevin




More information about the Qt-embedded-interest mailing list