Results 1 to 2 of 2

Thread: compile error Qt 4.7.4 vs2010

  1. #1
    Join Date
    Sep 2011
    Location
    us
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default compile error Qt 4.7.4 vs2010

    I am not sure I installed the right library.

    I tried qt-win-opensource-4.7.4-vs2008 first. It actually configure ok and I was able to nmake ok.

    I had alot of trouble building a new project and tried to open examples from the teacher in VS2010 express.

    I am not sure If I did it wrong or maybe it was not installed correctly.

    So I removed everything and reinstalled QT SDK and then installed a new library version called

    qt-everywhere-opensource-src-4.7.4

    This was when I could not compile or configure visual studio 2010. I even tried to compile it in visual studio 2008 but had the same error.

    I compile it at visual studio 2010 command prompt and then change to the directory where I installed my qt library.

    which was c:\Qt\4.7.4

    I also set my system environment variable c:\QT\4.7.4
    and c:\QT\4.7.4\bin


    then I type command configure to compile visual studio integration with QT

    then I tried configure -debug-and-release -opensource -platform win32-msvc2010

    I get the same configure error

    creating qmake...
    execute: file or path is not found (nmake)
    Cleaning qmake failed, return code -1



    I did not issue command to nmake since I could not configure it

    I am not sure which is the right library to installed.

    Do I need to reinstall QT SDK?

    Do I need to use visual studio C++ 2008 .

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: compile error Qt 4.7.4 vs2010

    It looks like you were running the configure from a command prompt that was not set up to use the relevant Microsoft compiler suite, which is why nmake was not found. There is usually a Start menu entry to start a suitable Microsoft development command prompt. However, you can run vcvarsall.bat or vcvars32.bat (from the VC bin directory) in any command shell to set it up.

    MSVC 2010 is not a tier one platform so you may experience problems.
    http://doc.qt.nokia.com/4.7/supported-platforms.html

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  2. compile error
    By dmartino in forum Newbie
    Replies: 2
    Last Post: 5th November 2010, 18:12
  3. Qwt app compile error
    By ajb in forum Qwt
    Replies: 4
    Last Post: 5th May 2010, 06:42
  4. Qt 4.4.0 compile error
    By MarkoSan in forum Installation and Deployment
    Replies: 10
    Last Post: 15th May 2008, 07:14
  5. Compile error with Qt3.2.3
    By redsprite in forum Installation and Deployment
    Replies: 1
    Last Post: 19th January 2007, 10:36

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.