nvamelichev / wireless-tools-android

Allows to build wireless-tools (http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html) binaries for Android devices
GNU General Public License v2.0
33 stars 18 forks source link

error when run ./build.sh command #2

Open miladheydari opened 7 years ago

miladheydari commented 7 years ago

when run ./build.sh on ubuntu 14.04 this error throw

Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.
/home/milad/Desktop/xc/android-ndk-r15/build/core/build-binary.mk:688: Android NDK: Module iwconfig depends on undefined modules: cutils c m
/home/milad/Desktop/xc/android-ndk-r15/build/core/build-binary.mk:701: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop.

botmayank commented 6 years ago

I just tried this and was facing the same issue. TL;DR: Move wireless-tools-android folder to AOSP_ROOT/external/ and modify config.sh and build.sh

If I build from inside of AOSP root with the proper environment variables exported (using source build/envsetup.sh and lunch <target> from AOSP_ROOT) it builds nicely. Further, libc has to be removed from the list of LOCAL_STATIC_LIBRARIES.

For APP_PLATFORM not set: Add this line at the end of build.sh APP_PLATFORM=$TARGET

Leaving this here in case somebody else faces the same issues.

OSSILab commented 5 years ago

I just tried this and was facing the same issue. TL;DR: Move wireless-tools-android folder to AOSP_ROOT/external/ and modify config.sh and build.sh

If I build from inside of AOSP root with the proper environment variables exported (using source build/envsetup.sh and lunch <target> from AOSP_ROOT) it builds nicely. Further, libc has to be removed from the list of LOCAL_STATIC_LIBRARIES.

For APP_PLATFORM not set: Add this line at the end of build.sh APP_PLATFORM=$TARGET

Leaving this here in case somebody else faces the same issues.

HI,

I have the same issue, I've moved the folder inside AOSP_ROOT/external/. Now how should I proceed? What should I run first? Should I merge AOSP_ROOT/build/envsetup.sh with config.sh and then call build.sh? Thank you.