[solved] Impossible to open SimpleVertexShader.vertexshader. Are you in the right directory ? Don't forget to read the FAQ !

Serin Yoon·2021년 11월 29일
0

Error Solving

목록 보기
2/2
post-thumbnail

openGL tutorial의 tutorial 02 코드를 작성하고 디버그를 하려던 중 아래와 같은 에러가 발생하며 빌드에 실패했다.

Impossible to open SimpleVertexShader.vertexshader.
Are you in the right directory ? Don't forget to read the FAQ !

playground 폴더 내에 shaders 폴더를 생성하고, 그 안에 tutorial02_red_triangle 폴더 내의 shader 파일들을 복제해놨는데도 같은 에러가 발생했다.

https://github.com/opengl-tutorials/ogl/issues/27 에 올라온 답변을 참고하여 문제를 해결했다. 과정은 다음과 같다.

  1. ogl-master(코드 다운받아서 압축 해제한 폴더)의 tutorial02_red_triangle 폴더에 있는 두 shaders 파일을 복사한다.
  2. ogl-master의 playground 폴더에 두 shaders 파일을 붙여넣는다.
  3. visual studio로 build 폴더를 열고, playground 폴더 내에 shaders 폴더를 생성한다.
  4. shaders 폴더에 두 shaders 파일을 붙여넣는다.


해결!


visual studio 버전 문제인 줄 알고 2022 버전까지 깔아보고 CMake로 build도 다시 해봤었는데 생각보다 금방 해결되는 문제였다. 다른 분들은 삽질하시지 않길 바라며.. 😅

profile
티스토리로 이사했습니다 🏠

0개의 댓글