Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 Windows compilation with Mingw fails on qvkgen_wrapper.sh execution

Qt5 Windows compilation with Mingw fails on qvkgen_wrapper.sh execution

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 566 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SebastianMS Offline
    SebastianMS Offline
    SebastianM
    wrote on last edited by SebastianM
    #1

    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?

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      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.

      Director R&D, The Qt Company

      1 Reply Last reply
      2
      • SebastianMS Offline
        SebastianMS Offline
        SebastianM
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved