Support cocos2d-x with project android on linux

0 votes

When I running project demo on project android on Linux . Suddenly It appear error ..

/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::update(float):jni/../../AppWarpX/appwarp.cpp:343: error: undefined reference to 'AppWarp::Utility::UdpSocket::checkMessages()'

make: Leaving directory `/home/bk/SunnetGame/cocos2dx214/cocos2dx214/cocos2dx214/Android1Server/proj.android'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::connectSocket():jni/../../AppWarpX/appwarp.cpp:262: error: undefined reference to 'AppWarp::Utility::UdpSocket::disconnect()'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::connectSocket():jni/../../AppWarpX/appwarp.cpp:263: error: undefined reference to 'AppWarp::Utility::UdpSocket::~UdpSocket()'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::udpresponse(AppWarp::response_struct*):jni/../../AppWarpX/appwarp.cpp:401: error: undefined reference to 'AppWarp::Utility::UdpSocket::sockSend(char*, int)'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::initUDP():jni/../../AppWarpX/appwarp.cpp:533: error: undefined reference to 'AppWarp::Utility::UdpSocket::UdpSocket(AppWarp::Client*)'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::initUDP():jni/../../AppWarpX/appwarp.cpp:534: error: undefined reference to 'AppWarp::Utility::UdpSocket::connect(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, short)'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::initUDP():jni/../../AppWarpX/appwarp.cpp:540: error: undefined reference to 'AppWarp::Utility::UdpSocket::sockSend(char*, int)'
/home/bk/SunnetGame/ndk8/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/AppWarpX/appwarp.o: in function AppWarp::Client::sendUdpUpdate(unsigned char*, int):jni/../../AppWarpX/appwarp.cpp:1083: error: undefined reference to 'AppWarp::Utility::UdpSocket::sockSend(char*, int)'
asked Feb 26, 2014 in AppWarp by caothanhhoang88 (10 points)

1 Answer

0 votes

Can you check if you have added references udpsocket files to your Android.mk file?

answered Feb 26, 2014 by dhruvc (1,099 points)
Thanks you! I need a specific examples "" @_@..
Can you see the git hub readme helps? It has instructions for android as well.

https://github.com/shephertz/AppWarpCocos2DX/blob/master/README.md
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...