Hi All,
I believe I set environment variables right:
$ printenv | grep ANDROID | sort
ANDROID_EABI=/Users/yihuang/nfd/android-compile/android-ndk-r10/toolchains/arm-linux-androideabi-4.8
ANDROID_NDK_ROOT=/Users/yihuang/nfd/android-compile/android-ndk-r10
ANDROID_STL_INC=/Users/yihuang/nfd/android-compile/android-ndk-r10/sources/cxx-stl/stlport/stlport/
ANDROID_STL_LIB=/Users/yihuang/nfd/android-compile/android-ndk-r10/sources/cxx-stl/stlport/libs/armeabi/libstlport_shared.so
ANDROID_SYSROOT=/Users/yihuang/nfd/android-compile/android-ndk-r10/platforms/android-19/arch-arm
ANDROID_TOOLCHAIN=/Users/yihuang/nfd/android-compile/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin
IS_ANDROID=1
However, when I tried to "make static dynamic cryptest.exe",
ld returned with error code 1:
...
android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: fipstest.o:1:1: invalid character
collect2: error: ld returned 1 exit status
make: *** [libcryptopp.so] Error 1
This happens for every single .o file. libcryptopp.a is created, but libcryptopp.so and cryptest.exe still does not exist because of the ld error.
I don't have much experience on cross compiling and does not have any clue on this. Can any one help me with this?
Thanks,