Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I build android for freescale,
but can't build and this message.

build error message
===========================================================
make: *** No rule to make target `out/target/product/sabresd_6dq/obj/lib/CanAPI-jni.so', needed by `out/target/product/sabresd_6dq/obj/APPS/Launcher_intermediates/package.apk'. Stop.


Android.mk source
============================================================
VB
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := CanAPI-jni
LOCAL_SRC_FILES := can.c
LOCAL_CERTIFICATE := platform
LOCAL_LDLIBS=-lm -llog

LOCAL_C_INCLUDES += \
    $(JNI_H_INCLUDE) \

LOCAL_SHARED_LIBRARIES:= \
   libutils\
   libcutils



include $(BUILD_SHARED_LIBRARY)



help me, plz
Posted
Comments
Richard MacCutchan 9-Mar-15 7:19am    
The message is telling you what the problem is. The makefile does not contain a rule that tells it how to build CanAPI-jni.so.

1 solution

Do you want to load these libraries?
VB
LOCAL_SHARED_LIBRARIES:= \
   libutils\
   libcutils

If they are libutils.so and libcutils.so, you can load them like this:
VB
LOCAL_SHARED_LIBRARIES:= butils cutils

or
VB
LOCAL_LDLIBS      := -L$(LOCAL_PATH) -L$(LOCAL_PATH)/lib/ \
                                    -lbutils -lcutils 
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900