Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUA-Android 编译失败 #8

Closed
tinybearc opened this issue Mar 17, 2016 · 0 comments
Closed

LUA-Android 编译失败 #8

tinybearc opened this issue Mar 17, 2016 · 0 comments

Comments

@tinybearc
Copy link

SdkboxAds 版本:2.1.2.1

编译出错

log:

Android NDK: WARNING: APP_PLATFORM android-15 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory `/Users/gbox/Documents/chukong_test/sdkbox-SdkboxAds-sample/lua/frameworks/runtime-src/proj.android'
[armeabi] Compile++ thumb: cocos2dlua_shared <= main.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= AppDelegate.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= PluginFacebookLua.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= PluginFacebookLuaHelper.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= PluginSdkboxAdsLua.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= PluginSdkboxAdsLuaHelper.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= SDKBoxLuaHelper.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= RuntimeLuaImpl.cpp
[armeabi] Compile++ thumb: cocos2dlua_shared <= SimpleConfigParser.cpp
[armeabi] Compile thumb  : cocos2dlua_shared <= lua_debugger.c
[armeabi] Compile thumb  : cpufeatures <= cpu-features.c
[armeabi] Gdbserver      : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup       : libs/armeabi/gdb.setup
[armeabi] StaticLibrary  : libcpufeatures.a
jni/../../Classes/ide-support/SimpleConfigParser.cpp: In member function 'void SimpleConfigParser::readConfig(const string&)':
jni/../../Classes/ide-support/SimpleConfigParser.cpp:40:114: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=]
         cocos2d::log("read json file %s failed because of %s", fullPathFile.c_str(), _docRootjson.GetParseError());
                                                                                                                  ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus: warning: unrecognized command line option "-Wno-extern-c-compat"
[armeabi] SharedLibrary  : libcocos2dlua.so
jni/src/AdColonyWrapper-android.cpp:62: error: undefined reference to 'sdkbox::Log::IsLevelActive(sdkbox::Log::Level)'
jni/src/AdColonyWrapper-android.cpp:62: error: undefined reference to 'sdkbox::Log::GetStream()'
jni/src/AdColonyWrapper-android.cpp:62: error: undefined reference to 'sdkbox::Log::GetStream()'
jni/src/AdColonyWrapper-android.cpp:78: error: undefined reference to 'sdkbox::Log::IsLevelActive(sdkbox::Log::Level)'
jni/src/AdColonyWrapper-android.cpp:78: error: undefined reference to 'sdkbox::Log::GetStream()'
jni/src/AdColonyWrapper-android.cpp:78: error: undefined reference to 'sdkbox::Log::GetStream()'
jni/src/AdColonyWrapper-android.cpp:93: error: undefined reference to 'sdkbox::Log::IsLevelActive(sdkbox::Log::Level)'
jni/src/AdColonyWrapper-android.cpp:108: error: undefined reference to 'sdkbox::Log::IsLevelActive(sdkbox::Log::Level)'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/libcocos2dlua.so] Error 1
make: Leaving directory `/Users/gbox/Documents/chukong_test/sdkbox-SdkboxAds-sample/lua/frameworks/runtime-src/proj.android'
执行命令出错,返回值:2。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant