Quoted
Originally posted by Messenger
Generate msvc project with qmake and use it. "qmake -t vcapp"
Or you need to add QtCore4.lib to project linker options. qmake handles paths and stuff.
Quoted
Originally posted by Messenger
Generate msvc project with qmake and use it. "qmake -t vcapp"
Or you need to add QtCore4.lib to project linker options. qmake handles paths and stuff.
Quoted
Originally posted by Messenger
Because linker (manager) cannot link everything on the path. Imagine the helluva of time it would take until linking ends and functions naming superhell. It is just like a case as with headers. Also you need add other libraries QtGui4.lib (looks like QApplication is here) and etc.
BTW "qmake -t vcapp" generated solution is far better, because in this case you get qtmain.lib inside project (or not?). And in qtmain.lib (the real main entry for QT programs) some initialization is done. See src\winmain\qtmain_win.cpp. Also generates scripts/commands to call uic.exe and moc.exe if required from MSVC. The only drawback is that each time you modify project (the situation when name.pro needs to be processed by qmake) you need manually regenerate msvc project.
Mind that I am no guru of MSVC.
Quoted
Originally posted by kenobe
Hi googling
I have problems building qt4 lib for vc++.net 2005
I am using the Opensource edition.
Are you using the Commercial edition?
If you are using the Opensource editon, could you pls send me the steps of how to build the qt4 lib?
I have tried many times following the steps spelled out from Trolltech.
all that do not work.
Thank you very much
Quoted
Originally posted by googling
Quoted
Originally posted by Messenger
Generate msvc project with qmake and use it. "qmake -t vcapp"
Or you need to add QtCore4.lib to project linker options. qmake handles paths and stuff.
Hi:
I found it.
Add QtCore4.lib in Properties->Configuration Properties->Linker->Input->Additional Depencies, right?
But this seems to be project specific. Is there a common place to specify the libraries?
Why cannot VS 2005 find the libraries even I have specified the $(QTDIR)\lib in its lib dir?
Thank you very much.
This post has been edited 1 times, last edit by "laser2008" (Feb 8th 2008, 5:11pm)