Unsolved MSYS2 Compile QT with makepkg-mingw "No such file or directory" for several files
-
Hi,
I am trying to make QT work with mingw64 (through msys2) and I followed this guide : https://wiki.qt.io/MSYS2
Everything is working fine until I compile it with makepkg-mingw -fsiL I get a No such file or directory after a long while.
Of course not only this file has this error :g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -fno-exceptions -Wall -W -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DLIBEGL_NAME=libEGL -DLIBGLESV2_NAME=libGLESv2 -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_ACCESSIBILITY_SUPPORT_LIB -DQT_VULKAN_SUPPORT_LIB -DQT_WINDOWSUIAUTOMATION_SUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../../../3rdparty/wintab -I../../../../include -I../../../../include/QtEventDispatcherSupport -I../../../../include/QtEventDispatcherSupport/5.12.4 -I../../../../include/QtEventDispatcherSupport/5.12.4/QtEventDispatcherSupport -I../../../../include/QtFontDatabaseSupport -I../../../../include/QtFontDatabaseSupport/5.12.4 -I../../../../include/QtFontDatabaseSupport/5.12.4/QtFontDatabaseSupport -I../../../../include/QtThemeSupport -I../../../../include/QtThemeSupport/5.12.4 -I../../../../include/QtThemeSupport/5.12.4/QtThemeSupport -I../../../../include/QtAccessibilitySupport -I../../../../include/QtAccessibilitySupport/5.12.4 -I../../../../include/QtAccessibilitySupport/5.12.4/QtAccessibilitySupport -I../../../../include/QtVulkanSupport -I../../../../include/QtVulkanSupport/5.12.4 -I../../../../include/QtVulkanSupport/5.12.4/QtVulkanSupport -I../../../../include/QtWindowsUIAutomationSupport -I../../../../include/QtWindowsUIAutomationSupport/5.12.4 -I../../../../include/QtWindowsUIAutomationSupport/5.12.4/QtWindowsUIAutomationSupport -I../../../../include/QtGui/5.12.4 -I../../../../include/QtGui/5.12.4/QtGui -I../../../../include/QtGui -I../../../../include/QtCore/5.12.4 -I../../../../include/QtCore/5.12.4/QtCore -I../../../../include/QtCore -I.moc/release -isystem D:/msys64/mingw64/include/mariadb -I../../../../mkspecs/win32-g++ -o .obj/release/qwindowscontext.o qwindowscontext.cpp In file included from qwindowsintegration.cpp:77: ../../../../include/QtEventDispatcherSupport/5.12.4/QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h:1:10: fatal error: ../../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h: No such file or directory #include "../../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[6]: *** [Makefile.Debug:3269: .obj/debug/qwindowsintegration.o] Error 1
I put the log (as much as the msys console can show) in this file :
https://raw.githubusercontent.com/rXp/Pastbin/master/QT_COMPILE_ERROR_MSYS2_64.txtSince I just copied pasted it all, it was too big for website like pastebin.
Did I do something wrong ? Do I need to change something ?
Thanks for the help,
rXp
-
Hi,
Just in case, if it's only a question of MinGW 64, the latest pre-built release of Qt provides it.