KDAB / GammaRay

GammaRay is a tool to poke around in a Qt-application and also to manipulate the application to some extent.
https://www.kdab.com/gammaray
Other
1.63k stars 283 forks source link

Build Failed : no such file or directory direct.h #978

Closed Snolandia closed 7 months ago

Snolandia commented 7 months ago

cmake build .

following error

FAILED: launcher/core/injector/CMakeFiles/gammaray_injector_style.dir/injectorstyleplugin.cpp.obj C:\msys64\usr\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x050500 -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USING_V110SDK71=1 -D_WIN64 -Dgammaray_injector_style_EXPORTS -IC:/Users/owner/Downloads/GammaRay-master/build/launcher/core/injector -IC:/Users/owner/Downloads/GammaRay-master/launcher/core/injector -IC:/Users/owner/Downloads/GammaRay-master/build/launcher/core/injector/gammaray_injector_style_autogen/include -IC:/Users/owner/Downloads/GammaRay-master -IC:/Users/owner/Downloads/GammaRay-master/3rdparty -IC:/Users/owner/Downloads/GammaRay-master/build -isystem C:/Qt/6.6.3/mingw_64/include/QtCore -isystem C:/Qt/6.6.3/mingw_64/include -isystem C:/Qt/6.6.3/mingw_64/mkspecs/win32-g++ -isystem C:/Qt/6.6.3/mingw_64/include/QtGui -isystem C:/Qt/6.6.3/mingw_64/include/QtWidgets -isystem C:/Qt/6.6.3/mingw_64/include/QtGui/6.6.3 -isystem C:/Qt/6.6.3/mingw_64/include/QtGui/6.6.3/QtGui -isystem C:/Qt/6.6.3/mingw_64/include/QtCore/6.6.3 -isystem C:/Qt/6.6.3/mingw_64/include/QtCore/6.6.3/QtCore -Wunused-but-set-variable -Wlogical-op -Wsizeof-pointer-memaccess -Wreorder -Wsuggest-override -Wall -Wextra -pedantic -Woverloaded-virtual -Winit-self -Wmissing-include-dirs -Wunused -Wundef -Wpointer-arith -Wmissing-noreturn -Werror=return-type -Wswitch -std=gnu++0x -fpermissive -fno-operator-names -Wa,-mbig-obj -Wzero-as-null-pointer-constant -O3 -DNDEBUG -std=gnu++17 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT launcher/core/injector/CMakeFiles/gammaray_injector_style.dir/injectorstyleplugin.cpp.obj -MF launcher\core\injector\CMakeFiles\gammaray_injector_style.dir\injectorstyleplugin.cpp.obj.d -o launcher/core/injector/CMakeFiles/gammaray_injector_style.dir/injectorstyleplugin.cpp.obj -c C:/Users/owner/Downloads/GammaRay-master/launcher/core/injector/injectorstyleplugin.cpp In file included from C:/Qt/6.6.3/mingw_64/include/QtCore/6.6.3/QtCore/private/qthread_p.h:20, from C:/Qt/6.6.3/mingw_64/include/QtGui/6.6.3/QtGui/private/qguiapplication_p.h:29, from C:/Users/owner/Downloads/GammaRay-master/launcher/core/injector/injectorstyleplugin.cpp:17: C:/Qt/6.6.3/mingw_64/mkspecs/win32-g++/qplatformdefs.h:21:10: fatal error: direct.h: No such file or directory 21 | #include | ^~~~~~ compilation terminated.

mattkdab commented 7 months ago

try using the mingw install provided by Qt rather than msys2 if you need to use msys2 for some reason you may have to compile qt from source with the same toolchain direct.h is in msys64\mingw64\include if you've installed the mingw-w64 headers with pacman -S mingw-w64-x86_64-headers-git but adding this directory to the include path caused other issues for me related to standard library headers included from Qt headers. the best move is probably to use the Qt-provided mingw compiler

Snolandia commented 7 months ago

Woops, thats my bad. I had kinda expected the QT Creator terminal to be et up as the QT Creator environment. Though getting the compilers swapped over to the ones in the qt creator gives me a -lmsys-2.0 error

C:\Users\owner\Downloads\GammaRay-master\build>qtcmake --build . [3/882] Linking CXX shared library bin\libgammaray_common-qt6_6-GNU-x86_64.dll FAILED: bin/libgammaray_common-qt6_6-GNU-x86_64.dll common/libgammaray_common-qt6_6-GNU-x86_64.dll.a cmd.exe /C "cd . && c:\Qt\Tools\mingw1120_64\bin\g++.exe -Wunused-but-set-variable -Wlogical-op -Wsizeof-pointer-memaccess -Wreorder -Wsuggest-override -Wall -Wextra -pedantic -Woverloaded-virtual -Winit-self -Wmissing-include-dirs -Wunused -Wundef -Wpointer-arith -Wmissing-noreturn -Werror=return-type -Wswitch -std=gnu++0x -fpermissive -fno-operator-names -Wa,-mbig-obj -Wzero-as-null-pointer-constant -shared -o bin\libgammaray_common-qt6_6-GNU-x86_64.dll -Wl,--out-implib,common\libgammaray_common-qt6_6-GNU-x86_64.dll.a -Wl,--major-image-version,3,--minor-image-version,0 common/CMakeFiles/gammaray_lz4.dir/gammaray_lz4_autogen/mocs_compilation.cpp.obj common/CMakeFiles/gammaray_lz4.dir/__/3rdparty/lz4/lz4.c.obj common/CMakeFiles/gammaray_common.dir/gammaray_common_autogen/mocs_compilation.cpp.obj common/CMakeFiles/gammaray_common.dir/classesiconsrepository.cpp.obj common/CMakeFiles/gammaray_common.dir/commonutils.cpp.obj common/CMakeFiles/gammaray_common.dir/endpoint.cpp.obj common/CMakeFiles/gammaray_common.dir/enumdefinition.cpp.obj common/CMakeFiles/gammaray_common.dir/enumrepository.cpp.obj common/CMakeFiles/gammaray_common.dir/enumvalue.cpp.obj common/CMakeFiles/gammaray_common.dir/message.cpp.obj common/CMakeFiles/gammaray_common.dir/methodargument.cpp.obj common/CMakeFiles/gammaray_common.dir/modelevent.cpp.obj common/CMakeFiles/gammaray_common.dir/modelutils.cpp.obj common/CMakeFiles/gammaray_common.dir/objectbroker.cpp.obj common/CMakeFiles/gammaray_common.dir/objectidfilterproxymodel.cpp.obj common/CMakeFiles/gammaray_common.dir/paintanalyzerinterface.cpp.obj common/CMakeFiles/gammaray_common.dir/paths.cpp.obj common/CMakeFiles/gammaray_common.dir/propertysyncer.cpp.obj common/CMakeFiles/gammaray_common.dir/protocol.cpp.obj common/CMakeFiles/gammaray_common.dir/remoteviewframe.cpp.obj common/CMakeFiles/gammaray_common.dir/remoteviewinterface.cpp.obj common/CMakeFiles/gammaray_common.dir/selflocator.cpp.obj common/CMakeFiles/gammaray_common.dir/sourcelocation.cpp.obj common/CMakeFiles/gammaray_common.dir/transferimage.cpp.obj common/CMakeFiles/gammaray_common.dir/translator.cpp.obj -L/usr/lib/gcc/x86_64-pc-msys/13.2.0 -L/usr/x86_64-pc-msys/lib -L/usr/lib 3rdparty/kde/libgammaray_kitemmodels-qt6_6-GNU-x86_64.dll.a C:/Qt/6.6.3/mingw_64/lib/libQt6Network.a -lws2_32 C:/Qt/6.6.3/mingw_64/lib/libQt6Gui.a -ld3d11 -ldxgi -ldxguid -ld3d12 C:/Qt/6.6.3/mingw_64/lib/libQt6Core.a -lmpr -luserenv -lmsys-2.0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." c:/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsys-2.0 collect2.exe: error: ld returned 1 exit status [4/882] Performing build step for 'GammaRay-Debug' FAILED: multibuild/GammaRay-Debug-prefix/src/GammaRay-Debug-stamp/GammaRay-Debug-build C:/Users/owner/Downloads/GammaRay-master/build/multibuild/GammaRay-Debug-prefix/src/GammaRay-Debug-stamp/GammaRay-Debug-build cmd.exe /C "cd /D C:\Users\owner\Downloads\GammaRay-master\build\Debug && C:\Qt\Tools\CMake_64\bin\cmake.exe --build . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E touch C:/Users/owner/Downloads/GammaRay-master/build/multibuild/GammaRay-Debug-prefix/src/GammaRay-Debug-stamp/GammaRay-Debug-build" [1/646] Building CXX object probe/CMakeFiles/gammaray_probe_obj.dir/entry_unix.cpp.obj C:/Users/owner/Downloads/GammaRay-master/probe/entry_unix.cpp:29:36: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 29 | static HitMeBabyOneMoreTime britney; | ^ [2/646] Building C object common/CMakeFiles/gammaray_lz4.dir/__/3rdparty/lz4/lz4.c.obj [3/646] Building CXX object 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/gammaray_kitemmodels_autogen/mocs_compilation.cpp.obj In file included from C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/mocs_compilation.cpp:2: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/EWIEGA46WW/moc_kmodelindexproxymapper.cpp: In static member function ΓÇÿstatic void KModelIndexProxyMapper::qt_static_metacall(QObject*, QMetaObject::Call, int, void)ΓÇÖ: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/EWIEGA46WW/moc_kmodelindexproxymapper.cpp:145:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 145 | } | ^ [4/646] Building CXX object probe/CMakeFiles/gammaray_winloader.dir/entry_win.cpp.obj [5/646] Building CXX object 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kitemmodels_debug.cpp.obj [6/646] Building CXX object probe/CMakeFiles/gammaray_probe_obj.dir/gammaray_probe_obj_autogen/mocs_compilation.cpp.obj In file included from C:/Users/owner/Downloads/GammaRay-master/build/Debug/probe/gammaray_probe_obj_autogen/mocs_compilation.cpp:2: C:/Users/owner/Downloads/GammaRay-master/build/Debug/probe/gammaray_probe_obj_autogen/EWIEGA46WW/moc_probecreator.cpp: In static member function ΓÇÿstatic void GammaRay::ProbeCreator::qt_static_metacall(QObject*, QMetaObject::Call, int, void*)ΓÇÖ: C:/Users/owner/Downloads/GammaRay-master/build/Debug/probe/gammaray_probe_obj_autogen/EWIEGA46WW/moc_probecreator.cpp:116:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 116 | } | ^ [7/646] Linking CXX shared library C:\Users\owner\Downloads\GammaRay-master\build\plugins\gammaray\3.0\qt6_6-GNU-x86_64d\gammaray_winloaderd.dll [8/646] Building CXX object probe/CMakeFiles/gammaray_probe_obj.dir/hooks.cpp.obj C:/Users/owner/Downloads/GammaRay-master/probe/hooks.cpp:143:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 143 | } | ^ [9/646] Building CXX object 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/klinkitemselectionmodel.cpp.obj In file included from C:/Users/owner/Downloads/GammaRay-master/3rdparty/kde/klinkitemselectionmodel.cpp:209: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/include/moc_klinkitemselectionmodel.cpp: In static member function ΓÇÿstatic void KLinkItemSelectionModel::qt_static_metacall(QObject, QMetaObject::Call, int, void)ΓÇÖ: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/include/moc_klinkitemselectionmodel.cpp:228:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 228 | } | ^ [10/646] Building CXX object 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kmodelindexproxymapper.cpp.obj C:/Users/owner/Downloads/GammaRay-master/3rdparty/kde/kmodelindexproxymapper.cpp:297:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 297 | } | ^ [11/646] Building CXX object probe/CMakeFiles/gammaray_probe_obj.dir/probecreator.cpp.obj C:/Users/owner/Downloads/GammaRay-master/probe/probecreator.cpp:79:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 79 | } | ^ [12/646] Building CXX object plugins/widgetinspector/CMakeFiles/gammaray_widget_export_actions.dir/uiextractor.cpp.obj C:/Users/owner/Downloads/GammaRay-master/plugins/widgetinspector/uiextractor.cpp:59:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 59 | } | ^ [13/646] Building CXX object plugins/widgetinspector/CMakeFiles/gammaray_widget_export_actions.dir/widgetinspector_export_actions.cpp.obj C:/Users/owner/Downloads/GammaRay-master/plugins/widgetinspector/widgetinspector_export_actions.cpp:56:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 56 | } | ^ [14/646] Linking CXX shared library C:\Users\owner\Downloads\GammaRay-master\build\plugins\gammaray\3.0\qt6_6-GNU-x86_64d\libgammaray_widget_export_actionsd.dll [15/646] Building CXX object 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj In file included from C:/Users/owner/Downloads/GammaRay-master/3rdparty/kde/kdescendantsproxymodel.cpp:1347: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/include/moc_kdescendantsproxymodel.cpp: In static member function ΓÇÿstatic void KDescendantsProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)ΓÇÖ: C:/Users/owner/Downloads/GammaRay-master/build/Debug/3rdparty/kde/gammaray_kitemmodels_autogen/include/moc_kdescendantsproxymodel.cpp:428:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 428 | } | ^ [16/646] Linking CXX shared library C:\Users\owner\Downloads\GammaRay-master\build\bin\libgammaray_kitemmodels-qt6_6-GNU-x86_64d.dll FAILED: C:/Users/owner/Downloads/GammaRay-master/build/bin/libgammaray_kitemmodels-qt6_6-GNU-x86_64d.dll 3rdparty/kde/libgammaray_kitemmodels-qt6_6-GNU-x86_64d.dll.a cmd.exe /C "cd . && C:\msys64\usr\bin\c++.exe -Wunused-but-set-variable -Wlogical-op -Wsizeof-pointer-memaccess -Wreorder -Wsuggest-override -Wall -Wextra -pedantic -Woverloaded-virtual -Winit-self -Wmissing-include-dirs -Wunused -Wundef -Wpointer-arith -Wmissing-noreturn -Werror=return-type -Wswitch -std=gnu++0x -fpermissive -fno-operator-names -Wa,-mbig-obj -Wzero-as-null-pointer-constant -Wunused-but-set-variable -Wlogical-op -Wsizeof-pointer-memaccess -Wreorder -Wformat-security -Wsuggest-override -Wall -Wextra -pedantic -Woverloaded-virtual -Winit-self -Wmissing-include-dirs -Wunused -Wundef -Wpointer-arith -Wmissing-noreturn -Werror=return-type -Wswitch -std=gnu++0x -fpermissive -fno-operator-names -Wa,-mbig-obj -Wzero-as-null-pointer-constant -g -shared -o C:\Users\owner\Downloads\GammaRay-master\build\bin\libgammaray_kitemmodels-qt6_6-GNU-x86_64d.dll -Wl,--out-implib,3rdparty\kde\libgammaray_kitemmodels-qt6_6-GNU-x86_64d.dll.a -Wl,--major-image-version,3,--minor-image-version,0 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/gammaray_kitemmodels_autogen/mocs_compilation.cpp.obj 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/klinkitemselectionmodel.cpp.obj 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kmodelindexproxymapper.cpp.obj 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kitemmodels_debug.cpp.obj C:/Qt/6.6.3/mingw_64/lib/libQt6Core.a -lmpr -luserenv -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/gammaray_kitemmodels_autogen/mocs_compilation.cpp.obj:/c/Users/owner/Downloads/GammaRay-master/build/Debug/C:/Qt/6.6.3/mingw_64/include/QtCore/qmetatype.h:2659:(.rdata+0x140): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<bool>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/klinkitemselectionmodel.cpp.obj:klinkitemselectionmodel.cpp:(.rdata+0x998): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/klinkitemselectionmodel.cpp.obj:klinkitemselectionmodel.cpp:(.rdata+0x9a8): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a08): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a10): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QString>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a18): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a48): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<bool>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a58): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a68): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a78): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a80): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a88): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1a98): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1aa0): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1aa8): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ab8): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ac0): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ac8): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ad8): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ae0): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1ae8): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1af8): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b00): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b08): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b10): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b18): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b28): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b30): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b38): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b40): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b48): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<int>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b78): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata+0x1b80): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$_ZN13QMetaSequence12MetaSequenceI5QListIiEE5valueE[_ZN13QMetaSequence12MetaSequenceI5QListIiEE5valueE]+0x78): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$_ZN13QMetaSequence12MetaSequenceI5QListI21QPersistentModelIndexEE5valueE[_ZN13QMetaSequence12MetaSequenceI5QListI21QPersistentModelIndexEE5valueE]+0x78): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<QPersistentModelIndex>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$_ZN13QMetaSequence12MetaSequenceI5QListIbEE5valueE[_ZN13QMetaSequence12MetaSequenceI5QListIbEE5valueE]+0x78): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperIbE8metaTypeE[.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperIbE8metaTypeE]+0x0): undefined reference to QtPrivate::QMetaTypeInterfaceWrapper<bool>::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperI21QPersistentModelIndexE8metaTypeE[.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperI21QPersistentModelIndexE8metaTypeE]+0x0): undefined reference toQtPrivate::QMetaTypeInterfaceWrapper::metaType' /usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: 3rdparty/kde/CMakeFiles/gammaray_kitemmodels.dir/kdescendantsproxymodel.cpp.obj:kdescendantsproxymodel.cpp:(.rdata$.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperIiE8metaTypeE[.refptr._ZN9QtPrivate25QMetaTypeInterfaceWrapperIiE8metaTypeE]+0x0): undefined reference to `QtPrivate::QMetaTypeInterfaceWrapper::metaType' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja: build stopped: subcommand failed.

mattkdab commented 7 months ago

what cmake kit are you using to configure your build directory? it looks like you are still mismatching qt's mingw and msys2

Snolandia commented 7 months ago

Ended up having to delete Msys since qt-cmake wouldnt stop looking for stuff and finding it in the msys files even though i wasnt using that version of cmake. Im fairly sure its something in the projects cmake file inadvertently adding the wrong stuff as I never have this issue with other stuff when i have to use different cmake environments.