• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps NDK - Using static libraries don't find headers

PS: There's another two simpler questions at the end of this post, I want to know those too.

Hi.. i'm wrapping a native API to Android by NDK.

But when building it don't find the header files.

I have the following structure.

<project>/jni
Android.mk
Code:
LOCAL_PATH := $(call my-dir)

include $(call all-subdir-makefiles)

LOCAL_PATH :=/home/marcos/dev/workspace/rmsdk.native.wraper/jni

include $(CLEAR_VARS)

LOCAL_LDLIBS := -llog

LOCAL_MODULE    := ndk1
LOCAL_SRC_FILES := native.c DelegateDRMProcessorClient.cpp
LOCAL_STATIC_LIBRARY := adept cryptopenssl dp expat fonts hobbes jpeg mschema png t3 xml zlib

include $(BUILD_SHARED_LIBRARY)
<project>/jni/prereqs/
Android.mk (Used to call all subdirs Android.mk files)
Code:
LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)
include $(CLEAR_VARS)
<project>/jni/prereqs/<lib>/
Android.mk
Code:
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    :=dp
LOCAL_SRC_FILES :=libdp.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include

include $(PREBUILT_STATIC_LIBRARY)
And there's a include folder on each <lib> folder.


Why when compiling I still get a
"/home/marcos/dev/workspace/rmsdk.native.wraper/jni/DelegateDRMProcessorClient.h:18:20: error: dp_all.h: No such file or directory"

Another simple questions that I need to know too.

1
 
Another issue.. I wrote a Application.mk and add a APP_MODULES to list my modules, and forgot the main module witch has this problem.

My surprise running is get the following result:

Code:
marcos@marcos-AY675AA-AC4-s5320br:~/dev/workspace/rmsdk.native.wraper$ ndk-build
Prebuilt       : libadept.a <= jni/prereqs/adept/
Prebuilt       : libcryptopenssl.a <= jni/prereqs/cryptopenssl/
Prebuilt       : libcurl.a <= jni/prereqs/curl/
Prebuilt       : libdp.a <= jni/prereqs/dp/
Prebuilt       : libexpat.a <= jni/prereqs/expat/
Prebuilt       : libfonts.a <= jni/prereqs/fonts/
Prebuilt       : libhobbes.a <= jni/prereqs/hobbes/
Prebuilt       : libjpeg.a <= jni/prereqs/jpeg/
Prebuilt       : libmschema.a <= jni/prereqs/mschema/
Prebuilt       : libpng.a <= jni/prereqs/png/
Prebuilt       : libt3.a <= jni/prereqs/t3/
Prebuilt       : libxml.a <= jni/prereqs/xml/
Prebuilt       : libzlib.a <= jni/prereqs/zlib/

And it never happened before, I think this should execute every time before building the main module, but it looks like it wont.

Anyone know if there's a way to order my modules build?
 
Back
Top Bottom