Results 1 to 3 of 3

Thread: Compilation error when compiling Qt Creator 2.0 for x64

  1. #1
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Compilation error when compiling Qt Creator 2.0 for x64

    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:
    Qt Code:
    1. c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe c:\Qt\qt-creator-2.0.0-src\qtcreator.pro
    2. nmake
    To copy to clipboard, switch view to plain text mode 
    But 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
    Qt Code:
    1. c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe "QT_PRIVATE_HEADERS=" c:\Qt\qt-creator-2.0.0-src\qtcreator.pro
    To copy to clipboard, switch view to plain text mode 
    and also
    Qt Code:
    1. set QTCREATOR_WITH_QML=1
    2. 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.pro
    To copy to clipboard, switch view to plain text mode 
    All resulting in the same error posted above. Does anybody have any advice? I should also note that I have no need for QML support.

  2. #2
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compilation error when compiling Qt Creator 2.0 for x64

    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
    Qt Code:
    1. c:\Qt\qt-4.7.0-beta1-src\bin\qmake.exe "QT_PRIVATE_HEADERS=" c:\Qt\qt-creator-2.0.0-src\qtcreator.pro
    2. nmake
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compilation error when compiling Qt Creator 2.0 for x64

    You need a newer version of Qt 4.7

Similar Threads

  1. Replies: 4
    Last Post: 19th March 2010, 19:16
  2. Error compiling Qt Creator src on windows
    By munna in forum Installation and Deployment
    Replies: 2
    Last Post: 18th May 2009, 13:58
  3. error compiling Qt Creator
    By gt.beta2 in forum Qt Tools
    Replies: 3
    Last Post: 6th April 2009, 15:49
  4. Compiling with boost.thread in Qt Creator 0.9
    By Envergure in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2008, 08:10
  5. Compiling with boost.thread in Qt Creator 0.9
    By Envergure in forum Qt Programming
    Replies: 0
    Last Post: 28th November 2008, 04:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.