Netbeans, Qt, & Qmake "command not found"

All,

I am trying to use Netbeans to create a simple Qt application (from a tutorial) and I cannot build it because I get this error:

    /C/Qt/2010.02.1/qt/qmake/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
    make[1]:/C/Qt/2010.02.1/qt/qmake/qmake.exe: Command not found

when the file is there, and I can open the terminal and execute it.

Note in the error message: "/ C / Qt ..." Actual path: C: / Qt ...
I used the tools / options / C ++ dialog to go to the file and select it, and it is listed as C: \ Qt ... just like all other tools. What distorts C: and makes it / C /?

Now, if I delete the path to qmake and use the PATH environment variable, it finds it, but then it fails due to "multiple targets" ...

Obviously pilot error, but where? I saw several posts about this, and they all say to make sure that this is on the way, and it is, so now? (I can open a terminal and type "qmake", and I get "Usage: qmake ...", so I know this is visible.

Windows 7, Netbeans 7.0, MinGW (I also have cygwin installed ...).

Any help is greatly appreciated.

: bp:

Applications: I changed the path to my "make" to use MinGW, not cygqin, and now it can find qmake, but I get other errors: "Could not find mkspecs for your QMAKESPEC (win32-g ++) after trying: .. .

Any additional thoughts?

+5
source share
1 answer

QMake , . Windows " Qt" "Qt SDK 2010.05" "". , :

Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\2010.05\qt
-- PATH set to C:\Qt\2010.05\qt\bin
-- Adding C:\Qt\2010.05\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

, , qmake, .

, "/C/...", , mingw .

0

All Articles