Results 1 to 20 of 21

Thread: Qt4 and mysql(driver problem)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    now when i use mingw32 -make instead of nmake i get such error.
    what i do

    C:\Qt\4.2.3-msvc2005\src\plugins\sqldrivers\mysql>
    qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
    and then

    C:\Qt\4.2.3-msvc2005\src\plugins\sqldrivers\mysql>mingw32-make
    but again get error.

    mingw32-make -f Makefile.Debug all
    Makefile.Debug:59: *** missing separator. Stop.
    mingw32-make[1]: Entering directory `C:/Qt/4.3.0/src/plugins/sqldrivers/mysql'
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/plugins/sqldrivers/mysql'
    mingw32-make: *** [debug-all] Error 2

    whats a metter?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    If you are using MSVC, then use nmake and not mingw-make. If you have a problem with spaces in file paths, simply move your installation to a path that does not contain spaces.

  3. #3
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    i have installed qt-win-opensource-src-4.3.0.zip,.I do it as explain here.
    http://qtnode.net/wiki?title=Qt4_with_Visual_Studio and everything was good before i decided build mysql plugin for Qt4.
    unriddle pls is there any chance(for my situation) build driver?
    or i must delete all(Qt) ,install Qt with this instruction http://qtnode.net/wiki?title=Qt4_on_Windows then download qt-vsintegration and integrate Qt with my VS2005?
    thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    Are you a commercial or an open source developer?

    You can build the plugin while building Qt itself, just take a look at the options configure.exe provides. But make sure you have no spaces in the path where the build directory resides.

  5. #5
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    open source developer.
    sorry but i dont understant what u mean?
    But make sure you have no spaces in the path where the build directory resides.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    Quote Originally Posted by knut View Post
    open source developer.
    So how do you want to install the qt-vsintegration?

    sorry but i dont understant what u mean?
    But make sure you have no spaces in the path where the build directory resides.
    Unpack your Qt sources to "C:\Qt" and not "C:\Program Files\Qt" (or similar). The same probably goes for other tools (VS?), although your problem seems strange as it works fine for me under WinXP.
    Last edited by wysota; 26th December 2007 at 13:46.

  7. #7
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    wysota
    i unpack my sources in path C:\Qt\4.2.3-msvc2005.
    after i make
    cd %QTDIR%\src\plugins\sqldrivers\mysql
    qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MySQL\lib\opt\libmysql.lib" mysql.pro
    nmake
    now i get shuch error
    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\l
    ink.EXE"' : return code '0x49d'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    Last edited by jpn; 27th December 2007 at 09:47. Reason: changed [qtclass] to [quote] tags

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE"
    See the spaces in the path above? They are the ones causing you problems. Or more probably nmake or the terminal.

  9. #9
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    i add this path C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE" in my system env.variable but it dosnot resolve my problem.errors dont disappear.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    It's not a problem with environment variables but with some tool not understanding spaces in your paths. Take a look at the first error - it shows only a fragment of the path - a fragment beginning after the last whitespace character in the file path.

  11. #11
    Join Date
    Dec 2007
    Posts
    11
    Qt products
    Qt4

    Default Re: Qt4 and mysql(driver problem)

    sorry but how solve this problem ? i have no idea
    thanks

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 and mysql(driver problem)

    First identify which tool causes the problem and then try to replace it.

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.