-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for Android in Mac Fail #54
Comments
Hi, James, the problem is your modification doesn't change sysroot path. And here is a simpler hack:
Hope it will work and feel free to post any other problem. I'll update this fix to master branch later. |
get another errorset(ANDROID_TOOLCHAIN_PATH "$ENV{ANDROID_NDK}/toolchains/arm-linux-androideabi-${ARM_ANDROID_TOOLCHAIN_VERSION}/prebuilt/darwin-x86_64/bin")
|
Could you post the verbose result of make? Like by running: |
James-AirtekiMacBook-Air:build James$ VERBOSE=1 make |
in android.cmake |
Hi, James, cd /Users/James/Work/Ne10-master/build/modules && /usr/bin/cc -DNE10_ENABLE_DSP -DNE10_ENABLE_IMGPROC -DNE10_ENABLE_MATH -O2 -mthumb-interwork -march=armv7-a -mfloat-abi=softfp -mfpu=vfp3 --sysroot= -I/Users/James/Work/Ne10-master/inc -I/Users/James/Work/Ne10-master/common -o CMakeFiles/NE10.dir/math/NE10_abs.c.o -c /Users/James/Work/Ne10-master/modules/math/NE10_abs.c The make doesn't call correct compiler, it calles:
But it should call:
if the configuration is correct. |
when cmke android.cmake , it return
is that correct |
Yeah, the cmake output is right. It's strange that you can't build it. Maybe you can try it under a completely clear build environment again, because cmake would cache some variable in files such as CMakeCache.txt etc. |
i think my CMakeCache.txt created error ,but i dont konw why
|
my cmke file :
|
Hi, James, a fix for Android building under Mac has been added, you can try it by following the step in doc/CMakeBuilding.txt |
done,thanks a lot. |
error: unknown target CPU 'armv7-a' Can anyone please help me on this issue???? |
I also meet this |
I changed something in android-config.cmake like this
set(ANDROID_TOOLCHAIN_PATH "/Users/James/Work/adt-bundle-mac-x86_64- 20130717/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/ darwin-x86_64/arm-linux-androideabi/bin") set(CMAKE_C_COMPILER ${ANDROID_TOOLCHAIN_PATH}/gcc) set(CMAKE_CXX_COMPILER ${ANDROID_TOOLCHAIN_PATH}/g++) set(CMAKE_ASM_COMPILER ${ANDROID_TOOLCHAIN_PATH}/as)
then after make got an error:
The text was updated successfully, but these errors were encountered: