Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. What does this code mean? error: [debug/moc_user.cpp] Error 1
QtWS25 Last Chance

What does this code mean? error: [debug/moc_user.cpp] Error 1

Scheduled Pinned Locked Moved QML and Qt Quick
errorerror 1moccompilation
6 Posts 2 Posters 9.2k 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by Kofr
    #1
    12:45:33: Configuration unchanged, skipping qmake step.
    12:45:33: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" 
    C:/Qt/Qt5.5.0/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    C:\Qt\Qt5.5.0\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.0/5.5/mingw492_32/mkspecs/win32-g++ -IA:/work/repos/QtTest/Bos_MVP2/Bos_MVP2 -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtQuick -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtWidgets -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtQml -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtNetwork -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtCore -I. ..\Bos_MVP2\user.h -o debug\moc_user.cpp
    Makefile.Debug:658: recipe for target 'debug/moc_user.cpp' failed
    mingw32-make[1]: *** [debug/moc_user.cpp] Error 1
    mingw32-make[1]: Leaving directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    mingw32-make: *** [debug] Error 2
    makefile:34: recipe for target 'debug' failed
    12:45:36: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Bos_MVP2 (kit: Desktop Qt 5.5.0 MinGW 32bit)
    When executing step "Сборка"
    12:45:36: Elapsed time: 00:03.```
    K 1 Reply Last reply
    0
    • K Kofr
      12:45:33: Configuration unchanged, skipping qmake step.
      12:45:33: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" 
      C:/Qt/Qt5.5.0/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
      mingw32-make[1]: Entering directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
      C:\Qt\Qt5.5.0\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.0/5.5/mingw492_32/mkspecs/win32-g++ -IA:/work/repos/QtTest/Bos_MVP2/Bos_MVP2 -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtQuick -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtWidgets -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtQml -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtNetwork -IC:/Qt/Qt5.5.0/5.5/mingw492_32/include/QtCore -I. ..\Bos_MVP2\user.h -o debug\moc_user.cpp
      Makefile.Debug:658: recipe for target 'debug/moc_user.cpp' failed
      mingw32-make[1]: *** [debug/moc_user.cpp] Error 1
      mingw32-make[1]: Leaving directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
      mingw32-make: *** [debug] Error 2
      makefile:34: recipe for target 'debug' failed
      12:45:36: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project Bos_MVP2 (kit: Desktop Qt 5.5.0 MinGW 32bit)
      When executing step "Сборка"
      12:45:36: Elapsed time: 00:03.```
      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Kofr said:

      mingw32-make[1]: Entering directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
      
      Are you really using drive A:? 
      Have not seen this for years ;) 
      
      @Kofr said:
      > ```
      > Makefile.Debug:658: recipe for target 'debug/moc_user.cpp' failed
      > mingw32-make[1]: *** [debug/moc_user.cpp] Error 1
      

      The meta object compiler did not create moc_user.cpp
      Try to run qmake manually from Qt creator and rebuild.

      Vote the answer(s) that helped you to solve your issue(s)

      K 1 Reply Last reply
      1
      • K koahnig

        @Kofr said:

        mingw32-make[1]: Entering directory 'A:/work/repos/QtTest/Bos_MVP2/build-Bos_MVP2-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
        
        Are you really using drive A:? 
        Have not seen this for years ;) 
        
        @Kofr said:
        > ```
        > Makefile.Debug:658: recipe for target 'debug/moc_user.cpp' failed
        > mingw32-make[1]: *** [debug/moc_user.cpp] Error 1
        

        The meta object compiler did not create moc_user.cpp
        Try to run qmake manually from Qt creator and rebuild.

        K Offline
        K Offline
        Kofr
        wrote on last edited by
        #3

        @koahnig You may believe that it is floppy drive ahaha
        How to deal with this QMake?? I have never used it before. Is there any other ways to test operability without going deeply in QMake??

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          I assumed you are using Qt creator, are you?
          There you can go to the projects pane on the left. Right click on the project's name. There you should see an entry "Run qmake". Click on that and a little somewhere on "Rebuild".

          Today 'A' and 'B' are useless letters at least as long as a programmer does not print hex ;)

          Vote the answer(s) that helped you to solve your issue(s)

          K 1 Reply Last reply
          0
          • K koahnig

            I assumed you are using Qt creator, are you?
            There you can go to the projects pane on the left. Right click on the project's name. There you should see an entry "Run qmake". Click on that and a little somewhere on "Rebuild".

            Today 'A' and 'B' are useless letters at least as long as a programmer does not print hex ;)

            K Offline
            K Offline
            Kofr
            wrote on last edited by
            #5

            @koahnig running QMake is succesful
            Building returns :-1: error: [debug/moc_user.cpp] Error 1
            The reason might be in Qt 5.5 as with Qt 5.4 everything was ok.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              You did a complete rebuild as well?
              The run of qmake does not create an error code, but it does not introduce a moc statement into makefile.
              I guess you are using a shadow for compiling. Delete the whole shadow folder, rerun qmake once again and rebuild.

              If you think it imay be a bug related to Qt 5.5 you can check on JIRA.

              Vote the answer(s) that helped you to solve your issue(s)

              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