Results 1 to 5 of 5

Thread: Unable to install QT 4.4.0 from sources

  1. #1

    Default Unable to install QT 4.4.0 from sources

    Hi

    I am trying to compile Qt 4.4.0 source on Windows using MinGW 5.1.4.
    However, I am getting an error after running make.

    I followed the guidelines in the INSTALL file and did a "configure" before
    trying to do make.

    The error I got was as attached.

    Please let me know what could have gone wrong.

    Thanks,

    Debnath

    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -shared -Wl,--out-implib,c:\debnath\QT\qt-win-opensource-src-4.
    4.0\qt-win-opensource-src-4.4.0\lib\libQtCored4.a -o ..\..\lib\QtCored4.dll obje
    ct_script.QtCored.Debug -L"c:\debnath\QT\qt-win-opensource-src-4.4.0\qt-win-ope
    nsource-src-4.4.0\lib" -L"c:\Program Files\SQLXML 4.0\bin\" -L"c:\debnath\QT\qt-
    win-opensource-src-4.4.0\qt-win-opensource-src-4.4.0\lib" -lkernel32 -luser32 -l
    shell32 -luuid -lole32 -ladvapi32 -lws2_32 tmp\obj\debug_shared\QtCored_resource
    _res.o
    ./tmp\obj\debug_shared\qfsfileengine_win.o: In function `Z8readLinkRK7QString':
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\qfsfileengine_win.o: In function `ZN13QFSFileEngine4linkE
    RK7QString':
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensouCreating library file: c:\debnath\QT\qt-win-opensour
    ce-src-4.4.0\qt-win-opensource-src-4.4.0\lib\libQtCored4.a
    rce-src-4.4.0/qt-win-opensource-src-4.4.0/src/corelib/io/qfsfileengine_win.cpp:1
    555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\quuid.o: In function `ZN5QUuid10createUuidEv':
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/plugin/quuid.cpp:421: undefined reference to `CoCreateGuid@4'
    ./tmp\obj\debug_shared\qeventdispatcher_win.o: In function `ZN28QEventDispatcher
    Win32Private16doWsaAsyncSelectEi':
    C:/debnath/QT/qt-win-opensource-src-4.4.0/qt-win-opensource-src-4.4.0/src/coreli
    b/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:/debnath/QT/qt-win-opensource-src-4.4.0/qt
    -win-opensource-src-4.4.0/src/corelib'
    mingw32-make[1]: *** [debug-all] Error 2
    mingw32-make[1]: Leaving directory `C:/debnath/QT/qt-win-opensource-src-4.4.0/qt
    -win-opensource-src-4.4.0/src/corelib'
    mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to install QT 4.4.0 from sources

    Is mingw installed in a root folder? I is known to have issues when installed anywhere else.

  3. #3
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to install QT 4.4.0 from sources

    Quote Originally Posted by marcel View Post
    I is known to have issues when installed anywhere else.
    Never heard of such an issue and I've installed MinGW everywhere but not in my root

    CoInitialize is defined in ole32 - but your link line already adds -lole32 so I assume the linker fetches a wrong one. Make sure libole32.a in MinGW\lib is the only libole32.a on your system. I also took a look in the most recent version available here and found e.g. CoCreateInstance@20

  4. #4

    Default Re: Unable to install QT 4.4.0 from sources

    Hi

    Make sure libole32.a in MinGW\lib is the only libole32.a on your system.
    This is already true in my system.

    Also, Mingw is installed under C:\MinGW

    Any ideas ?

    Debnath

  5. #5
    Join Date
    Aug 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: Unable to install QT 4.4.0 from sources

    Hi,

    I experienced just the same problem.
    My development environment includes Visual Studio.net.
    So, Environment variable INCLUDE, and LIB was set to VSVCDIRS.
    Then I delete these variables, and build success.

    Horinic

Similar Threads

  1. Installing Qt 4.4.0 from sources
    By tom in forum Installation and Deployment
    Replies: 1
    Last Post: 21st May 2008, 06:44
  2. Qt4.3 and MSVC++ 2005 - unable to install Qt
    By nitor in forum Installation and Deployment
    Replies: 12
    Last Post: 25th July 2007, 21:45

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.