I am sorry that I don't have a solution to your problem, but I was
wondering how you went about modifying the build system so that it
recognizes your codec? As you know, the build system is largely
automated (automatically generates files used during the make). Are
you compiling all of the Android code, or just OpenCore? I had the
impression that new codecs (or parsers and recognizers in my case)
could be added as new directories that the build system would
recognize and incorporate into the overall system build. Could you
provide me some pointers or steps you went through to add your codec
to the system?

Thanks

On Nov 25, 5:02 am, anupama <[email protected]> wrote:
> 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