Error compiling "Kimageformats" with "OpenEXR" library for qt
-
Basically I'm having a problem with "moc_predefs.h" to generate kimg_exr.dll, just like it has in krita, and my openexr libraries are complete, I do not know why the imcompatibility, I already tested in the VS and MinGW compiler, and it seems that the mingw is the only one that works but that mistake is tormenting me.
PS: I'm using windows 10
PS C:\Git\kimageformats\build> cmake --build .
[ 1%] Automatic MOC for target kimg_exrAutoMoc subprocess error
The content generation command for "moc_predefs.h" failed.
Command
C:/Qt/Tools/mingw730_64/bin/g++.exe -dM -E -c "C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp" -IC:/Git/kimageformats/build/src/imageformats -IC:/Git/kimageformats/src/imageformats -IC:/Qt/5.12.0/mingw73_64/include -IC:/Qt/5.12.0/mingw73_64/include/QtGui -IC:/Qt/5.12.0/mingw73_64/include/QtANGLE -IC:/Qt/5.12.0/mingw73_64/include/QtCore -IC:/Qt/5.12.0/mingw73_64/./mkspecs/win32-g++ "-IC:/Program Files/OpenEXR/include/OpenEXR" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32_LEAN_AND_MEAN -DWINVER=0x0600 -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0600 -DWIN32
Output
src\imageformats\CMakeFiles\kimg_exr_autogen.dir\build.make:56: recipe for target 'src/imageformats/CMakeFiles/kimg_exr_autogen' failed
mingw32-make.exe[2]: *** [src/imageformats/CMakeFiles/kimg_exr_autogen] Error 1
CMakeFiles\Makefile2:569: recipe for target 'src/imageformats/CMakeFiles/kimg_exr_autogen.dir/all' failed
mingw32-make.exe[1]: *** [src/imageformats/CMakeFiles/kimg_exr_autogen.dir/all] Error 2
Makefile:139: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2 -
@Nathan-Miguel Did you try to ask KImageFormat project? It is not part of Qt, so not sure anybody will be able to help you.
Also, there should be something before this lineThe content generation command for "moc_predefs.h" failed.
telling what exactly failed.
-
Locking as duplicate of https://forum.qt.io/topic/97449/how-can-i-open-openexr-image-on-qt-widget