Results 1 to 2 of 2

Thread: rebuild Qt +MinGW

  1. #1
    Join Date
    Jan 2008
    Posts
    8

    Default rebuild Qt +MinGW

    Hi All
    I have a problem with rebuild my Qt with with tthis configuration configure -debug-and-release

    envar
    Qt 4.4.1 + MinGW-5.1.4.exe os windows
    this is may env.variables
    path
    C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft

    Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual

    Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio 8

    \VC\bin;C:\MySQL\bin;C:\DevTools\Qt\4.4.1\bin;C:\M inGW\bin
    LIB
    C:\DevTools\MinGW\lib\
    QMAKESPEC
    win32-g++
    QTDIR
    C:\DevTools\Qt\4.4.1
    when I run mingw32-name i get such error
    rce_res.o
    ./tmp\obj\debug_shared\qfsfileengine_win.o: In function `Z8readLinkRK7QString':
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1458: undefined refere
    nce to `CoUninitialize@0'
    ./tmp\obj\debug_shared\qfsfileengine_win.o: In function `ZN13QFSFileEngine4linkE
    RK7QString':
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoUninitialize@0'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined reCrea
    ting library file: c:\DevTools\Qt\4.4.1\lib\libQtCored4.a
    ference to `CoInitialize@4'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoCreateInstance@20'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `IID_IPersistFile'
    C:/DevTools/Qt/4.4.1/src/corelib/io/qfsfileengine_win.cpp:1565: undefined refere
    nce to `CoUninitialize@0'
    ./tmp\obj\debug_shared\quuid.o: In function `ZN5QUuid10createUuidEv':
    C:/DevTools/Qt/4.4.1/src/corelib/plugin/quuid.cpp:421: undefined reference to `C
    oCreateGuid@4'
    ./tmp\obj\debug_shared\qeventdispatcher_win.o: In function `ZN28QEventDispatcher
    Win32Private16doWsaAsyncSelectEi':
    C:/DevTools/Qt/4.4.1/src/corelib/kernel/qeventdispatcher_win.cpp:625: undefined
    reference to `WSAAsyncSelect@16'
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
    mingw32-make[2]: Leaving directory `C:/DevTools/Qt/4.4.1/src/corelib'
    mingw32-make[1]: *** [debug-all] Error 2
    mingw32-make[1]: Leaving directory `C:/DevTools/Qt/4.4.1/src/corelib'
    mingw32-make: *** [sub-corelib-make_default] Error 2
    this is my Compile.bat file which i run
    @echo off
    echo -- QTDIR set to C:\Qt\4.4.1
    echo -- PATH set to C:\DevTools\Qt\4.4.1\bin
    echo -- Adding C:\MinGW\bin to PATH
    echo -- Adding %SystemRoot%\System32 to PATH
    echo -- QMAKESPEC set to win32-g++

    set PATH=C:\DevTools\MinGW\bin\;C:\DevTools\Qt\4.4.1\b in\;%SystemRoot%\System32
    SET QTDIR = C:\DevTools\Qt\4.4.1
    set QMAKESPEC=win32-g++
    cd %QTDIR%
    echo /--------------------------------------------------------------------------/
    echo /* ______ _______ __ __ _____ __ ______ __ __ ____ _____ */
    echo /* / / /_/ / / / / / \/ / / ___/ /_/ / / /_/ / / / / / / /\ / ___/ */
    echo /* / / / / / / / /\ / / /_ / / / / / / / / / /_/_/ / /_ */
    echo /* / / __ / / / / / / / / / __/ / / / / __ / / / / / / /\ / / __ */
    echo /* /_/_/_/ /_/__/_/ /_/ /_/ /_/ /_/ /_/__\/ \_\_/_/ /_/ /_/ /_/_/_/ */
    echo /--------------------------------------------------------------------------/
    configure -debug-and-release -shared -no-fast -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg

    -qt-zlib -qt-sql-ibase -qt-sql-mysql -qt-sql-odbc -qt-sql-psql -qt-sql-sqlite -qt-sql-sqlite2 -stl -qt

    -style-windows -qt-style-windowsxp -qt-style-windowsvista -qt-style-plastique -qt-style-

    cleanlooks -qt-style-motif -qt-style-motif -qt-style-cde
    cd %QTDIR%\src
    echo /* Ok... (Configure) */
    echo /----------------------------------------------------------/
    echo /----------------------------------------------------------/
    echo /* _______ __ __ __ __ _____ */
    echo /* / / / / / \/ \ /\ / / / / / ___/ */
    echo /* / / / / / /\__/\ \ / /\ / /_/_/ / /_ */
    echo /* / / / /\ / / \ \ / /__\ / / /\ / / __ */
    echo /* /_/__/_/\/ /_/ \_\/_/ \/_/ /_/ /_/_/_/ */
    echo /----------------------------------------------------------/
    qmake
    echo /* Ok... (Qmake) */
    echo /----------------------------------------------------------/
    echo /----------------------------------------------------------/
    echo /* __ __ __ __ _____ */
    echo /* / \/ \ /\ / / / / / ___/ */
    echo /* / /\__/\ \ / /\ / /_/_/ / /_ */
    echo /* / / \ \ / /__\ / / /\ / / __ */
    echo /* /_/ \_\/_/ \/_/ /_/ /_/_/_/ */
    echo /----------------------------------------------------------/
    mingw32-make
    echo /* Ok... (Make) */
    echo /----------------------------------------------------------/
    echo / Congratulation!!!! Qt is compiling!!! /
    echo /----------------------------------------------------------/
    pause
    what is the matter explain me please

  2. #2
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: rebuild Qt +MinGW

    Looks like you are not linking against all required libraries.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

Similar Threads

  1. A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP
    By shiyutang in forum Installation and Deployment
    Replies: 10
    Last Post: 5th August 2009, 04:03
  2. Is Qt 4.4.0 compatible with the current MinGW 5.1.4 release?
    By BernieW in forum Installation and Deployment
    Replies: 4
    Last Post: 31st July 2008, 23:16
  3. Qt + boost + MinGW on Windows
    By akos.maroy in forum Newbie
    Replies: 3
    Last Post: 12th June 2008, 14:53
  4. MinGW Compiler under WXP
    By Walsi in forum Newbie
    Replies: 2
    Last Post: 30th March 2007, 17:26
  5. Where do I get MinGW 3.2 ?
    By Shwetha in forum Newbie
    Replies: 19
    Last Post: 3rd April 2006, 22:36

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.