Important: Please read the Qt Code of Conduct -

I can't build debug qt5.9.1 lib by vs2017 but can build release

  • I have build the release qt lib, such as qt5core.lib. But exec the cmd below, I can't build debug.

    CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
    SET _ROOT=F:\qt-everywhere-opensource-src-5.9.1
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;F:\jom_1_1_2;%PATH%
    .\configure.bat -debug -nomake examples -nomake tests -skip qtwebengine -prefix F:\Qt\Qt5.9.1  -confirm-license -make-tool jom
    jom > jom.out 2>&1 && jom install >>jom.out 2>&1

    It seemed there is nothing error in jom.out.[](link url)
    Could you help me to build the debug? Thank you very much!

  • Lifetime Qt Champion

    @suclida You can build both debug and release in one go providing -debug-and-release parameter to configure.

  • I mkdir F:\qt-everywhere-opensource-src-5.9.1\qt-build and cd it to configure, then I build the debug successfully.
    Maybe I didn't remove the build_dir, so the debug can't create.

  • I was compiling qt5.9.3 with vs2017 and always get error. Can you tell me your step to compile source code ?

Log in to reply