Sreejith22
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
Following is my mk file
Can someone please let me know the cause and solution for this error? Any help is appreciated with full points for sure.
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'
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))
Can someone please let me know the cause and solution for this error? Any help is appreciated with full points for sure.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Gee... How did you ever figure out the path was wrong?
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.
By referring other apps in the android codebase to see the pattern they have used in .mk files for specifying jar.
ASKER
request to help with this
https://www.experts-exchange.com/questions/27836197/How-to-specify-the-path-to-a-file-in-make-file.html
https://www.experts-exchange.com/questions/27836197/How-to-specify-the-path-to-a-file-in-make-file.html
No thank you.
ASKER
Modifying the lines as I have given in answer resolved the issue I had.
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?