2 u010108389 u010108389 于 2015.05.29 09:49 提问

编译ndk-build.cmd生成.so文件中出现这样的问题,不知道哪的原因。

E:\project\CHENWEN\proj.android\jni>ndk-build
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
In file included from D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/inclu
de/thread:35:0,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../base/CCConsole.h:42,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../base/ccMacros.h:35,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../base/CCRefPtr.h:30,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../cocos2d.h:42,
from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele
gate.h:4,
from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1:
D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/c++0x_warning.
h:32:2: error: #error This file requires compiler and library support for the IS
O C++ 2011 standard. This support is currently experimental, and must be enabled
with the -std=c++11 or -std=gnu++11 compiler options.
In file included from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../platform/CCGL.h:36:0,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../base/ccTypes.h:36,
from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3
d/../cocos2d.h:51,
from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele
gate.h:4,
from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1:
E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3d/../platform/android/
CCGL-android.h:44:31: fatal error: GLES2/gl2platform.h: No such file or director
y
compilation terminated.
make.exe: *** [E:/project/CHENWEN/proj.android//obj/local/armeabi/objs/cocos2dcp
p_shared/hellocpp/main.o] Error 1

2个回答

91program
91program   Ds   Rxr 2015.05.29 10:02

没有收到头文件 gl2platform.h,你需要看看此文件是否存在?如果存在,看看是不是目录没有指定好。

oyljerry
oyljerry   Ds   Rxr 2015.05.29 13:13
你的头文件没有找到。你先要有这个文件,然后就是编译选项中包含它的路径
Csdn user default icon
上传中...
上传图片
插入图片