CMake Error at D:/msys64/mingw64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
The imported target "Qt5::Gui" references the file
"C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libglu32.a"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"D:/msys64/mingw64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
but not all the files it references.
Call Stack (most recent call first):
D:/msys64/mingw64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:45 (_qt5_Gui_check_file_exists)
D:/msys64/mingw64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:70 (_qt5gui_find_extra_libs)
D:/msys64/mingw64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:212 (include)
D:/msys64/mingw64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:70 (find_package)
Looks like qt5.12.3-1 Qt5GuiConfigExtras.cmake wrongly referenced msys2 installation path as absolute C:/building/msys32
On Line 70:
_qt5gui_find_extra_libs(OPENGL "C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libglu32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libopengl32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libgdi32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libuser32.a" "" "")
In your case, replacing C:/building/msys32 into D:/msys64 will bypass the issue.
Same issue here (https://ci.appveyor.com/project/tulip-dev/tulip/history).
Is this related to https://github.com/meta-qt5/meta-qt5/issues/108?
Yep, can confirm. See referenced issues above.
@Alexpux this is still an issue
the qt5 package cannot be used with a cmake build
I don鈥檛 have time to investigate it sorry
@Optiligence I think it is still issue with qt_configure.prf, we fix pri & prl files in PKGBUILD and then replace paths using qtbinpatcher. But now it also propagated to cmake files too, so possible workaround to sed paths in cmake files and fix qtbinpather to do the same
@Optiligence first part https://github.com/msys2/MINGW-packages/commit/47b278a8a07dd15a80b20552c9988f50a25d0bb2
Finally fixed in 5.12.4-2 by https://github.com/msys2/MINGW-packages/commit/209d6b4d9eb7f9f8560dd88a9fe342d23346d6ef
Cool, thank you very much @Alexpux
Most helpful comment
Looks like qt5.12.3-1 Qt5GuiConfigExtras.cmake wrongly referenced msys2 installation path as absolute
C:/building/msys32On Line 70:
_qt5gui_find_extra_libs(OPENGL "C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libglu32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libopengl32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libgdi32.a;C:/building/msys32/mingw64/x86_64-w64-mingw32/lib/libuser32.a" "" "")In your case, replacing
C:/building/msys32intoD:/msys64will bypass the issue.