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. Error /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found
QtWS25 Last Chance

Error /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 923 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.
  • - Offline
    - Offline
    -_-Andi
    wrote on last edited by -_-Andi
    #1

    Hi
    on Qt 5.14 under Win10 im getting following Error when trying to compile (executing g++):
    /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found
    Now /usr/bin/sh does not work on widows obviously, but i cant find were the wrong configuration is stored.
    I have another project that compiles fine, but if i copy the project folder I get the same error again. So I guess the problem is not in the project folder.
    I did look in the environment variables of windows but found nothing wrong.
    Pleas help, thx.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Have a look in the kit options and see if anything is marked with a yellow or red warning sign

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      - 1 Reply Last reply
      1
      • VRoninV VRonin

        Have a look in the kit options and see if anything is marked with a yellow or red warning sign

        - Offline
        - Offline
        -_-Andi
        wrote on last edited by -_-Andi
        #3

        @VRonin there are 2 kits with warnings, but i cant delete them and the default kit looks fine. In what files are these configurations stored?
        Thx

        VRoninV 1 Reply Last reply
        0
        • - -_-Andi

          @VRonin there are 2 kits with warnings, but i cant delete them and the default kit looks fine. In what files are these configurations stored?
          Thx

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          @_-Andi said in Error /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found:

          the default kit looks fine

          Make sure your program uses this kit (in the project settings)

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          - 1 Reply Last reply
          0
          • VRoninV VRonin

            @_-Andi said in Error /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found:

            the default kit looks fine

            Make sure your program uses this kit (in the project settings)

            - Offline
            - Offline
            -_-Andi
            wrote on last edited by -_-Andi
            #5

            @VRonin Thanks for the hint, but unfortunately thats not it.

            While compiling i get
            .
            08:50:16: Starte: "C:\Qt\Qt5.14.1\Tools\mingw730_64\bin\mingw32-make.exe" -j8
            .
            .
            .
            g++ -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -Wextra -Wextra -dM -E -o moc_predefs.h C:/Qt/Qt5.14.1/5.14.1/mingw73_64/mkspecs/features/data/dummy.cpp
            'C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe' -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN --include C:/Users/Andi/Documents/qt/build-e-wiz-Desktop_Qt_5_14_1_MinGW_64_bit-Debug/moc_predefs.h -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/mkspecs/win32-g++ -I'C:/Users/Andi/Documents/qt/e-wiz-2 - Kopie' -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/include -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/include/QtWidgets -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/include/QtGui -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/include/QtANGLE -IC:/Qt/Qt5.14.1/5.14.1/mingw73_64/include/QtCore -I. -IC:/Qt/Qt5.14.1/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++ -IC:/Qt/Qt5.14.1/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 -IC:/Qt/Qt5.14.1/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward -IC:/Qt/Qt5.14.1/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include -IC:/Qt/Qt5.14.1/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed -IC:/Qt/Qt5.14.1/Tools/mingw730_64/x86_64-w64-mingw32/include "../e-wiz-2 - Kopie/e-wiz-gui.h" -o moc_e-wiz-gui.cpp
            /usr/bin/sh: C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\moc.exe: command not found
            mingw32-make: *** [Makefile:681: moc_e-wiz-gui.cpp] Error 127

            So its apparently mingw that tries starting bin/sh
            Were does it get that idea from? Were are the configuration files?
            And why do they depend on which folder my project is in???

            thx

            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