Results 1 to 1 of 1

Thread: Building qt-sql-mysql on Windows 7 with Visual Studio 2010

  1. #1
    Join Date
    Apr 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Building qt-sql-mysql on Windows 7 with Visual Studio 2010

    It works like a charm under linux and on my other developer machine having VS2005 and mysql 5.1. However, with mysql 5.5 and VS2010 it does not.

    What I do:
    1. Open VS Command Prompt
    2. cd into Qt\4.7.2
    3. configure -debug-and-release -no-exceptions -no-accessibility -stl -qt-sql-mysql -qt-sql-odbc -no-qt3support -platform win32-msvc2010 -I C:\mysql55\include -L C:\mysql55\lib -l libmysql
    (The Nokia Qt documentation looks to be incorrect for mysql 5.5 as there is no "opt" directory)
    4. nmake

    ->
    Build goes well (actually it succeeds when there is no -qt-sql-mysql in the command line of configure);
    however build fails with the mysql option. It show that there are 50 unresolved externals regardless that build is done against libmysql. My best guess is that there is some kind of library mismatch - I tried to build with -static and the default dynamic but no matter what I do, the linking error stays. I tried to install both the 32 and 64 bit mysql connectors (after removing the other and iterated through all the options). Should I be building the actual mysql library? Or do something else? Are there some more precise description on what to do? Would mysql 5.5 and Qt 4.7.2 work together?

    I hope there is someone who has the answers. I am reading forums for two days now and losing hope.

    Thanks,
    Sandor
    Attached Images Attached Images

Similar Threads

  1. Qt add in Visual Studio 2010 problem
    By qtmude in forum Installation and Deployment
    Replies: 2
    Last Post: 18th January 2012, 14:41
  2. Qt and Visual Studio 2010
    By SixDegrees in forum Qt Programming
    Replies: 6
    Last Post: 15th November 2010, 19:56
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  4. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42
  5. problem building 2009.3.1 with visual studio 2010 beta
    By majestik666 in forum Installation and Deployment
    Replies: 2
    Last Post: 25th September 2009, 04:13

Tags for this Thread

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.