Sdkbox undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...) error while compile for android studio

Sdkbox undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...) error while compile for android studio
0.0 0

#1

i am getting some sdkbox error while compile my project for android studio .
hear is error log.
//////
jni/./sdkbox/libs/armeabi/libsdkbox.a(AdBooster.o):function sdkbox::AdBooster::getBestImageItem(std::vector<sdkbox::Json, std::allocatorsdkbox::Json > const&): error: undefined reference to ‘std::__throw_out_of_range_fmt(char const*, …)’
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
/////
please help me if anyone have solution for it.


#2

which cocos engine version ? ndk ? APP_STL ?


#3

cocos2dx 3.12, and android studio
ndk - 15.1.4119039
and
APP_STL := gnustl_static


#4

sorry man, I can not reproduce this issue with cocos2d-x cpp 3.13, android-studio, ndk r15c, APP_STL := gnustl_static and sdkbox-admob_v2.3.16.0.

compile command:

cocos compile -p android --app-abi armeabi --android-studio --ap android-19

#5

I am getting the same error after importing fyber. How did u solve this? anybody?

I am using

NDK 9
cocos2dx - 3.8


#6

I have same problem.

I am using

cocos2dx 3.2
NDK-r10d
APP_STL := gnustl_static
eclipse


#7
  1. what about with fyber ?

could u make a mini test sample and share with me?


#8

what’s your SDKBox plugins ?


#9

i didn’t had this error and was able to run successfully in android until i sdkbox import fyber in the project.

Project runs in ios successfully, but gives this error when trying to run in android using cocos run -p andorid


#10

sdkbox import gpg


#11

@mihir77 @MaruGames thank you for the info.

tracking issue here too


#12

tested with cocos2d-x3.9 framework:

$ which cocos
/Applications/Cocos/frameworks/cocos2d-x-3.9/tools/cocos2d-console/bin/cocos
$ echo $ANDROID_NDK
/Users/admin/Documents/sdk/android/android-ndk-r10d
$ sdkbox info
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2017 SDKBOX Inc. v1.0.1.24
 installed packages:
     v2.3.17.1 admob
     v2.3.17.1 gpg
     v2.3.17.1 fyber
     v2.3.17.1 googleplayservices

BUILD SUCCESSFUL


could you please provide a issue project (framework version)?
3.8.1 is the best because 3.9 framework has some issue with jars/libs folder.


#13

Application.mk

APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION=clang

APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic

USE_ARM_MODE := 1

APP_DEBUG := $(strip $(NDK_DEBUG))
ifeq ($(APP_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif

Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d)
$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/cocos)
$(call import-add-path,$(LOCAL_PATH))

LOCAL_LDFLAGS := -Wl,-Bsymbolic

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

FILE_LIST := $(wildcard
$(LOCAL_PATH)/…/…/Classes/*.cpp)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_SRC_FILES += hellocpp/main.cpp

LOCAL_CPPFLAGS := -DSDKBOX_ENABLED
LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/Classes
./gpg/include/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/…/…/cocos2d/extensions

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
PluginGPG
sdkbox
gpg-1
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static

LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module,.)
$(call import-module,audio/android)
$(call import-module,extensions)
$(call import-module, ./sdkbox)
$(call import-module, ./plugingpg)
$(call import-module, ./gpg)

sdkbox info

Copyright © 2016-2017 SDKBOX Inc. v1.0.1.24
installed packages:
v2.3.17.1 gpg
v2.3.17.1 googleplayservices

My Pakage Explorer ScreenShot

PakageExplorer


#14

I am using all this -

Mihirs-Mac:exm mihirt$ echo $NDK_ROOT
/Users/mihirt/Documents/android-ndk-r9
Mihirs-Mac:exm mihirt$ sdkbox info

 Copyright (c) 2016-2017 SDKBOX Inc. v1.0.1.24
 installed packages:
 v2.3.17.1 fyber
 v2.3.17.1 googleplayservices
Mihirs-Mac:exm mihirt$ which cocos
/Users/mihirt/Documents/cocos2d-x-3.8.1/tools/cocos2d-console/bin/cocos

#15

Hi, u post a invalid Android.mk file. could u plz make github repo ?

I checked the NDK_TOOLCHAIN_VERSION=clang, fine with me .


#16

I checkin a cocos framework 3.8.1 with plugins admob, fyber, gpg http://github.com/yinjimmy/tests.

would u help to test with your local env setting ?
@MaruGames @mihir77


#17

Hi, yinjimmy I’m also getting error undefined reference to 'std::__throw_out_of_range_fmt(char const*, …). I’m working on cocos2d js latest version and I try sdkbox version v1.0.0.15 and latest sdkbox version v1.0.1.24.
For both sdkbox version I’m getting same error.

because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 8 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(RegExpMacroAssembler.o) for Cortex-A8 erra tum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 67 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum bec ause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 84 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum bec ause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 125 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum be cause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 157 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum be cause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 163 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum be cause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 167 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(RegExpParser.o) for Cortex-A8 erratum be cause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 1 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(AliasAnalysis.o) for Cortex-A8 erratum bec ause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 142 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(AsmJS.o) for Cortex-A8 erratum because i t has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 273 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(AsmJS.o) for Cortex-A8 erratum because i t has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 312 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(AsmJS.o) for Cortex-A8 erratum because i t has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 4 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(AsmJSLink.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 16 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(AsmJSModule.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 35 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(AsmJSModule.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 11 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(BacktrackingAllocator.o) for Cortex-A8 er ratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 20 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(BacktrackingAllocator.o) for Cortex-A8 er ratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 8 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineBailouts.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 19 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(BaselineBailouts.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 7 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineDebugModeOSR.o) for Cortex-A8 erra tum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 2 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineFrame.o) for Cortex-A8 erratum bec ause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 174 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 229 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 239 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 260 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 323 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 387 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(BaselineIC.o) for Cortex-A8 erratum beca use it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 2 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineInspector.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 7 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineJIT.o) for Cortex-A8 erratum becau se it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 2 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BytecodeAnalysis.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 456 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 821 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 835 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 847 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 869 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 903 of G:\nilesh\NaughtyHammerKid\f
rameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/ prebuilt/android/armeabi/libjs_static.a(CodeGenerator.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 32 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(EffectiveAddressAnalysis.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 2 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(RematerializedFrame.o) for Cortex-A8 errat um because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 8 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineIC-arm.o) for Cortex-A8 erratum be cause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 1 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(jsdtoa.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 7 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(StructuredClone.o) for Cortex-A8 erratum b ecause it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 80 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(UbiNode.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 1 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(Compression.o) for Cortex-A8 erratum becau se it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 1 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(bignum.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 10 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(NativeRegExpMacroAssembler.o) for Cortex- A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 43 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(RegExpAST.o) for Cortex-A8 erratum becaus e it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 13 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(BaselineCompiler.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 31 of G:\nilesh\NaughtyHammerKid\fr ameworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/p rebuilt/android/armeabi/libjs_static.a(BaselineCompiler.o) for Cortex-A8 erratum because it has no mapping symbols. G:/Ina/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x8 6_64/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin\ld. exe: warning: cannot scan executable section 5 of G:\nilesh\NaughtyHammerKid\fra meworks\runtime-src\proj.android-studio…/…/cocos2d-x/external/spidermonkey/pr ebuilt/android/armeabi/libjs_static.a(BaselineCompiler-shared.o) for Cortex-A8 e rratum because it has no mapping symbols. jni/./sdkbox/libs/armeabi/libsdkbox.a(AdBooster.o):function sdkbox::AdBooster::g etBestImageItem(std::vector<sdkbox::Json, std::allocatorsdkbox::Json > const&) : error: undefined reference to ‘std::__throw_out_of_range_fmt(char const*, …) ’ clang + + .exe: error: linker command failed with exit code 1 (use -v to see invoca
tion) make.exe: *** [obj/local/armeabi/libcocos2djs.so] Error 1 make.exe: Leaving directory `G:/nilesh/NaughtyHammerKid/frameworks/runtime-src/p roj.android-studio/app’ Error running command, return code: 2. G:\nilesh\NaughtyHammerKid >

Please help me.


#18

I got your env:

  • windows
  • android-ndk-r10d
  • which cocos2d-js engine ? source or prebuild project?

Is it ok without SDKBox ?


#19

Hi, yinjimmy thanks for your response.

I’m working on windows system and using android-ndk-r10d and I created my project using “cocos2d-console-3” of cocos2d-x-3.12.
And I download cocos2d-js from https://github.com/cocos2d/cocos2d-js/tree/master

thanks.


#20

OK, there are lots of cocos2d-* engines, could u please share your test project ? just keep the android platform. It will be small.