Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5 Windows compilation with Mingw fails on qvkgen_wrapper.sh execution



  • Hi,

    • Windows 10, Qt 5.15.1, mingw 8.1 64b
    • Strawberry Perl and cygwin64 installed
    where g++
    
    c:\Qt\Tools\mingw810_64\bin\g++.exe
    C:\Strawberry\c\bin\g++.exe
    

    When Strawberry g++ was first - compilation ended with internal compiler error.

    • configure -debug-and-release -opensource -confirm-license -shared -platform win32-g++ -nomake examples -nomake tests -no-compile-examples -no-vulkan

    Now, when I trigger compilation it fails with

    mingw32-make[3]: Entering directory 'C:/Qt/5.15.1/Src/qtbase/src/gui'
    C:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Release all
    mingw32-make[4]: Entering directory 'C:/Qt/5.15.1/Src/qtbase/src/gui'
    /C/Qt/5.15.1/Src/qtbase/src/gui/qvkgen_wrapper.sh vulkan/vk.xml C:/Qt/5.15.1/Src/qtbase/header.LGPL vulkan/qvulkanfunctions
    /usr/bin/sh: /C/Qt/5.15.1/Src/qtbase/src/gui/qvkgen_wrapper.sh: No such file or directory
    mingw32-make[4]: *** [Makefile.Release:1370: vulkan/qvulkanfunctions.h] Error 127
    mingw32-make[4]: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src/gui'
    mingw32-make[3]: *** [Makefile:49: release-all] Error 2
    mingw32-make[3]: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src/gui'
    mingw32-make[2]: *** [Makefile:586: sub-gui-make_first] Error 2
    mingw32-make[2]: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src'
    mingw32-make[1]: *** [Makefile:54: sub-src-make_first] Error 2
    mingw32-make[1]: Leaving directory 'C:/Qt/5.15.1/Src/qtbase'
    mingw32-make: *** [Makefile:91: module-qtbase-make_first] Error 2
    

    I'm on Windows without shell. Why it executes qvkgen_wrapper.sh ?
    I found this part in qtbase/src/gui/Makefile for vulkan files.

    Someone mentioned in https://bugreports.qt.io/browse/QTBUG-66435 about similar problem which was supposed to not appear any more since 5.12.

    How to complete successfully compilation?


  • Moderators

    Can you check whether you've sh.exe in the PATH? If so, qmake will assume you're running inside it, and will assume a shell environment.



  • Hi,
    Yes, sh was accessible in PATH. I renamed cygwin64 folder, configured and build whole Qt without problem.
    Thank you


Log in to reply