Unsolved Trying to run qmake from command line on windows to build my application.
-
Surprisingly I have this working on linux but I can't seem to get it to work on windows.
When I try.
cd build C:\Qt\5.9.1\msvc2015_64\bin\qmake.exe -makefile -spec win32-msvc ../project/project.pro make
I get this error
/bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [Makefile:44: sub-framework-make_first] Error 1
When I use -spec win32-g++
I get linking errors although I think this is because I have built my libraries using visual studio.
Ideally I would like to get the visual studio version working i.e. -spec win32-msvc
Can anyone help?
-
@John-Owens Is the build directory empty when you call qmake?
Also with MSVC you should call nmake not make. -
@jsulm said in Trying to run qmake from command line on windows to build my application.:
Also with MSVC you should call nmake not make.
or
jom
, if you don't want to wait that long. -
Hi,
What command line are you using for that ?
-
@jsulm When I call nmake I now get missing headers however I think I can continue from here.
Thanks.