PDA

View Full Version : Qt Creator Compilation error when compiling Qt Creator 2.0 for x64



agerlach
7th July 2010, 04:58
I am trying to build Qt Creator 2.0 for x64 on Windows using VS2008. I downloaded the Qt 4.7 source and built it for x64 using the VS2008 x64 command prompt without any issues. To build Qt Creator for x64 I created
a build folder and from that folder perform the following commands in the VS2008 x64 command prompt:

c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe c:\Qt\qt-creator-2.0.0-src\qtcreator.pro
nmakeBut I get the following error:

: error C2039: 'errorString' : is not a member of 'QDeclarativeComponent'
c:\qt\qt-4.7.0-beta1-src\include\qtdeclarative\../../src/declarative/qml
/qdeclarativecomponent.h(63) : see declaration of 'QDeclarativeComponent'
qmlprojectplugin.cpp
qmlprojectmanager.cpp
qmlprojectnodes.cpp
qmlprojectimportwizard.cpp
qmlprojectfile.cpp
qmlprojectruncontrol.cpp
qmlprojectrunconfiguration.cpp
qmlprojectrunconfigurationfactory.cpp
qmlprojectapplicationwizard.cpp
qmltaskmanager.cpp
qmlprojecttarget.cpp
qmloutputformatter.cpp
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.I have also tried the following per the instructions in the README file included with the Qt Creator source

c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe "QT_PRIVATE_HEADERS=" c:\Qt\qt-creator-2.0.0-src\qtcreator.proand also

set QTCREATOR_WITH_QML=1
c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe "QT_PRIVATE_HEADERS=c:\Qt\qt-4.7.0-beta1-src\include" C:\Qt\qt-creator-2.0.0-src\qtcreator.proAll resulting in the same error posted above. Does anybody have any advice? I should also note that I have no need for QML support.

agerlach
7th July 2010, 16:50
OK, got QT Creator 2.0 to compile for x64. The error above points to a error in the QT Creator 2.0 source code. The error is in $QTcreator 2.0 src$\src\plugins\qmlprojectmanager\qmlproject.cpp line 104. It has
component->errorString() which needs to be
component->errorsString(). errorString is not a method of QDeclarativeComponent.

If I try to compile with QML support I get some more similar errors, but I was able to compile with

c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe "QT_PRIVATE_HEADERS=" c:\Qt\qt-creator-2.0.0-src\qtcreator.pro
nmake

ktk
9th July 2010, 22:56
You need a newer version of Qt 4.7