Results 1 to 5 of 5

Thread: Qt 4.2.3 with MSVC 2005 and MySQL

  1. #1
    Join Date
    May 2006
    Posts
    108
    Thanks
    35
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Qt 4.2.3 with MSVC 2005 and MySQL

    Hi,

    how can i compile Qt 4.2.3 with MSVC 2005 and MySQL?

    I use MySQL 5.0.3.7 without installer from:
    http://dev.mysql.com/get/Downloads/M...tabases/mysql/

    I configure Qt with this command:
    configure -platform win32-msvc2005 -I C:\MySQLl\include -L C:\MySQL\lib\opt -l mysql -qt-sql-mysql -qt-sql-sqlite -debug-and-release

    and try to build Qt with nmake, but i get an error LINK : fatal error LNK1181: cannot open input file 'mysql.lib'

    I don't have mysql.lib in my MySQL directory. Where can i Download mysql.lib or build it?

    Thanks in advance,

    Whitefurrows

  2. #2
    Join Date
    Apr 2006
    Location
    Denmark / Norway
    Posts
    67
    Thanks
    3
    Thanked 12 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.2.3 with MSVC 2005 and MySQL

    Hi

    Haven't tried this myself, but did you download the source and compile the source or did you download the server and started it?

    you can look at this:
    http://www.mobiustech.net/qtsql/
    Where the source is provided and might give you a few leads.

    You probably have looked at:
    http://doc.trolltech.com/4.2/sql-dri...l-4-and-higher ?

    Some more info that seems to give details on what might be the problem:
    http://lists.trolltech.com/qt-intere...ad00199-0.html

    Have a look here:
    http://lists.trolltech.com/qt-intere...ad00090-0.html
    See message 7.

    Depending on whether you use MSVC or MinGW for compilation, the last one might give you some hints.

    cheers,
    Leif

  3. #3
    Join Date
    May 2006
    Posts
    108
    Thanks
    35
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Qt 4.2.3 with MSVC 2005 and MySQL

    Hi,

    sorry, i don't have find a answer in the links above!

    i have download MySQL 5.0.3.7 without installer (mysql-noinstall-5.0.37-win32.zip) and extract to my local drive "C:\MySQL\"

    The Qt (qt-win-commercial-src-4.2.3.zip) is available at "C:\Qt_4.2.3\"

    Qt is configure with this command:
    configure -platform win32-msvc2005 -I C:\MySQLl\include -L C:\MySQL\lib\opt -l mysql -qt-sql-mysql -qt-sql-sqlite -debug-and-release

    I compile the src with msvc2005 an nmake (i don't use MinGW), and i get an error LINK : fatal error LNK1181: cannot open input file 'mysql.lib'

    The "mysql.lib" is not available in my MySQL directory and that is the problem!

    What can i do?

    Thanks in advance,

    Whitefurrows

  4. #4
    Join Date
    May 2006
    Posts
    108
    Thanks
    35
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Qt 4.2.3 with MSVC 2005 and MySQL

    Hi,

    does anyone has gotten Qt4.2.3 to build on win32 an msvc2005 with MySQL support? Can somebody else post the right configuration?

    Thanks in advance

  5. #5
    Join Date
    May 2006
    Posts
    108
    Thanks
    35
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: Qt 4.2.3 with MSVC 2005 and MySQL

    Thanks to all the problem was "-l mysql" the right option is "-l libmysql"

  6. The following 2 users say thank you to whitefurrows for this useful post:

    darkadept (30th April 2008), msimurin (2nd April 2010)

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.