cocos2d x - Errors during compilation libcocos2dcpp.so -


i working cocos2dx v2.2.2. while compiling library using "./build_native.sh" android. encountered following errors:

../android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/cocos2dcpp_shared/__/__/classes/wsnode.o: in function wsnode::connect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):jni/../../classes/wsnode.cpp:106: error: undefined reference 'socketio::connect(socketio::siodelegate&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/cocos2dcpp_shared/__/__/classes/wsnode.o: in function wsnode::disconnect():jni/../../classes/wsnode.cpp:119: error: undefined reference 'sioclient::disconnect()' ../android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/cocos2dcpp_shared/__/__/classes/wsnode.o: in function wsnode::emitstring(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >):jni/../../classes/wsnode.cpp:130: error: undefined reference 'sioclient::emit(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)' ../android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/cocos2dcpp_shared/__/__/classes/wsnode.o: in function wsnode::registerevent(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::function<void (sioclient*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>):jni/../../classes/wsnode.cpp:135: error: undefined reference 'sioclient::on(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (sioclient*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>)' collect2: ld returned 1 exit status make: *** [obj/local/armeabi/libcocos2dcpp.so] error 1 make: leaving directory `../cocos2d-x-2.2.2/projects/cocos2dxproject/proj.android' 

any highly appreciated.

sioclient available in v3.0 of coco2d-x check api here, not there in version 2.2.2 try using latest version.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -