使用命令安装Qt静态构建错误" nmake install"或者" jom install"

时间:2016-06-24 11:56:39

标签: qt static visual-studio-2015 nmake

我尝试从二进制包(5.6.1)中的另一个安装版本旁边的源代码构建静态和不同版本的Qt(5.7)。我一直在彻底关注tutorial building qt static library改变" jom"命令" nmake" (在我用#34; jom"成功构建之后,我读到某个地方,jom只是让构建更快)命令(或" nmake",两个命令都没有显示错误),我终于坚持到最后一步" jom install",或者在这个实例中" nmake install"。当我输入命令时,我收到此错误:

    C:\Qt\Qt5.6.1\5.7\qt-5.7.0>nmake install

    Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
    Copyright (C) Microsoft Corporation.  All rights reserved.

    cd qtbase\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.7\qt-5.7.0\qtbase\
    bin\qmake C:\Qt\Qt5.6.1\5.7\qt-5.7.0\qtbase\qtbase.pro -o Makefile ) &&         
    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile install

    Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
    Copyright (C) Microsoft Corporation.  All rights reserved.

    cd src\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.7\qt-5.7.0\qtbase\bin\qmake C:\Qt\Qt5.6.1\5.7\qt-5.7.0\qtbase\src\src.pro -o 
    Makefile) && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile install


    Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
    Copyright (C) Microsoft Corporation.  All rights reserved.

    cd corelib\ && ( if not exist Makefile.qtzlib C:\Qt\Qt5.6.1\5.7\qt-5.7.0
    \qtbase\bin\qmake C:\Qt\Qt5.6.1\5.7\qt-5.7.0\qtbase\src\corelib\qtzlib.pro -o Ma
    kefile.qtzlib ) && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\n
    make.exe" -f Makefile.qtzlib install

    Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
    Copyright (C) Microsoft Corporation.  All rights reserved.

    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile.qtzlib.Debug install

    Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
    Copyright (C) Microsoft Corporation.  All rights reserved.

    The filename, directory name, or volume label syntax is incorrect.
    NMAKE : fatal error U1077: 'if' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

我尝试用jom和nmake重建源代码,将nmake的环境变量路径减少到C:\ PROGRA~2 \ MICROS~1.0 \ VC \ bin,逐个编译所有模块,仍然无法做到" nmake安装"或者" jom install"命令。任何想法出了什么问题?

任何帮助将不胜感激,非常感谢

1 个答案:

答案 0 :(得分:0)

The filename, directory name, or volume label syntax is incorrect.

在我的情况下,我将一个不存在的磁盘设置为confiture命令的-prefix参数,这会导致与您的相同的错误。

我只是简单地将所有F :(不存在)替换为所有Makefile和Makefile。*文件中的E :(我的qt在此磁盘下),然后nmake install正常工作。

希望这有帮助。