makefile - android-ndk Adding static libraries to the android.mk -


i have 3 static libraries framework want use in project. these libraries called libtinysak_armv7-a.a, libtinynet_armv7-a.a , libtinyhttp_armv7-a.a. have placed them in same folder android.mkandapplication.mk.

my native code dependent on them want include them in shared library.

from i've read on stackoverflow , google'd believe android.mk supposed this:

# tinysak include $(clear_vars)  local_module    := tinysak local_src_files := libtinysak_armv7-a.a local_export_c_includes := $(local_path)/../../../doubango/tinysak/src/  include $(prebuilt_static_library)   # tinynet include $(clear_vars)  local_module    := tinynet local_src_files := libtinynet_armv7-a.a local_export_c_includes := $(local_path)/../../../doubango/tinynet/src/  include $(prebuilt_static_library)   # tinyhttp include $(clear_vars)  local_module    := tinyhttp local_src_files := libtinyhttp_armv7-a.a local_export_c_includes := $(local_path)/../../../doubango/tinyhttp/include/  include $(prebuilt_static_library)     local_path := $(call my-dir)  include $(clear_vars)  local_module    := libtest  local_src_files := \ ../../test/stack.cpp \ ../../test/main.cpp   local_c_includes := \ $(local_path)/../../test/include/ \ $(local_path)/../../../doubango/tinyhttp/include/ \ $(local_path)/../../../doubango/tinysak/src/ \ $(local_path)/../../../doubango/tinynet/src/   local_static_libraries := \ tinysak \ tinynet \ tinyhttp  include $(build_shared_library) 

my application.mk:

app_stl := stlport_static app_abi := armeabi-v7a 

the error upon compilation("ndk-build" project dir)

jni/android.mk:tinysak: local_src_files  points missing file  

and suppose other 2 libraries fail. why cannot find them? besides that, there other errors i've made in makefile?

thanks

nevermind, solved it.

i declared "local_path" in beginning of make-file only. otherwise libs in ndk-folders.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -