Mingw-packages: qt5 cmake config files broken

Created on 20 Apr 2019  路  10Comments  路  Source: msys2/MINGW-packages

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)
qt5

Most helpful comment

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.

All 10 comments

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).

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

Cool, thank you very much @Alexpux

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fspeech picture fspeech  路  6Comments

gbschenkel picture gbschenkel  路  5Comments

gdo picture gdo  路  8Comments

dimztimz picture dimztimz  路  9Comments

kryptan picture kryptan  路  5Comments