Results 1 to 2 of 2

Thread: MySql driver compile problem (QtSDK/QtSources 4.8.1 and msvc 2010)

  1. #1
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    3

    Default Re: MySql driver compile problem (QtSDK/QtSources 4.8.1 and msvc 2010)

    Hi All,

    I met a problem when trying to compile the mysql.pro under the source folder "C:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\m ysql".
    The guide that I followed is from the following link:
    http://www.cadcoder.com/index.php?id=51

    When the following command is executed:
    qmake "INCLUDEPATH+=%mysql%\\include" "LIBS+=%mysql%\\lib\\libmysql.lib" -o Makefile mysql.pro

    It generates Makefile, Makefile.Debug, and Makefile.Release.
    The problem occurs when I try to run nmake.

    I realised that inside Makefile.Debug file, it contained:
    C:\QtSDK\QtSources\4.8.1\bin\moc.exe

    This executable doesn't not exist in the above directory. Instead it is in the folder of "C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin".
    I think that causes compiling errors.
    How can I fix it?
    Any idea?

    Thanks.


    Added after 1 15 minutes:


    problem solved by re-installing QtSDK.
    Last edited by junhonguk; 28th September 2012 at 13:19.

  2. #2
    Join Date
    Apr 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySql driver compile problem (QtSDK/QtSources 4.8.1 and msvc 2010)

    Has anyone ever provided a clear answer on how to build MySQl for QT? I have tried the above as well and it does not work. Everyone has a different answer it seems.

Similar Threads

  1. Replies: 1
    Last Post: 7th April 2012, 07:05
  2. not able to compile sql driver mysql
    By sujan.dasmahapatra in forum Newbie
    Replies: 2
    Last Post: 14th July 2011, 20:44
  3. Problem with compiling Qt 4.6 via MSVC 2010 Beta2 (win32-msvc specs)
    By Erik-Moscow in forum Installation and Deployment
    Replies: 2
    Last Post: 17th December 2009, 19:44
  4. cant compile mysql driver
    By IsoArska in forum Newbie
    Replies: 18
    Last Post: 30th November 2009, 23:51
  5. Possible to compile Qt 4.5 source with msvc 2010 beta?
    By JimDaniel in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd July 2009, 15:19

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.