Topic: missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
Nanautzin![]() Topic Opener |
Posted at: 2023-05-15, 17:07
While building Widelands, an error is occurring. CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindOpenGL.cmake:443 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:156 (find_package) I'm using MSYS2, and I have installed all possible packages. Do you have any advice on how I can resolve this problem? ![]() ![]() |
hessenfarmer![]() |
Posted at: 2023-05-15, 18:51
Hi, First recommendation is to clear the buildfolder and try a clean new build edit: how do you start MSYS2 bash? and which compiler for which version do you want to use (i.e. mingw32 or mingw64)? Edited: 2023-05-15, 18:55
![]() ![]() |
Nanautzin![]() Topic Opener |
Posted at: 2023-05-16, 05:02
Hi hessenfarmer Thanks for fast answer
Windows 11
I don't undestand what, i see only one version, i forked, clone and tryed to build version what it is in master barnch.
If you mean path, C:\msys64
I installed and configured my MSYS2 several months ago, and it has been working fine. I have already used it with CMake, Make, and GCC. Before building, I installed the required packages mentioned on this page: https://www.widelands.org/wiki/BuildingWidelands/
I tried finding a solution on Google, and they suggested installing some packages that have OpenGL. I installed those, but the problem didn't disappear. I also deleted the build folder several times and tried rebuilding with different flags.
64 ![]() ![]() |
kaputtnik![]() |
Posted at: 2023-05-16, 08:22
You have to install the dependencies inside the msys environment, not inside windows, if you did the latter the build process can't find the libraries. Did you read https://www.widelands.org/wiki/BuildingWidelandsUnderWindowsNew/ ? Fight simulator for Widelands: ![]() ![]() |
Nanautzin![]() Topic Opener |
Posted at: 2023-05-16, 17:04
I had some problems with MSYS. I deleted everything and installed it again, and now it works. Following the instructions from the link, I additionally had to install the Asio and ICU packages. Thanks all for the help. In the end, I would like to ask how I can run the application after building it? ![]() ![]() |
hessenfarmer![]() |
Posted at: 2023-05-16, 21:30
you need to have the executable (you can find this in your buildfolder in the src folder) in the same folder togehter with the related data folder ( by copying it to such a directory) or you need to specify the datadir to use with the --datadir= PATH TO YOUR DATADIR option. ![]() ![]() |
Nanautzin![]() Topic Opener |
Posted at: 2023-05-17, 05:09
Now everything works, thanks ![]() ![]() |
hessenfarmer![]() |
Posted at: 2023-05-17, 09:40
you are welcome ![]() ![]() |