OK, I figured it would be good to try to just recompile Qt5-Tools locally to see if that resolved the linker issue, but I can't even do that. The steps should have been simple enough:
Code: Select all
cd /tmp
git clone https://github.com/msys2/MINGW-packages
cd MINGW-packages/mingw-w64-qt5-tools
MINGW_ARCH=mingw64 makepkg-mingw -sLf
But when I do this, the compilation fails because it can't find an include:
Code: Select all
g++ -c -include .pch/release/lib_pch.h -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQDESIGNER_SDK_LIBRARY -DQDESIGNER_EXTENSION_LIBRARY -DQDESIGNER_UILIB_LIBRARY -DQDESIGNER_SHARED_LIBRARY -DQT_DESIGNER -DQT_USE_QSTRINGBUILDER -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_DESIGNER_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_UIPLUGIN_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_UIPLUGIN_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib -I. -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/extension -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/sdk -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/shared -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/shared/qtpropertybrowser -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/shared/deviceskin -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/shared/findwidget -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/shared/qtgradienteditor -IE:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/uilib -I../../../../include -I../../../../include/QtDesigner -I../../../../include/QtDesigner/5.15.2 -I../../../../include/QtDesigner/5.15.2/QtDesigner -Itmp -I../../../../include/QtUiPlugin -IE:/msys64/mingw64/include/QtWidgets/5.15.2 -IE:/msys64/mingw64/include/QtWidgets/5.15.2/QtWidgets -IE:/msys64/mingw64/include/QtGui/5.15.2 -IE:/msys64/mingw64/include/QtGui/5.15.2/QtGui -IE:/msys64/mingw64/include/QtCore/5.15.2 -IE:/msys64/mingw64/include/QtCore/5.15.2/QtCore -IE:/msys64/mingw64/include/QtWidgets -IE:/msys64/mingw64/include/QtGui -IE:/msys64/mingw64/include/QtXml -IE:/msys64/mingw64/include/QtCore -I.moc/release -I.uic -I/include -I/include -I@@QT_REAL_PREFIX/dir@@/include/mariadb -IE:/msys64/mingw64/share/qt5/mkspecs/win32-g++ -o .obj/release/qdesigner_taskmenu.o E:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/shared/qdesigner_formbuilder.cpp
In file included from E:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/shared/qdesigner_formbuilder.cpp:35:
../../../../include/QtDesigner/5.15.2/QtDesigner/private/ui4_p.h:1:10: fatal error: ../../../../../../../../../../../../tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/uilib/ui4_p.h: No such file or directory
1 | #include "../../../../../../../../../../../../tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/uilib/ui4_p.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
The catch is, the necessary files appear to be there. If I:
Code: Select all
cd E:/msys64/tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/shared/
cat ../../../../include/QtDesigner/5.15.2/QtDesigner/private/ui4_p.h
I get
Code: Select all
#include "../../../../../../../../../../../../tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/uilib/ui4_p.h"
So then I:
Code: Select all
cd ../../../../include/QtDesigner/5.15.2/QtDesigner/private/
cat ../../../../../../../../../../../../tmp/MINGW-packages/mingw-w64-qt5-tools/src/qttools/src/designer/src/lib/uilib/ui4_p.h
... the file is there, and looks fine. So while that path is sort of absurd, as far as I can tell it should be working. Honestly, I was sort of hoping that while typing this out I'd have one of those Eureka! moments... it didn't happen.