[solved] MSVC in Qt
-
I'm now trying to build the Qt with a MSVC complier to use it instead a MinGW... The reason: MinGW cannot accept a LIB files of an exterior developpers that contain a C++ definitions ("Quantum GIS API":http://qgis.org/).
I'm using a last release of LGPL Qt 2010.05; When I start "configure -platform win32-msvc2003" or same command under MSVC, building crashed with the next messages:
!http://img811.imageshack.us/img811/9431/qterror.png(Error message of Qt compilation)!
And I'm in perplexity, what wrong there... I can't see a "multiple source files"... A "project.cpp" source file only... -
You can try to remove all old compiled output files using
@nmake distclean@
in main qt directory. Also try to remove all *.tmp files and
tmp
directories. This sometimes helps when strange errors like yours appear ;-) -
Please, do yourself a favor and do not recompile the embedded sources. We have seen many problems when doing so on Qt DevNet.
Get the source package from http://qt.nokia.com/downloads and compile that.
-
Just out of curiosity, where are available precompiled sources for VS2003/2005 - 32/64-bit version?
When I started with Qt, I have to spend some time preparing my environment for VS2005 32 and 64bit, because I want to compile for both. Also when I recently migrated to VS2010, I simply recompile Qt sources and everything works perfect.
-
[quote author="Volker" date="1297685382"]Please, do yourself a favor and do not recompile the embedded sources. We have seen many problems when doing so on Qt DevNet.
Get the source package from http://qt.nokia.com/downloads and compile that.[/quote]
And what You named a "source package"? A "Qt Creator 2.0.1 Source Package (21 MB)" on that page? I'm downloaded the "Qt SDK for Windows* (322 MB)" and try it. -
Oh, no!
Go to the download page mentioned, click on "Go LGPL"; on the right side is "Qt: Framework Only", at the end of the introductory paragraph are the links to a zip and a tar.bz2 with the sources for Qt 4.7.1 (only the libs, nothing else). Grab the ZIP file and follow the "Installing Qt on Windows":http://doc.qt.nokia.com/4.7/install-win.html guide.
Also, I'd suggest to use Qt Creator 2.1 RC. Although it's "only" a release candidate, it's very stable and I use it for my daily work without problems ever since it was released.
-
[quote author="Volker" date="1297688781"]Oh, no!
Go to the download page mentioned, click on "Go LGPL"; on the right side is "Qt: Framework Only", at the end of the introductory paragraph are the links to a zip and a tar.bz2 with the sources for Qt 4.7.1 (only the libs, nothing else). Grab the ZIP file and follow the "Installing Qt on Windows":http://doc.qt.nokia.com/4.7/install-win.html guide.
Also, I'd suggest to use Qt Creator 2.1 RC. Although it's "only" a release candidate, it's very stable and I use it for my daily work without problems ever since it was released.[/quote]
Okay, I hope that help me. And where I can download a Qt Creator 2.1 RC? I can't see any appropriate links on both download pages. -
You can get 2.1 RC from http://qt.nokia.com/developer/qt-qtcreator-prerelease/
-
[quote author="Volker" date="1297691016"]You can get 2.1 RC from http://qt.nokia.com/developer/qt-qtcreator-prerelease/[/quote]
I download and build a package of the libraries for MSVC and installed the QtCreator 2.1; Now all works good! Application compiled without errors. Thank You very much!