In opencore/build_config\opencore_dynamic\Android_opencore_player.mk
I am trying to use 3 prebuilt static libraries ( ff, parsernode,
recognizer).
The original working Android_opencore_player.mk file looks like this,
when the source code is available during build time.
--------------------------------------------------------------------------------------------------
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_WHOLE_STATIC_LIBRARIES := \
libpvmp3ff \
libpvmp3ffparsernode \
libpvmp3ffrecognizer \
libMyff \
libMyffparserNode \
libMyffrecognizer
LOCAL_WHOLE_STATIC_LIBRARIES += libandroidpv
# to solve circular dependency among the static libraries.
LOCAL_STATIC_LIBRARIES := $(LOCAL_STATIC_LIBRARIES) $
(LOCAL_WHOLE_STATIC_LIBRARIES)
LOCAL_MODULE := libopencore_player
-include $(PV_TOP)/Android_platform_extras.mk
-include $(PV_TOP)/Android_system_extras.mk
include $(BUILD_SHARED_LIBRARY)
include $(PV_TOP)/fileformats/mp3/parser/Android.mk
include $(PV_TOP)/nodes/pvmp3ffparsernode/Android.mk
include $(PV_TOP)/pvmi/recognizer/plugins/pvmp3ffrecognizer/
Android.mk
include $(PV_TOP)/fileformats/MY/parser/Android.mk
include $(PV_TOP)/nodes/MYffparsernode/Android.mk
include $(PV_TOP)/pvmi/recognizer/plugins/MYffrecognizer/Android.mk
include $(PV_TOP)/engines/player/Android.mk
include $(PV_TOP)/android/Android.mk
-----------------------------------------------------------------------------------------------------------------------
I replaced the above mk file with the following,as now I do not have
the source code, but .a files( static libs)
-----------------------------------------------------------------------------------------------------------------------
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_WHOLE_STATIC_LIBRARIES := \
libpvmp3ff \
libpvmp3ffparsernode \
libpvmp3ffrecognizer
LOCAL_LDLIBS += -l$(PV_TOP)/My_Libs/libMyff
LOCAL_LDLIBS += -l$(PV_TOP)/My_Libs/libMyffparserNode
LOCAL_LDLIBS += -l$(PV_TOP)/My_Libs/libMyffrecognizer
LOCAL_WHOLE_STATIC_LIBRARIES += libandroidpv
# to solve circular dependency among the static libraries.
LOCAL_STATIC_LIBRARIES := $(LOCAL_STATIC_LIBRARIES) $
(LOCAL_WHOLE_STATIC_LIBRARIES)
LOCAL_MODULE := libopencore_player
-include $(PV_TOP)/Android_platform_extras.mk
-include $(PV_TOP)/Android_system_extras.mk
include $(BUILD_SHARED_LIBRARY)
include $(PV_TOP)/fileformats/mp3/parser/Android.mk
include $(PV_TOP)/nodes/pvmp3ffparsernode/Android.mk
include $(PV_TOP)/pvmi/recognizer/plugins/pvmp3ffrecognizer/
Android.mk
include $(PV_TOP)/engines/player/Android.mk
include $(PV_TOP)/android/Android.mk
-------------------------------------------------------------------------------------------------------------------------
I get ERRORS saying unreferenced functions and variables from parser
node.
Is it because parsernode lib is dependent on fileformats/parser
library .. and when I add using LOCAL_LDLIBS, they are linked
independently ???
Is there any standard way to achieve this. I have gone through the
forums and tried few things but did not work
Thanks in advance,
kiran
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting