LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling Qt-3.2.1 from source (https://www.linuxquestions.org/questions/linux-software-2/compiling-qt-3-2-1-from-source-143589/)

Kroenecker 02-08-2004 04:33 AM

Compiling Qt-3.2.1 from source
 
I am trying to compile Qt-3.2.1 with the flag -with-sql-mysql but I get the following error:

g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_
THREAD_SUPPORT -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_SQL_MYSQL -DQT_NO_IMAGEIO_MNG -DQT_N
O_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_ST
YLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/mnt/sources/beyond/qt-x11-free-3.2.1/mkspecs/linux-g++ -I. -I/usr/X11R6/i
nclude/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release
-shared-mt/qsqldatabase.o sql/qsqldatabase.cpp
In file included from sql/qsqldatabase.cpp:45:
sql/drivers/mysql/qsql_mysql.h:49:19: mysql.h: No such file or directory
In file included from sql/qsqldatabase.cpp:45:
sql/drivers/mysql/qsql_mysql.h:69: error: syntax error before `*' token
sql/drivers/mysql/qsql_mysql.h:90: error: parse error before `*' token
sql/drivers/mysql/qsql_mysql.h:108: error: syntax error before `*' token
make: *** [.obj/release-shared-mt/qsqldatabase.o] Error 1

I am specifically trying to compile the QMYSQL3 driver. Qt already is installed on my system but the original install did not make this driver (I think).

Now I have a question:

Doesnt the source package already contain everything I need? Header and development packages are for package systems, right?

My system is an LFS 5. I have painstakingly compiled and installed everything as the book says with very few deviations. Any suggestions? I want to be able to use MythTV on my box and it needs the QMYSQL3 driver. So really the driver is all that I
want to compile.

Thanks.

Kroenecker 02-08-2004 07:45 AM

Well maybe no one else really tries to compile Qt from source (or at least most are luckier than I :) anyway....

I had to set -I/path/to/includes/mysql and -L/path/to/lib/mysql in order to overcome the problem above.

(when doing ./configure I appended the two paths ... and the first is -I as in includes not an L ... anyway, if you are like me this is ALL new territory)

Then I had another problem. I got an error about a mysql library not being found...looking into the error message I saw that for some reason the library path from above was not being used so I just make a symbolic link to the lib file. I made the symbolic link in the direcory that was being searched (it was the library directory in the source code for QT).

Funky errors. I hope that I can get Myth to run after all of this.


All times are GMT -5. The time now is 07:25 AM.