Hi All,

I am working on aac_codec integration to Android platform.
Below are the steps I have followed to create the shared lib
libomx_my_sharedlibrary.so

1) I am creating the codec library and component as static named
lib_aac_dec_my, lib_aac_comp_my.

2) Using this two static lib  I am creating the aac shared library
named libomx_aacdec_my_sharedlib which I am linking to the omx core
lib.

3) Makefile I have used for creating omx core lib is below

LOCAL_SRC_FILES := \
        src/omx_my_core.c \

LOCAL_MODULE := libomx_core_my

LOCAL_PRELINK_MODULE := false

LOCAL_SHARED_LIBRARIES := \
        libomx_aacdec_my_sharedlibrary \
        libdl

LOCAL_C_INCLUDES := \
                           .....................................
                            --------------------------

include $(BUILD_SHARED_LIBRARY)


4) pv-omx-interface lib is created according to the template provided.
 Below is the sample of Android.mk I have used for creating the
interface lib.

LOCAL_SRC_FILES := \
        src/my_pv_omx_interface.cpp


LOCAL_MODULE := libpv_omx_my_interface

Other stuff......

include $(BUILD_STATIC_LIBRARY)

5) The final shared library libomx_my_sharedlib.so is created using
the follwing

LOCAL_WHOLE_STATIC_LIBRARIES := \
        libpv_omx_my_interface

LOCAL_MODULE := libomx_my_sharedlibrary

LOCAL_PRELINK_MODULE := false

LOCAL_SHARED_LIBRARIES += libomx_core_my libopencore_common

include $(BUILD_SHARED_LIBRARY)
Other stuff....

6) The final shared lib is mentioned in the my.cfg file with the
OMX_INTERFACE_ID.

But while testing I have figured out that it is reading the library
from the my.cfg file ,but it is not able to open that library , in
Oscl_shared_library.cpp loadlibrary() dlopen() fails to open my shared
lib.

The following logs I get...

E/        (  777):  Oscl_shared_library.cpp LoadLib IN
E/        (  777):  Loading library=libomx_my_sharedlibrary.so
E/        (  777):  Oscl_shared_library.cpp loadlibrary IN
E/        (  777):  Opening Library
E/        (  777):  Opening Library Fail Cannot find library
E/        (  777):  Oscl_shared_library.cpp loadlibrary OUT
E/        (  777): Oscl_shared_library.cpp LoadLib Fail OUT

Can anyone help me in finding out where exactly I am going wrong?

Thanks & Regards,
Anupama

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to