1
我想根據this tutorial從源代碼編譯Qt5.7。我已經創建qt5vars.cmd
文件:無法使用nmake install從源代碼編譯Qt
cd "C:\Qt_all\qt-everywhere-opensource-src-5.7.0"
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
SET _ROOT="C:\Qt_all\qt-everywhere-opensource-src-5.7.0"
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET QMAKESPEC=win32-msvc2015
SET _ROOT=
我cmd
打開它:
C:\Qt_all\qt5vars.cmd
後,在cmd
:
configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake"
在這種情況下,一切的作品,但Qt的二進制文件編譯成'源代碼'文件夾。現在我想編譯到另一個文件夾中。我完全刪除了「源代碼」文件夾(帶有編譯的二進制文件)並複製了純粹的源代碼文件夾。之後,在cmd
:
C:\Qt_all\qt5vars.cmd
configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\Qt_all\Kits\Qt5.7MSVC2015_64bit"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install
這給出了一個錯誤:
LINK : fatal error LNK1104: cannot open file "C:\Qt_all\qt-everywhere-opensource-src-5.7.0\qtbase\lib\qtpcred.lib"