Results 1 to 5 of 5

Thread: Qt 4.2.3 with MSVC 2005 and MySQL

Hybrid View

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

    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

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

    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

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

    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"

  4. 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
  •  
Qt is a trademark of The Qt Company.