./build.sh -p=android --libs=websockets --arch=armv7 You don't specify a valid build mode, use release mode build api is 9. checking armv7 is in arm armv7 x86 arm64 checking websockets is in png zlib lua luajit websockets curl freetype jpeg tiff webp chipmunk openssl rapidjson build armv7 for websockets in android toolchain path is /Users/dev/Library/Android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin Creating configuration file... config.mak The host is linux-androideabi check android sdk we are using mthumb for armeabi-v7a!! Bootstrap completed. Run "make" to start compilation. Other targets: * make install same as "make" * make list list packages * make fetch fetch required source tarballs * make fetch-all fetch all source tarballs * make distclean clean everything and undo bootstrap * make mostlyclean clean everything except source tarballs * make clean clean everything rm -Rf ../../contrib/tarballs/libwebsockets-git && git clone --branch master https://github.com/warmcat/libwebsockets ../../contrib/tarballs/libwebsockets-git && (cd ../../contrib/tarballs/libwebsockets-git && git checkout 8d5351a) && rm -Rf ../../contrib/tarballs/libwebsockets-git/.git && (cd ../../contrib/tarballs/ && tar cvJ libwebsockets-git) > ../../contrib/tarballs/libwebsockets-git.tar.xz && rm -Rf ../../contrib/tarballs/libwebsockets-git Cloning into '../../contrib/tarballs/libwebsockets-git'... remote: Counting objects: 8611, done. remote: Compressing objects: 100% (143/143), done. remote: Total 8611 (delta 82), reused 0 (delta 0), pack-reused 8468 Receiving objects: 100% (8611/8611), 7.81 MiB | 462.00 KiB/s, done. Resolving deltas: 100% (6154/6154), done. Checking connectivity... done. Note: checking out '8d5351a'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at 8d5351a... reduce debug logging mark socket dead when pollert libwebsockets-git/ libwebsockets-git/.gitignore libwebsockets-git/.travis.yml libwebsockets-git/Android.mk libwebsockets-git/appveyor.yml libwebsockets-git/changelog libwebsockets-git/cmake/ libwebsockets-git/cmake/FindGit.cmake libwebsockets-git/cmake/FindOpenSSLbins.cmake libwebsockets-git/cmake/LibwebsocketsConfig.cmake.in libwebsockets-git/cmake/LibwebsocketsConfigVersion.cmake.in tar (child): xz: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now make: *** [../../contrib/tarballs/libwebsockets-git.tar.xz] Error 141 make: *** Deleting file `../../contrib/tarballs/libwebsockets-git.tar.xz' /Users/dev/work/cocos2d-x-3rd-party-libs-src/build create folder for library with specify arch. android/websockets/prebuilt/armeabi-v7a cp: /Users/dev/work/cocos2d-x-3rd-party-libs-src/build/../contrib/install-android/armv7/lib/libwebsockets.a: No such file or directory copying dependent archives... Copying needed heder files cp: /Users/dev/work/cocos2d-x-3rd-party-libs-src/build/../contrib/install-android/armv7/include/l*.h: No such file or directory cleaning up no