install qt5.9.1 from src by vs2017 error.nmake: fatal error u1077

  • my os is win7 x64. I have installed vs2017 at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community".
    I want to build qt library with msvc14.1 either msvc14.0. because I have bulid boost with msvc14.1.
    I run the "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\vcvars64.bat",
    and then

    cd /d F:\qt-everywhere-opensource-src-5.9.1
    .\configure -prefix F:\qt-5.9.1 -release -debug -nomake tests -nomake examples -confirm-license

    Now, there was somethings wrong:
    ninjia: bulid stopped: subcommand failed.
    nmake: fatal error u1077: 'call' : return '0x1'
    nmake:fatal error u1077: "...........\2017\Community\vc\tools\14.11.25503\bin\hostx64\x64\nmake.exe": return code '0x2"

    Thank you very much for your help!

  • Lifetime Qt Champion


    Might be a silly question but do you have all the dependencies to build the QtWebEngine module ? Note that if you don't need that module, you can avoid building it.

  • Thank you very much!
    When I

    nmake > nmake.out.txt 2>&1

    , as you know, some error happened at qtwebengine.
    so I

    configure.bat -skip qtwebengine -redo

    I can build it successfully.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.