Link to home
Start Free TrialLog in
Avatar of Sreejith22
Sreejith22Flag for India

asked on

Error while compiling kernel

I am getting the following error when I refer to a third party jar which is inside the libs folder of my application

make: *** No rule to make target `packages/apps/DemoApp/jackson-all-1.6.2.jar', needed by   `out/target/product/SH09D/obj/JAVA_LIBRARIES/libs_intermediates/javalib.jar'.  Stop.
 make: *** Waiting for unfinished jobs....
 make[1]: Leaving directory `/home/john/beta/ICS/LINUX/android/kernel'

Open in new window


Following is my mk file

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_STATIC_JAVA_LIBRARIES := libs
LOCAL_PACKAGE_NAME := DemoApp
LOCAL_JAVA_LIBRARIES :=

LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags

LOCAL_PROGUARD_ENABLED := disabled

#LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)

##################################################
include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libs:jackson-all-1.6.2.jar

include $(BUILD_MULTI_PREBUILT)

include $(call all-makefiles-under, $(LOCAL_PATH))

Open in new window


Can someone please let me know the cause and solution for this error? Any help is appreciated with full points for sure.
Avatar of Darr247
Darr247
Flag of United States of America image

"packages/apps/" would appear to be a relative path, rather than an /explicit/absolute path...  

when you're in the subdir where you run the make command, can you do

CD packages/apps

and have it switch to that subdir?

If not, then you need to either make it an absolute path from root, or switch to the parent folder of packages/apps/ before running make.

Oh, and jackson-all-1.6.2.jar does really exist in ... packages/apps/DemoApp/ right?
ASKER CERTIFIED SOLUTION
Avatar of Sreejith22
Sreejith22
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gee... How did you ever figure out the path was wrong?
Avatar of Sreejith22

ASKER

>>Gee... How did you ever figure out the path was wrong?

By referring other apps in the android codebase to see the pattern they have used in .mk files for specifying jar.
No thank you.
Modifying the lines as I have given in answer resolved the issue I had.