在Mac OS上编译Box2D时出错:找不到EGL标识符
Error compiling Box2D on Mac OS : EGL identifiers not found
试图为我正在进行的c++SFML项目创建/链接Box2D库。
以下是我所做的:从github下载新的Box2D源代码(https://github.com/erincatto/Box2D)
cd Box2D-master/Box2D/Build
cmake ..
make
它通过了一半,然后当它到达时
[ 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'
有人有什么见解吗?我用brew install cmake
安装了cmake,如果这很重要的话,
我也遇到了同样的问题,Box2d Master没有稳定的版本,请尝试使用下面链接的发布版本
https://github.com/erincatto/Box2D/releases
- std::map<struct,struct>::find 找不到匹配项,但是如果我循环通过 begin() 到 end(),我在那里看到匹配项
- 找不到成员对象:没有名为get_event()的成员,也处理多态性和向量
- 为什么野牛仍在使用"int yylex(void)",却找不到"int yylex(YYS
- C++ Windows 驱动程序MSB3030无法复制该文件,因为它找不到
- 奇怪的(对我来说)返回声明 - 在谷歌上找不到任何关于它的信息
- 找不到QtResource文件中的文件
- VC++本机单元测试,找不到调试符号
- RegGetValue在当前用户下找不到名称
- 带有 -stdlib=libc++ 的 clang++ 9.0.1 找不到<optional>
- c++找不到具有相同哈希的无序集合元素
- 找不到以下加速库:boost_fiber
- 找不到 FLTK(缺少:FLTK_INCLUDE_DIR)
- 设置 Visual Studio for MPI: 找不到标识符错误
- "assimp/config.h"找不到,但它在文件夹中
- 运行命令 "rosbag play example.bag" 时出错。找不到与插件 rosbag/NoEncryptor 对应的库
- 在 MacOSX 上编译 OpenGL 程序时出错('ld:找不到 -lopengl32 的库)
- 使用带有提升/正则表达式的 Rcpp,在 eval(expr, envir, enclos) 中出错:找不到对象 'libboost_regex'
- 编译DirectX9时出错,程序说在中找不到d3dx.lib
- 在 Eclipse 中编译时出错:ld:找不到架构x86_64的符号
- 在Mac OS上编译Box2D时出错:找不到EGL标识符