[CMake] Automoc fails on MSYS2/MinGW
Dmitry Mikushin
dmitry at parallel-computing.pro
Thu Oct 4 07:14:20 EDT 2018
Dear all,
I'm currently looking into an error from Automoc below, which gives no clue
about the cause of failure (Output is empty). The mechanics of Automoc in
CMake is not clear. Looks like "cmake_autogen" only launches a command
described in variables. But where the command return value is checked? What
places should I look at to debug cmake_autogen/automoc in CMake?
Thanks & Kind regards,
- Dmitry Mikushin.
$ make
[ 0%] Automatic MOC for target glazomer
Start
AutoMoc subprocess error
------------------------
The content generation command for "moc_predefs.h" failed.
Command
-------
/mingw64/bin/x86_64-w64-mingw32-g++.exe -dM -E -c
/usr/share/cmake-3.12.2/Modules/CMakeCXXCompilerABI.cpp
-I/c/Users/dmikushin/glazomer/glazomer/build/glazomer_autogen/include
-I/mingw64/include/QtDBus -I/mingw64/include/QtNetwork
-I/mingw64/include/QtTest -I/mingw64/include/qwt
-I/mingw64/include/libusb-1.0
-I/c/Users/dmikushin/glazomer/glazomer/ThirdParty/eigen
-I/c/Users/dmikushin/glazomer/glazomer/src -I/mingw64/include
-I/mingw64/include/QtCore -I/mingw64/share/qt5/mkspecs/win32-g++
-I/mingw64/include/QtGui -I/mingw64/include/QtWidgets -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_WIDGETS_LIB
Output
------
make[2]: *** [CMakeFiles/glazomer_autogen.dir/build.make:58:
CMakeFiles/glazomer_autogen] Error 1
make[1]: *** [CMakeFiles/Makefile2:180:
CMakeFiles/glazomer_autogen.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181004/4c9b675c/attachment-0001.html>
More information about the CMake
mailing list