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
SebastianM last edited by SebastianM
- 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: 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: 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: *** [Makefile.Release:1370: vulkan/qvulkanfunctions.h] Error 127 mingw32-make: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src/gui' mingw32-make: *** [Makefile:49: release-all] Error 2 mingw32-make: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src/gui' mingw32-make: *** [Makefile:586: sub-gui-make_first] Error 2 mingw32-make: Leaving directory 'C:/Qt/5.15.1/Src/qtbase/src' mingw32-make: *** [Makefile:54: sub-src-make_first] Error 2 mingw32-make: 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
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?
Can you check whether you've
sh.exein the PATH? If so, qmake will assume you're running inside it, and will assume a shell environment.
SebastianM last edited by
shwas accessible in PATH. I renamed
cygwin64folder, configured and build whole Qt without problem.