error when building project when executing step 'qmake'
Just installed qt creator 5.1.1 32 bit and i tried to run an example application from qt. It showed me this compile output
Quote:
19:17:21: Running steps for project application...
19:17:21: Could not start process "C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin\qmake.exe" C:\Qt\Qt5.1.1\5.1.1\mingw48_32\examples\widgets\ma inwindows\application\application.pro -r -spec win32-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
Error while building/deploying project application (kit: Desktop Qt 5.1.1 MinGW 32bit)
When executing step 'qmake'
19:17:22: Elapsed time: 00:00.
Do you know where the problem is?
Re: error when building project when executing step 'qmake'
Quote:
Just installed qt creator 5.1.1 MSVC 2010 32
Umm... you mean Qt not QtCreator, since QtCreator is still on version 4.x.x
And in addition,
Quote:
(kit: Desktop Qt 5.1.1 MinGW 32bit)
Which does not fit to you saying MSVC 2010.
I don't know if this plays a role in the reason the build breaks for you, but it would be a good start to clear these points first.
Re: error when building project when executing step 'qmake'
Yes the right one is Desktop Qt 5.1.1 MinGW 32bit. I'm sorry for the wrong name
and i saw in the about qt creator it said, based on qt 5.1.1 (msvc 2010,32 bit)
Re: error when building project when executing step 'qmake'
Try executing the steps one by one.
Try first running qmake on the project.
Does it succeed?
Re: error when building project when executing step 'qmake'
Quote:
Originally Posted by
high_flyer
Try executing the steps one by one.
Try first running qmake on the project.
Does it succeed?
do you mean trying to run a simple program? I've done it and it give me the same compile output
Re: error when building project when executing step 'qmake'
no, I mean running qmake on the project.
In QtCreator, right click the project and select "Run qmake" or on the console in the folder that contains the *.pro file, run qmake <name>.pro
Re: error when building project when executing step 'qmake'
Quote:
Originally Posted by
high_flyer
no, I mean running qmake on the project.
In QtCreator, right click the project and select "Run qmake" or on the console in the folder that contains the *.pro file, run qmake <name>.pro
Yes and this is the output
Code:
20:56:39: Running steps for project untitled...
20:56:39: Could not start process "C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin\qmake.exe" C:\Users\Rizky\Documents\untitled\untitled.pro -r -spec win32-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
Error while building/deploying project untitled (kit: Desktop Qt 5.1.1 MinGW 32bit)
When executing step 'qmake'
20:56:39: Elapsed time: 00:00.
Re: error when building project when executing step 'qmake'
Hmm...
Try the following:
1. Rename your *.pro file to *.pro_old
2. in the console, from the root folder of your source run:
qmake -project
This should have create a new *.pro file.
If it did, try simply to call (from the console):
qmake
Re: error when building project when executing step 'qmake'
Quote:
Originally Posted by
high_flyer
Hmm...
Try the following:
1. Rename your *.pro file to *.pro_old
2. in the console, from the root folder of your source run:
qmake -project
This should have create a new *.pro file.
If it did, try simply to call (from the console):
qmake
Sorry but where should I actually save the project file?
Re: error when building project when executing step 'qmake'
Quote:
Sorry but where should I actually save the project file?
There where it is now.
At the root of your project source directory.