Are you sure you linked with Qt libs? As it looks like you didn't...
Are you sure you linked with Qt libs? As it looks like you didn't...
I didn't change nothing in my project and when I switch back to the non static build of QT and do a build clean it compiles fine.... When I check the properties they are all there linked...
I got two build of QT 4.2.1: 4.2.1 and 4.2.1-static
Part of the build log:
Edit: Tried compiling it at the command line and it compiles fine with the static QT???/OUT:"G:\Visual Studio 2005\Projects\GT-8 FX FloorBoard\Debug\GT-8 FX FloorBoard.exe" /LIBPATH:"C:\Qt\4.2.0-static\lib" /MANIFEST /MANIFESTFILE:"Debug\GT-8 FX FloorBoard.exe.intermediate.manifest" /DEBUG /PDB:"g:\Visual Studio 2005\Projects\GT-8 FX FloorBoard\Debug\GT-8 FX FloorBoard.pdb" /SUBSYSTEM:WINDOWS qtmaind.lib QtCored4.lib QtGuid4.lib QtXmld4.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
But when I import the .pro file and create a new project I still get the error's...
So it must be some setting in Visual Studio. Anyone experience with compiling static in Visual Studio?
Last edited by ucomesdag; 30th November 2006 at 00:24. Reason: updated contents
J-P Nurmi
Did that but nothing still the same the QT libs are inclided but when linking he doesn't find them I guess didn't find anything on the net...I'm looking for more than 2 days now...I usually 1) update the environment variables (PATH, QTDIR), 2) change to the appropriate build in VS (Tools->Options->Qt), 3) restart VS and then 3) re-open the solution from the .pro file. This all just to avoid complications when switching from Qt build to another.![]()
Nobody usin Vs2005 with a static build of qt?
So, are there really 4.2.1 libs in c:\qt\4.2.0-static\lib (instead of c:\qt\4.2.1-static\lib)? If not, then fix your paths, or put the libs in there.
Software Engineer
Last edited by ucomesdag; 2nd December 2006 at 22:24.
Yes this is looks like VS issue. What I did to fix it:
-created a new .pro file
-open new .vcproj file from .pro using QT Visual Studio integration
After these steps it works for me.
arunredi (16th May 2008)
HI..I am a newbie.
I am having problem
"
Performing moc on MainWindow.h
Compiling...
main.cpp
MainWindow.cpp
moc_MainWindow.cpp
Generating Code...
Compiling manifest to resources...
Linking...
LINK : fatal error LNK1104: cannot open file 'qtmaind.lib'
"
I am using Qt4.4.0 open source with VS 2005 in Window.
I installed Library path and linker data.
Can anybody help me this problem?
Thanks in advance.
Seems like you don't have debug version of Qt. So generate the project file in release mode:
Qt Code:
qmake -tp vc -config releaseTo copy to clipboard, switch view to plain text mode
J-P Nurmi
Jasmine (22nd May 2008)
Hi.. Thanks for your answer.
I tried it out in release version
qmake -tp vc -config release
then.. I found error
What should I install for right version?WARNING: Unable to generate output for C:/Qt/4.4.0/Makefile.Release [TEMPLATE vcapp]
WARNING: Unable to generate output for C:/Qt/4.4.0/Makefile.Debug [TEMPLATE vcapp]
Should I delete and reinstall everything?
Please kindly reply me.
Bookmarks