OpenGL
OpenGL super bible 책에서 소스코드 실행하기(ubuntu환경)
hjh1023
2022. 6. 30. 18:32
반응형
opengl super bible을 공부하고 있는데 예제파일 돌리기가 쉽지않다.
git clone https://github.com/openglsuperbible/sb7code.git 이렇게 터미널에 치면 그 경로에 다운됨
GitHub - openglsuperbible/sb7code: Source code and supporting material for the 7th Edition of OpenGL SuperBible
Source code and supporting material for the 7th Edition of OpenGL SuperBible - GitHub - openglsuperbible/sb7code: Source code and supporting material for the 7th Edition of OpenGL SuperBible
github.com
그냥 다운받고 설명대로 cmake하고 make하면 되겠지 했는데 아니였다. glfw3가 없다고 뜨고 make도 안되고..

CMakeLists.txt
0.00MB
cmake파일을 좀 수정하고 build안에서 cmake .. 하면

그다음 make 라고 터미널에 쳐야함

잘못된게 있다면 오류 있다고 하면서 안넘어감.

그리고 CMakeLists.txt 경로로 나오면 bin폴더가 있는데 거기에 실행파일이있음.
bin 폴더에서 ./실행파일이름 이렇게 해주면 실행은 됨!!! 진짜 실행만 됨
아직 검은 화면밖에 안보임..ㅠ 그래도 여기까지 많이 헤맸는데 미래의 내가 또 뻘짓할까봐 그 부분이라도 줄이려고 씀
반응형