Requirements:
- OS: Linux preferred
- cmake 3.16.2-1
- glfw-x11 3.3-2
- libepoxy 1.5.4-1
- glm 0.9.9.6-2
See CMakeLists.txt.
pacman:
pacman -S cmake glfw-x11 libepoxy glm
apt:
apt install cmake libglfw3 libepoxy-dev libglm-dev
Reproducer:
git clone https://github.com/ivanstepanovftw/glexample.git
cd glexample
mkdir cmake-build-debug
cd cmake-build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" ..
cmake --build . --target myapp -- -j 6
./myapp
Uncomment app.h:7 and comment out app.h:6 to solve bug.
Why is this happen? Why Window destructs itself?