mac에서 OpenGL을 사용하려고하지만 glut 헤더를 포함 할 때 OpenGL 하나가 포함되어 있기 때문에 OpenGL/gl.h
헤더를 찾을 수 없습니다. 인터넷에서 문제가 발생했습니다.이 파일은 /System/Library/Frameworks/OpenGL.framework/Headers
디렉토리 안에 있어야하지만 이러한 하위 디렉토리는 존재하지 않는 것으로 보입니다. XCode를 다시 설치하려고했지만 작동하지 않았습니다.Mac에서 OpenGL 헤더 누락
진행 방법에 대한 제안.
일부 세부 사항 : 같은 여기
이 /System/Library/Frameworks/OpenGL.framework/Versions/Current
는 모습입니다 :
[email protected]$ ls -la
total 368
drwxr-xr-x 7 root wheel 238 Oct 7 2012 .
drwxr-xr-x 4 root wheel 136 Oct 7 2012 ..
drwxr-xr-x 16 root wheel 544 Oct 7 2012 Libraries
-rwxr-xr-x 1 root wheel 185184 Oct 3 2012 OpenGL
drwxr-xr-x 3 root wheel 102 Jun 16 2011 PlugIns
drwxr-xr-x 14 root wheel 476 Oct 7 2012 Resources
drwxr-xr-x 3 root wheel 102 Oct 7 2012 _CodeSignature
내 OS의 X 개발의 모든 컴퓨터에 당신에게 모든
사람들이 문제가 아직 해결되지 않았다고 생각하지 않으려면이 대답을 '수락'해야합니다.) –