PDA

View Full Version : Qt 4.1.4 & Mysql 5 on Linux x64



bothapn
4th August 2006, 12:20
Hi,

I'm trying to compile Qt 4.1.4 on Suse Linux amd64 with mysql support.
My configure statement is as follows:
./configure -fast -fontconfig -tablet -xkb -qt-zlib -qt-sql-mysql -debug -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -Istring=/usr/include/mysql -v

My output is as follows:
Creating qmake. Please wait...
gmake: Nothing to be done for `first'.
InterBase auto-detection... ()
g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o ibase.o ibase.cpp
ibase.cpp:1:19: error: ibase.h: No such file or directory
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o mysql.o mysql.cpp
mysql.cpp:1:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
MySQL support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.


Locate mysql.h gives me:
/usr/include/mysql/mysql.h

I'm running Mysql 5 and have the mysql-devel package installed.

Any help will be greatly appreciated.

Thanx!

jacek
4th August 2006, 12:21
My configure statement is as follows:
./configure -fast -fontconfig -tablet -xkb -qt-zlib -qt-sql-mysql -debug -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -Istring=/usr/include/mysql -v
Remove that "string=".

bothapn
4th August 2006, 12:27
Didnt work. :(

bothapn
4th August 2006, 12:30
Ha, it works now. Forgot to remove the = sign as well.
Tx!!

For other readers.. This -I is different in 4.1.4 than in 4.1.3 because in 4.1.3 one has to have -Istring but in 4.1.4, it is just -I

jacek
4th August 2006, 12:36
This -I is different in 4.1.4 than in 4.1.3 because in 4.1.3 one has to have -Istring but in 4.1.4, it is just -I
It always has been -I.

bothapn
4th August 2006, 12:44
I compiled 4.1.3 with -Istring if I remeber correctly

jacek
4th August 2006, 13:04
I compiled 4.1.3 with -Istring if I remeber correctly
If you did, it worked only because configure could find all required headers on its own.

bothapn
4th August 2006, 13:23
Ah well.. thanks for the info!