Results 1 to 8 of 8

Thread: Qt 4.1.4 & Mysql 5 on Linux x64

  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.1.4 & Mysql 5 on Linux x64

    Hi,

    I'm trying to compile Qt 4.1.4 on Suse Linux amd64 with mysql support.
    My configure statement is as follows:
    ./configure -fast -fontconfig -tablet -xkb -qt-zlib -qt-sql-mysql -debug -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -Istring=/usr/include/mysql -v

    My output is as follows:
    Creating qmake. Please wait...
    gmake: Nothing to be done for `first'.
    InterBase auto-detection... ()
    g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o ibase.o ibase.cpp
    ibase.cpp:1:19: error: ibase.h: No such file or directory
    make: *** [ibase.o] Error 1
    InterBase disabled.
    MySQL (thread-safe) auto-detection... ()
    g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o mysql.o ../mysql/mysql.cpp
    ../mysql/mysql.cpp:1:19: error: mysql.h: No such file or directory
    make: *** [mysql.o] Error 1
    MySQL (thread-safe) disabled.
    MySQL (thread-unsafe) auto-detection... ()
    g++ -c -m64 -pipe -O2 -Wall -W -I../../../mkspecs/linux-g++-64 -I. -Istring=/usr/include/mysql -I. -o mysql.o mysql.cpp
    mysql.cpp:1:19: error: mysql.h: No such file or directory
    make: *** [mysql.o] Error 1
    MySQL (thread-unsafe) disabled.
    MySQL support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to ./configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to ./configure to continue.


    Locate mysql.h gives me:
    /usr/include/mysql/mysql.h

    I'm running Mysql 5 and have the mysql-devel package installed.

    Any help will be greatly appreciated.

    Thanx!

  2. #2
    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: Qt 4.1.4 & Mysql 5 on Linux x64

    Quote Originally Posted by bothapn
    My configure statement is as follows:
    ./configure -fast -fontconfig -tablet -xkb -qt-zlib -qt-sql-mysql -debug -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -Istring=/usr/include/mysql -v
    Remove that "string=".

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

    bothapn (4th August 2006)

  4. #3
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.1.4 & Mysql 5 on Linux x64

    Didnt work.

  5. #4
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.1.4 & Mysql 5 on Linux x64

    Ha, it works now. Forgot to remove the = sign as well.
    Tx!!

    For other readers.. This -I is different in 4.1.4 than in 4.1.3 because in 4.1.3 one has to have -Istring but in 4.1.4, it is just -I

  6. #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: Qt 4.1.4 & Mysql 5 on Linux x64

    Quote Originally Posted by bothapn
    This -I is different in 4.1.4 than in 4.1.3 because in 4.1.3 one has to have -Istring but in 4.1.4, it is just -I
    It always has been -I.

  7. #6
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.1.4 & Mysql 5 on Linux x64

    I compiled 4.1.3 with -Istring if I remeber correctly

  8. #7
    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: Qt 4.1.4 & Mysql 5 on Linux x64

    Quote Originally Posted by bothapn
    I compiled 4.1.3 with -Istring if I remeber correctly
    If you did, it worked only because configure could find all required headers on its own.

  9. #8
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.1.4 & Mysql 5 on Linux x64

    Ah well.. thanks for the info!

Similar Threads

  1. Embedded Mysql Windows Qt4.1
    By benguela in forum Qt Programming
    Replies: 7
    Last Post: 17th January 2007, 00:13
  2. 4.1.4 built from source, qmake fails with Hello World
    By Mookie in forum Installation and Deployment
    Replies: 6
    Last Post: 27th June 2006, 23:13
  3. Qt 4.1.2 Fails to build on Linux
    By rohandhruva in forum Installation and Deployment
    Replies: 6
    Last Post: 16th April 2006, 21:44
  4. Crosscompile Qt in Linux
    By Morea in forum General Discussion
    Replies: 4
    Last Post: 13th April 2006, 18:19
  5. Qt 4.1 OS on Windows & mysql
    By neeko in forum Installation and Deployment
    Replies: 10
    Last Post: 31st January 2006, 20:22

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.