I encountered several problems attempting to build the sample code on Windows under MSYS2/MinGW/CMake.
- CMake build failed due to MSYS2 CMake version being too recent. (fixed)
- CMake build failed due to GNU link errors. (fixed)
I was able to find workarounds for both errors.
- Build with the following command line:
(cd build; cmake -G"MSYS Makefiles" -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..; cmake --build .)
- Edit the file
CMakeLists.txt to enable support for MSYS2/MinGW. (I have attached a small patch with this report)
NB I am not an expert in CMake nor OpenGL so this is a bit ad-hoc but all sample code built successfully and the executables seem to work.
CMakeLists.txt-msys2.patch
I encountered several problems attempting to build the sample code on Windows under MSYS2/MinGW/CMake.
I was able to find workarounds for both errors.
(cd build; cmake -G"MSYS Makefiles" -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..; cmake --build .)CMakeLists.txtto enable support for MSYS2/MinGW. (I have attached a small patch with this report)NB I am not an expert in CMake nor OpenGL so this is a bit ad-hoc but all sample code built successfully and the executables seem to work.
CMakeLists.txt-msys2.patch