• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 849
  • Last Modified:

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.
0
Sreejith22
Asked:
Sreejith22
  • 4
  • 3
1 Solution
 
Darr247Commented:
"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?
0
 
Sreejith22Author Commented:
LOCAL_STATIC_JAVA_LIBRARIES := jackson-all-1.6.2.jar

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


This resolved my issue.
0
 
Darr247Commented:
Gee... How did you ever figure out the path was wrong?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Sreejith22Author Commented:
>>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.
0
 
Sreejith22Author Commented:
0
 
Darr247Commented:
No thank you.
0
 
Sreejith22Author Commented:
Modifying the lines as I have given in answer resolved the issue I had.
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now