LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-08-2004, 05:33 AM   #1
Kroenecker
Member
 
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_
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.
 
Old 02-08-2004, 08:45 AM   #2
Kroenecker
Member
 
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.
 
  


Reply


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 source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 10:09 PM


All times are GMT -5. The time now is 03:59 PM.

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