Results 1 to 1 of 1

Thread: Trying to compile mysql driver

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to compile mysql driver

    Hello I'm really pissed...

    Ok so, I want to compile the mysql driver.

    i installed MySQL installer for windows (mysql 5.5).
    Im using Qt 4.8.3 and the Visual Studio 10 Compiler.

    After doing this:
    cd %QTDIR%\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro
    nmake

    i get the out

    C:\Qt\4.8.3\src\plugins\sqldrivers\mysql>nmake

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
    f Makefile.Debug

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    C:\Qt\4.8.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO
    _CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CO
    RE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SS
    E2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtS
    ql" -I"..\..\..\..\include" -I"c:\MySQL\MySQL" -I"Server" -I"5.1\include" -I"..\
    ..\..\..\include\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\default" -D_MSC_VER=
    1600 -DWIN32 ..\..\..\sql\drivers\mysql\qsql_mysql.cpp -o debug\qsql_mysql.moc
    C:\Qt\4.8.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO
    _CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CO
    RE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SS
    E2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtS
    ql" -I"..\..\..\..\include" -I"c:\MySQL\MySQL" -I"Server" -I"5.1\include" -I"..\
    ..\..\..\include\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\default" -D_MSC_VER=
    1600 -DWIN32 ..\..\..\sql\drivers\mysql\qsql_mysql.h -o debug\moc_qsql_mysql.cpp

    rc -D_DEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASC
    II -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_
    HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THRE
    AD_SUPPORT -fo debug\qsqlmysqld_resource.res qsqlmysqld_resource.rc
    Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
    -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FRO
    M_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
    3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..
    \..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"
    c:\MySQL\MySQL" -I"Server" -I"5.1\include" -I"..\..\..\..\include\ActiveQt" -I"d
    ebug" -I"..\..\..\..\mkspecs\default" -Fodebug\ @C:\Users\B\AppData\Local\Temp\n
    mB727.tmp
    main.cpp
    c:\qt\4.8.3\src\plugins\sqldrivers\mysql\../../../sql/drivers/mysql/qsql_mysql.h
    (52) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or d
    irectory
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.

    C:\Qt\4.8.3\src\plugins\sqldrivers\mysql>

    WTF?!


    Added after 1 3 minutes:


    Now its working.


    Close plx
    Last edited by Chebyshev; 10th November 2012 at 18:37.

Similar Threads

  1. Cross-Compile MySQL Driver for ARM
    By Pluvius in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 8th May 2014, 06:11
  2. MySql driver compile problem (QtSDK/QtSources 4.8.1 and msvc 2010)
    By junhonguk in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd April 2013, 03:57
  3. not able to compile sql driver mysql
    By sujan.dasmahapatra in forum Newbie
    Replies: 2
    Last Post: 14th July 2011, 19:44
  4. source code for odbc driver or MySql driver in arm-embedded-linux
    By sattu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th January 2011, 10:11
  5. cant compile mysql driver
    By IsoArska in forum Newbie
    Replies: 18
    Last Post: 30th November 2009, 22:51

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.