Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Qt 4.5 with Visual C++ 2010

Did somebody tried to build Qt 4.5 with Visual Studio 2010 (Beta 2)? Any hints on doing that successfuly?

Later edit I tried to run configure from a Visual Studio 2010 console. There is no makespecs support for 2010, so configure fails because of that.

like image 335
Cătălin Pitiș Avatar asked Oct 29 '09 14:10

Cătălin Pitiș


Video Answer


2 Answers

For Qt 4.6.2 (or perhaps other 4.6 versions as well)...

To save you some time, here are the errors which need fixing in order to build webkit (this is to expand upon Ben's answer).

The errors appear in the following files (the two files are identical, and the errors need to be fixed in each):

  • %QTDIR%\qt\src\3rdparty\webkit\javascriptcore\runtime\StructureTransitionTable.h
  • %QTDIR%\qt\src\3rdparty\javascriptcore\JavaScriptCore\runtime\StructureTransitionTable.h

Here are the errors and how to fix them:

  1. %QTDIR%\qt\src\3rdparty\webkit\javascriptcore\runtime\StructureTransitionTable.h(146) : table()->add(key, Transition(structure, 0));
    Change it to table()->add(key, Transition(structure, nullptr));
  2. %QTDIR%\qt\src\3rdparty\webkit\javascriptcore\runtime\StructureTransitionTable.h(153) : table()->add(key, Transition(0, structure));
    Change it to table()->add(key, Transition(nullptr, structure));
  3. Make the same two changes for %QTDIR%\qt\src\3rdparty\javascriptcore\JavaScriptCore\runtime\StructureTransitionTable.h (or copy your edited file over this one)
like image 25
guesser Avatar answered Oct 27 '22 08:10

guesser


It worked for me to build just as if it was vs2008, but using the vs2010 tools:

  1. Open vs2010 command prompt. cd into the top-level Qt directory.
  2. configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast
  3. nmake
like image 55
Ben Avatar answered Oct 27 '22 07:10

Ben