Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Error compiling QT » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Error compiling QT
Author
Post « Previous Thread | Next Thread »
DMLP
Assistant


Registration Date: 23.03.2008
Posts: 1

Level: 4 [?]
Experience: 54
Next Level: 100

46 points of experience needed for next level

Error compiling QT Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hey,

I'm compiling Qt in WinXP SP2. But I get the same error over and over again.
I did it in school, but at home it won't work :s. On both computers are MSVS2005 installed.
For Qt I use MinGW for compiling and Eclipse for writing.

this is the error I get:

Creating library file: c:\Qt\4.3.4\lib\libQtCored4.a
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x836c): In function `Z8readLinkRK7QString':
C:/Qt/4.3.4/src/corelib/io/qfsfileengine_win.cpp:1333: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x838b):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x83b9):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x83e0):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8574):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x85b5):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x85d4):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8605):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x862c):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x88fc):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1333: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8a33): In function `ZN13QFSFileEngine4linkERK7QSt
ring':
C:/Qt/4.3.4/src/corelib/io/qfsfileengine_win.cpp:1427: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8a52):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8a80):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8cdc):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8d84):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8e57):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8e76):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8ea4):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x9426):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x96e7):C:/Qt/4.3.4/src/co
relib/io/qfsfileengine_wi
n.cpp:1427: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\quuid.o(.text+0x229b): In function `ZN5QUuid10createUuidEv':
C:/Qt/4.3.4/src/corelib/plugin/quuid.cpp:416: undefined reference to `CoCreateGuid@4'
./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+0x2776): In function `ZN28QEventDispatcherWin32P
rivate16doWsaAsyncSelectEi':
C:/Qt/4.3.4/src/corelib/kernel/qeventdispatcher_win.cpp:395: 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:/Qt/4.3.4/src/corelib'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/corelib'
mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

can someone help me.

I've looked at the paths and libs, but there is nog sh.exe or other kinds of common problems found :s.

Thanks

This post has been edited 1 time(s), it was last edited by DMLP: 25.03.2008 22:55.

23.03.2008 22:38 DMLP is offline Send an Email to DMLP Search for Posts by DMLP Add DMLP to your Buddy List
michaelM michaelM is a male
Assistant


Registration Date: 24.04.2008
Posts: 2
Location: Stuttgart/Germany

Level: 3 [?]
Experience: 45
Next Level: 54

9 points of experience needed for next level

RE: Error compiling QT Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hello,
I am fighting exactly the same problem. Checked all path settings etc.
Does anybody know the solution?

Need some help. Thanks
24.04.2008 15:00 michaelM is offline Send an Email to michaelM Search for Posts by michaelM Add michaelM to your Buddy List
macabre13 macabre13 is a male
Chief Software Engineer


images/avatars/avatar-423.jpg

Registration Date: 14.01.2008
Posts: 127
Location: Poland/ Wroclaw
Jabber: adamski.jaroslaw@jab ber.wroc.pl

Level: 18 [?]
Experience: 15,651
Next Level: 17,484

1,833 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi, please check that you have all PATHs and SETs properly set, or simply run >>>x:\qt\qtx.x.x\bin\qtvars.bat<<< and try to compile again.

__________________
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
25.04.2008 08:35 macabre13 is offline Send an Email to macabre13 Homepage of macabre13 Search for Posts by macabre13 Add macabre13 to your Buddy List
itachi86 itachi86 is a male
Coder


Registration Date: 24.04.2008
Posts: 21
Location: Paris

Level: 8 [?]
Experience: 471
Next Level: 674

203 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Yeah I agree with macabre13.

Yuo have to check $PATH , $QTDIR and $QMAKESPEC variables ...

__________________
Dude : You have a banana in your ear!!!
John Doe : WHAT?!?
Dude : YOU HAVE A BANANA IN YOU EAR
John Doe : I CAN'T HEAR YOU I HAVE A BANANA IN MY EAR.
25.04.2008 08:52 itachi86 is offline Send an Email to itachi86 Search for Posts by itachi86 Add itachi86 to your Buddy List YIM Account Name of itachi86: informatiquei2rv@yahoo.fr View the MSN Profile for itachi86
michaelM michaelM is a male
Assistant


Registration Date: 24.04.2008
Posts: 2
Location: Stuttgart/Germany

Level: 3 [?]
Experience: 45
Next Level: 54

9 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi guys, thanks for the advise.
Unfortunately that's not it. I had set PATH, QTDIR and QMAKESPEC correctly.

The problem seems to be that missing functions like 'CoCreateInstance' and the others (see error message) are not found. These special functions are supposedly embedded in the windows lib ole32.dll. There is a '-lole32' in the Makefile.Release and no complaint from make that this is not found.

On the other hand there is a libole32.a in the C:\mingw\lib folder.

Since I didn't dig deep into qmake etc. I don't know what to change and where where in order to direct the system to look for the c:\mingw\lib\libole32.a instead of the ole32.dll in the windows\system32 (or vice versa).

In the old days I would have just changed the makefile by hand, but these days everything is cryptically entangled. In fact there are many Makefiles, practically in every subfolder. There must be a general way to set links somewhere.

Maybe you guy's know what to do.

Thanks in advance.
25.04.2008 12:21 michaelM is offline Send an Email to michaelM Search for Posts by michaelM Add michaelM to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Error compiling QT

views today: 10.049 | views yesterday: 17.520 | total views: 10.243.418


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich