Results 1 to 4 of 4

Thread: QT 4.2.2 Windows Mingw

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Question QT 4.2.2 Windows Mingw

    I am attempting to install QT 4.2.2 Commercial on a Windows XP Pro system using Mingw. I also have MySQL Server 5.0 installed and want to include the drivers for mysql in the installation. Here is the configure line I use:

    C:\Qt\4.2.2>configure -static -platform win32-g++ -qt-zlib -qt-gif -I "c:\MySQL\include" -L "c:\MySQL\lib" -qt-sql-mysql -qt-sql-sqlite -qt-sql-odbc

    The configure completes successfully. I then type "mingw-make" to build the installation. It runs for an hour or so but eventually I get the following error messages:

    g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,console -o "..\..\..\bin\uic3.exe" object_script.uic3.Release -L"c:\Qt\4.2.2\lib" -L"c:\Qt\4.2.2\lib" -lQt3Support -lQtXml -lQtGui -lQtCore -lQtSql4 -lQtXml4 -lQtGui4 -lQtNetwork4 -lgdi32 -lcom
    dlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore4 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -Lc:\MySQL\lib C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lQtSql4
    collect2: ld returned 1 exit status
    mingw32-make[3]: *** [..\..\..\bin\uic3.exe] Error 1
    mingw32-make[3]: Leaving directory `C:/Qt/4.2.2/src/tools/uic3'
    mingw32-make[2]: *** [release] Error 2
    mingw32-make[2]: Leaving directory `C:/Qt/4.2.2/src/tools/uic3'
    mingw32-make[1]: *** [sub-tools_uic3-make_default] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.2/src'
    mingw32-make: *** [sub-src-make_default-ordered] Error 2

    A search of the system reveals that a library is built called libQtSql.a (and libQtSqld.a for debug). No library named libQTSql4.lib or libQTSql4.a is anywhere on the system. I assume once it completes the release build it's going to want the library libQTSqld4.lib (or libQTSqld4.a) for the debug version as well.

    Is this a bug, am I missing something in my environment, or is my configure command wrong?

    I appreciate any inputs.

    Karl

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Windows Mingw

    The configure completes successfully.
    But did you read the output it self?
    Did it say anything about the sql driver?

    Since you are a commercial customer, you can just call the trolls up - you paid for that - might as well use their help - no one can help you better.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QT 4.2.2 Windows Mingw

    I didn't see any output that indicated a problem.

    I've sent an email to the support group at Trolltech. I'm waiting for a response. Sometimes, I can get good, quick answers here.

    Thanks for the response.

    Karl

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Windows Mingw

    Sometimes, I can get good, quick answers here.
    Oh, don't get me wrong, you are encouraged to post, I just thought to remind you that you have that channel :-)

    Please post the solution once you got it working!
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. using libcurl in QT with Mingw in Windows
    By ct in forum Qt Programming
    Replies: 18
    Last Post: 23rd January 2012, 01:41
  2. How do I use MinGW Compiler in Windows
    By Walsi in forum General Discussion
    Replies: 3
    Last Post: 11th May 2007, 08:50
  3. Compiling qshortcutdialog on Windows with mingw
    By dvmorris in forum Qt Programming
    Replies: 2
    Last Post: 23rd April 2007, 19:16
  4. On windows: MinGW + Qt + Which Debugger?
    By Dwarf007 in forum Newbie
    Replies: 8
    Last Post: 12th July 2006, 19:21
  5. qt and mingw can not run on windows 98?
    By evewei in forum Installation and Deployment
    Replies: 4
    Last Post: 26th June 2006, 09:22

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.