Creating Opensource Qt for Visual Studio 2005/2008

Does anyone have instructions on creating an open source version of Qt? Now that the repository is open, I try to build VS2008, but I get errors when it tries to create qmake.

I found a question. I want to use Visual Studio to record and compile using the original version of Qt4 , but this information is outdated and does not work. I really will help. For reference, this is what happens when I try to build using configure -platform win32-msvc2008

 Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac - IC:\dev\open_source\qt\include -IC:\dev\open_source\qt\include\QtCore -IC:\dev\open_source\qt\include -IC:\dev\open_sou rce\qt\include\QtCore -IC:\dev\open_source\qt\src\corelib\global -IC:\dev\open_source\qt\include\QtScript -IC:\dev\op en_source\qt\mkspecs\win32-msvc2008 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -D QT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQMAKE_OPENSOURCE_EDITION project.cpp project.cpp c:\dev\open_source\qt\src\corelib\tools\qstringlist.h(45) : fatal error C1083: Cannot open include file: 'QtCore/qalgori thms.h': No such file or directory NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2' Stop. Building qmake failed, return code 2 
+6
qt visual-studio-2008 visual-studio
source share
6 answers

Well, one useful thing is to run configure inside the Visual Studio command line. This should be available in the Visual Studio Start Menu group in Visual Studio Tools.

Also now, when you run configure, you do not need to specify the target platform, because it will be set as an environment variable using the VS command line.

I got errors from configure and nmake when I did not use VS Command Prompt, and after switching I had no problems.

Thus, simple instructions:

1) open the command line VS

2) go to the qt folder where the configure.exe file is located.

3) configure

4) nmake

+8
source share

Please make sure you have ActiveState Perl installed.

+5
source share

In this blog article , recent information appeared about creating Qt with a visual studio. Hope this helps.

+4
source share

Note that Nokia, starting with Qt 4.6, now provides its own open source Qt VS builds, so you no longer need to build from source code for development using Visual Studio. Access the open source download page and look for assemblies with the name (for example) qt-win-opensource-4.6.1-vs2008.exe.

+2
source share

Also, if you just want to compile using MSVC so that you can develop open source libraries with a visual studio, I put together a project to create β€œpre-built” Qt LGPL libraries with MSVC 2008.

This can be useful and has the advantage of taking up less space and then assembling it yourself. It also provides a command line with all of your environment variables configured for you, and a link to launch Visual Studio with the Qt environment. It was called qt-msvc-installer .

+1
source share

Which user 156973 said. Install ActiveState perl and run configure again.

0
source share

All Articles