Results 1 to 5 of 5

Thread: MySQL on Qt4

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default MySQL on Qt4

    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,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Feb 2008
    Posts
    21
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: MySQL on Qt4

    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.
    The most difficult in the world is to live in it

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: MySQL on Qt4

    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,
    Òscar Llarch i Galán

  4. #4
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: MySQL on Qt4

    Hi again,

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

    Thanks,
    Òscar Llarch i Galán

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySQL on Qt4

    Quote Originally Posted by ^NyAw^ View Post
    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.

  6. The following user says thank you to jacek for this useful post:

    ^NyAw^ (10th April 2008)

Similar Threads

  1. mysql configuration with qt
    By bala in forum Installation and Deployment
    Replies: 3
    Last Post: 6th November 2007, 11:02
  2. qt4.3.1 mysql problem
    By twells55555 in forum Qt Programming
    Replies: 5
    Last Post: 8th October 2007, 21:26
  3. MySQL starting problem
    By shamik in forum General Discussion
    Replies: 5
    Last Post: 25th April 2007, 07:20
  4. Qt 4.1.4 & Mysql 5 on Linux x64
    By bothapn in forum Installation and Deployment
    Replies: 7
    Last Post: 4th August 2006, 13:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.