PDA

View Full Version : MySQL on Qt4



^NyAw^
4th April 2008, 16:13
Hi,

I'm trying to compile Qt4 with MySQL support using "-qt-sql-mysql".
I have MySQL installed on default installation dir "C:\Program Files\..."
When trying to recompile Qt I get an error that "mysql.h" could not be found.

Anyone knows how to let the configure program where to find MySQL?

Some time ago I found information about it but now I can't find it.

Thanks,

jd
4th April 2008, 16:30
I think there is a problem with spaces in "program Files".
Install MySQL in C:\MySQL

In the standard installation of MySQL, the mysql-header files will not be installed.
Choose the costum installation and select the library files.

^NyAw^
4th April 2008, 16:49
Hi,

I have changed the installation dir and the problem persists.
Then I have looked at "LIB" envoirment variable and points to %MySQL%\lib, and when I go to this directory I see that there are two kind of libs, "opt" and "debug", so adding "\debug" to the envoirment variable it now works.

Thanks for reply,

^NyAw^
4th April 2008, 16:52
Hi again,

What is the difference on compiling Qt with sql as plugin or as not plugin? The same question for JPEG, ...

Thanks,

jacek
10th April 2008, 16:12
What is the difference on compiling Qt with sql as plugin or as not plugin? The same question for JPEG, ...
Plugins are in separate files, so you will have more files to install. On other hand you can add or remove them whenever you want.