AndEngine和Android Studio

时间:2014-07-27 17:07:47

标签: android android-studio andengine

我下载了AndEngine,将其导入AndroidStudio并将其作为依赖我的AndroidStudio项目添加。但是,在编译时,链接器在找到GLES2时失败。具体来说,我得到了这些错误:

Warning:(9, 63) warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Warning:(13, 36) warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Error:(9) undefined reference to `glVertexAttribPointer' 
Error:(13) undefined reference to `glDrawElements'

我安装了libgles2-mesa软件包(Ubuntu 12.04)并在库中创建了/usr/lib/libGLESv2.so.2中的符号。仍然,链接器似乎找不到库。

0 个答案:

没有答案