QT 5.8.0 mingw32 Moc compile error on Win10



  • Hi all,
    I just test the new 5.8.0 release and get this Moc error (compile is ok on previous Qt 5.7.1)

    Thank you for your help

    21:48:08: Exécution des étapes pour le projet QuarkEmu...
    21:48:08: Configuration inchangée, étape qmake sautée.
    21:48:08: Débute : "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.8.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/Thierry Wilmot/Sync/build-QuarkEmu-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    C:\Qt\Qt5.8.0\5.8\mingw53_32\bin\moc.exe -DUNICODE -DQUARK_EMU_VERSION=2017.07.02-beta -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN --include C:/Users/Thierry Wilmot/Sync/QuarkEmu/bin/debug/win32/moc/moc_predefs.h -IC:/Qt/Qt5.8.0/5.8/mingw53_32/mkspecs/win32-g++ -I"C:/Users/Thierry Wilmot/Sync/QuarkEmu" -I"C:/Users/Thierry Wilmot/Sync/QuarkEmu/src" -I"C:/Users/Thierry Wilmot/Sync/QuarkEmu/thirdparty/lua-5.3.3/src" -I"C:/Users/Thierry Wilmot/Sync/QuarkEmu/thirdparty/SDL2/include" -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtWidgets -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtMultimedia -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtGui -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtANGLE -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtNetwork -IC:/Qt/Qt5.8.0/5.8/mingw53_32/include/QtCore -I. -IC:/Qt/Qt5.8.0/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include -IC:/Qt/Qt5.8.0/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include-fixed -IC:/Qt/Qt5.8.0/Tools/mingw530_32/i686-w64-mingw32/include -IC:/Qt/Qt5.8.0/Tools/mingw530_32/i686-w64-mingw32/include/c++ -IC:/Qt/Qt5.8.0/Tools/mingw530_32/i686-w64-mingw32/include/c++/i686-w64-mingw32 -IC:/Qt/Qt5.8.0/Tools/mingw530_32/i686-w64-mingw32/include/c++/backward ..\QuarkEmu\src\mainwindow.h -o ..\QuarkEmu\bin\debug\win32\moc\moc_mainwindow.cpp
    Usage: C:\Qt\Qt5.8.0\5.8\mingw53_32\bin\moc.exe [options] [header-file] [@option-file]
    Qt Meta Object Compiler version 67 (Qt 5.8.0)

    Options:
    -?, -h, --help Displays this help.
    -v, --version Displays version information.
    -o <file> Write output to file rather than stdout.
    -I <dir> Add dir to the include path for header files.
    -F <framework> Add Mac framework to the include path for header
    files.
    -E Preprocess only; do not generate meta object
    code.
    -D <macro[=def]> Define macro, with optional definition.
    -U <macro> Undefine macro.
    -M <key=value> Add key/value pair to plugin meta data
    --compiler-flavor <flavor> Set the compiler flavor: either "msvc" or "unix".
    -i Do not generate an #include statement.
    -p <path> Path prefix for included file.
    -f <file> Force #include <file> (overwrite default).
    -b <file> Prepend #include <file> (preserve default
    include).
    --include <file> Parse <file> as an #include before the main
    source(s).
    -n <which> Do not display notes (-nn) or warnings (-nw).
    Compatibility option.
    --no-notes Do not display notes.
    --no-warnings Do not display warnings (implies --no-notes).
    --ignore-option-clashes Ignore all options that conflict with compilers,
    like -pthread conflicting with moc's -p option.

    Arguments:
    [header-file] Header file to read from, otherwise stdin.
    [@option-file] Read additional options from option-file.
    moc: Too many input files specified: 'Wilmot/Sync/QuarkEmu/bin/debug/win32/moc/moc_predefs.h' '..\QuarkEmu\src\mainwindow.h'
    Makefile.Debug:586: recipe for target '../QuarkEmu/bin/debug/win32/moc/moc_mainwindow.cpp' failed
    mingw32-make[1]: Leaving directory 'C:/Users/Thierry Wilmot/Sync/build-QuarkEmu-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    Makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [../QuarkEmu/bin/debug/win32/moc/moc_mainwindow.cpp] Error 1
    mingw32-make: *** [debug] Error 2
    21:48:09: Le processus "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" s'est terminé avec le code 2.
    Erreur lors de la compilation/déploiement du projet QuarkEmu (kit : Desktop Qt 5.8.0 MinGW 32bit)
    When executing step "Make"
    21:48:09: Temps écoulé : 00:01.


  • Lifetime Qt Champion

    Hi,

    Looks strange. Is the source of the project available somewhere ?



  • Unfortunately source is not available on github or elsewhere, but I can sent to you ...



  • I finally found the problem in version 5.8.0 but I dont know how fix it.

    The problem is that MOC --include option does not contains double-quote around path

    --include C:/Users/Thierry Wilmot/Sync/QuarkEmu/bin/debug/win32/moc/moc_predefs.h

    Thank you for your help


  • Lifetime Qt Champion

    Looks like a regression then.

    You should check the bug report system to see if there's already something about that matter.



  • @SGaist Thanks, I will have a look on Jira so ...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.