Hello!
Tell me please what compiler options I should use to make dynamic native lib for arm?
I want load this library from Android app and now I get error
05-24 15:56:12.312: I/nativeCode(6703): Cannot load library: link_image[1995]: failed to link libnative.so
So I suppose there are problems with arm-none-linux-gnueabi-gcc options (from Sourcery_G++_Lite)
Makefile
C_FLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp C_FLAGS += -DPLATFORM=3730 CSTOOL_DIR=/Chet/CodeSourcery/Sourcery_G++_Lite ARM_GCC=$(CSTOOL_DIR)/bin/arm-none-linux-gnueabi-gcc libnative.so: swap.o $(ARM_GCC) $(C_FLAGS) -shared -o libnative.so swap.o swap.o: swap.c $(ARM_GCC) $(C_FLAGS) -c -fPIC swap.c clean: rm -f *.o *.so MAIN
P.S. my device is TDM-3730W Blizzard Interface board with installed on it Android 2.2