I'm having a problem linking against libcutils.so in my executable. I'm
building using the ndk-build system and my Android.mk looks like:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
MY_ANDROID=/home/jbrew/android
LOCAL_SRC_FILES:= \
test.c
LOCAL_LDLIBS:= -L/home/jbrew/android_gps/jni/lib_dir/
-L/home/jbrew/iolib/obj/local/armeabi -lc -ldl -lz -lutils -llog
-lhardware -lcutils -lwpa_client
LOCAL_C_INCLUDES:= \
/home/jbrew/android_gps/jni/includes
#LOCAL_CFLAGS:=--warn-unresolved-symbols
LOCAL_MODULE:= gps_test
#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_EXECUTABLE)
I get the following error when trying to build:
/home/jbrew/android_gps/jni/lib_dir//libcutils.so: undefined reference to
`ioprio_set'
/home/jbrew/android_gps/jni/lib_dir//libcutils.so: undefined reference to
`ioprio_get'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/gps_test] Error 1
As far as I know these are just sytem calls,. but I'm not sure how to get
the compiler to understand these functions.
Thanks!
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting