Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-08-2004, 05:33 AM   #1
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
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_
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.

Old 02-08-2004, 08:45 AM   #2
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
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.

Last edited by Kroenecker; 02-08-2004 at 08:47 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 08:32 AM
compiling from source manicman Linux - Newbie 2 10-26-2005 04:49 PM
Compiling from source... (64) Blash Linux - Software 8 06-11-2005 01:31 AM
Compiling Source ripmaster Linux - Newbie 5 08-19-2004 02:02 AM
compiling software from do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 10:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration