Topic: wiki page for mingw and glbinding issue

palino
Avatar
Topic Opener
Joined: 2022-12-19, 08:06 UTC+1.0
Posts: 20
OS: Windows 11
Version: master
Ranking
Pry about Widelands
Posted at: Today 10:03 UTC+1.0

I've updated Buildingwidelandsunderwindowsnew page - the first part for MSYS2. Some of the steps and package lists were outdated. I have few points for discussion/review:

  • Removal of this sentence (or maybe movement to Nuwen chapter): This is currently a work in progress!
  • Removal of this sentence to save time you could switch off Generation of translations with -DOPTION_BUILD_TRANSLATIONS=OFF
  • Mentioning script and file which is automatically doing installation of packages: utils/windows/install_deps_mingw.sh and utils/windows/mingw_deps
  • Sentences about GLbinding are not verifiable, because with current MSYS2 packages there is following issue:

This step is OK: pacman -S mingw-w64-x86_64-glbinding
But CMake fails:

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPTION_USE_GLBINDING=ON -DOPTION_BUILD_WINSTATIC=ON -DOPTION_BUILD_WEBSITE_TOOLS=OFF -DOPTION_ASAN=OFF ..
...
-- Link io_filesystem with third_party_minizip
-- Configuring done (5.1s)
CMake Error at C:/msys64/mingw64/lib/cmake/glbinding/glbinding/glbinding-export.cmake:62 (set_target_properties):
  The link interface of target "glbinding::glbinding" contains:

    KHR::KHR

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  C:/msys64/mingw64/lib/cmake/glbinding/glbinding-config.cmake:28 (include)
  C:/msys64/mingw64/lib/cmake/glbinding/glbinding-config.cmake:38 (find_module)
  C:/msys64/mingw64/lib/cmake/glbinding/glbinding-config.cmake:46 (find_modules)
  CMakeLists.txt:142 (find_package)

The installed package mingw-w64-x86_64-headers-git contains the header C:\msys64\mingw64\include\KHR\khrplatform.h, but somehow the CMake files of glbinding package don't find it. Not sure if this is fixable in widelands sources.


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16 UTC+1.0
Posts: 2879
Version: always the latest
Ranking
One Elder of Players
Location: Bavaria
Posted at: Today 17:10 UTC+1.0

palino wrote

I've updated Buildingwidelandsunderwindowsnew page - the first part for MSYS2. Some of the steps and package lists were outdated. I have few points for discussion/review:

many thanks for doing this.

  • Removal of this sentence (or maybe movement to Nuwen chapter): This is currently a work in progress!

+1 remove it. maybe we should remove the section about Nuwens Mingw as well. We might give ahint that there ais this other implementation of mingw but we do not use it officially and do not provide support.

  • Removal of this sentence to save time you could switch off Generation of translations with -DOPTION_BUILD_TRANSLATIONS=OFF

I like the sentence you moved it to pointing to oldr versions. maybe you could generalize to versions prior to 1.3.

  • Mentioning script and file which is automatically doing installation of packages: utils/windows/install_deps_mingw.sh and utils/windows/mingw_deps

a big +1 here. Furthermore we should probably remove the part about mingw32 as it is officially deprecated by MSYS2 and will soon be deprecated by us as well.

  • Sentences about GLbinding are not verifiable, because with current MSYS2 packages there is following issue:

me might discuss to remove glbinding completely as there were other issues in the past with it and we do only siupport static builds, from our scripts.

This step is OK: pacman -S mingw-w64-x86_64-glbinding
But CMake fails: ```` cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPTION_USE_GLBINDING=ON -DOPTION_BUILD_WINSTATIC=ON -DOPTION_BUILD_WEBSITE_TOOLS=OFF -DOPTION_ASAN=OFF ..

as explained below -DOPTION_BUILD_WINSTATIC=ON this requires GLEW. so you can only try to use glbinding in a non static build.


Top Quote