Static build - NMAKE: don't know how to make 'sub-src' error?
-
I'm following this tutorial - http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html#static-linking
and I succesfully configured QT 5 statically with platform win32-MSVC2012.
After configuration i call;
@nmake sub-src@but got this error;
NMAKE: fatal error u1073: dont't know how to make 'sub-src'
I'm new on qt so i can't handle it. What does 'sub-src' refer here.
-
Did you start nmake through the command line of msvc?
If not you do not have the complete environment settings. That might be an explanation.
-
I'm using visual studio's command prompt
-
The tutorial you are referring to is not a tutorial for building static Qt libs.
Did you use source code supplied with an SDK for recompilation?
For building Qt libs on Windows you should download the source code as .zip from "here":http://download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.zip AFAIK the tar.gz is meant for linux distros and has different line endings. Possibly there also other differences.
In general the use of source code supplied with a pre-build has been discouraged in the past. -
yes im using this source code..
-
Did you solve it?
I followed http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC also for static build: set up my %QTDIR%, %OPENSSL%, %PATH% values, added -MP2 compilation option as stated, ran propose "configure" and get the same error when running "nmake sub-src".