qt4 win sdk: missing QtCore4.lib etc.

Asked by ras

How I supposed to get all these *.lib's (qtmain.lib, QtCore4.lib, etc.), that scons tries to link app to?
I have libqtmain.a, libQtCore4.a, ... only.
I'm using qt-sdk-win-opensource-2010.05.exe, available from qt.nokia.com.

Question information

Language:
English Edit question
Status:
Solved
For:
SCons Qt4 Tool Edit question
Assignee:
No assignee Edit question
Solved by:
Silex
Solved:
Last query:
Last reply:
Revision history for this message
Best Silex (pvaucher) said :
#1

Well on windows it supposes you're using the Visual Studio build of Qt (http://qt.nokia.com/downloads/windows-cpp-vs2008). It looks like you installed the mingw one (the SDK only comes with mingw).

Basically it looks like you're trying to build using the visual studio compiler but with the mingw libraries... Decide which compiler you want to use and then let scons know which it is.

Revision history for this message
ras (ras82x) said :
#2

Yes, I use Visual Studio 2010.
After some googling, it seems that it is impossible to use MSVC together with mingw libraries (different mangling conventions or something).
So I guess I should use vc build of Qt4, as you suggested--or build my own with vc.
Solved.

Revision history for this message
ras (ras82x) said :
#3

Thanks Silex, that solved my question.

Revision history for this message
Silex (pvaucher) said :
#4

You're welcome. Yes you can't mix c++ libraries because each compiler has its own name mangling due to the fact that there's no standard ABI for c++. You probably can't even mix vc2008 and vc2010 libraries...

Building Qt is quite easy, you can add --no-demos and --no-examples for "configure" to speed up the compilation phase if I recall correctly.