嘗試爲我正在處理的C++ SFML項目創建/鏈接Box2D庫。在Mac OS上編譯Box2D時出錯:未找到EGL標識符
這是我做了什麼: (https://github.com/erincatto/Box2D)
cd Box2D-master/Box2D/Build
cmake ..
make
它會中途從GitHub下載新的Box2D源,那麼當它到達
[ 68%] Building C object glfw/CMakeFiles/glfw.dir/egl_context.c.o
它吐出了一堆錯誤,如
/Users/wstone/Documents/Box2D-master/Box2D/glfw/egl_context.c:53:35: error: unknown type name 'EGLint'; did you mean 'GLint'? static const char* getErrorString(EGLint error) ^~~~~~ GLint /System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h:15:18: note: 'GLint' declared here typedef int32_t GLint; ^ /Users/wstone/Documents/Box2D-master/Box2D/glfw/egl_context.c:57:14: error: use of undeclared identifier 'EGL_SUCCESS' case EGL_SUCCESS: ^ /Users/wstone/Documents/Box2D-master/Box2D/glfw/egl_context.c:59:14: error: use of undeclared identifier 'EGL_NOT_INITIALIZED'
任何人有任何見解?我安裝的CMake與brew install cmake
,如果該事項