Hi, I think that the defect 
http://code.google.com/p/android/issues/detail?id=2580
is related to this problem. The history shows that the issue 2580
could be resolved in 2.0. I am looking for a workaround, too.

Alex

On Dec 10 2009, 10:43 am, mak <[email protected]> wrote:
> HI Anupama,
>
> I am also getting similar kind of error for my library.
> Same library is working find with Donut but not with Eclair.
> Are you able to solve this problem ?
> Please let me know your findings related to it.
>
> Thanks.
>
> Regards,
> _-_Mayank Rana_-_
>
> On Nov 26, 1:43 pm, anupama <[email protected]> wrote:
>
>
>
> > Hi Jeffbo,
>
> > I have not modified any build system.Just I have added my codec,
> > componenet and core directories into the omx dir and building.
> > In the steps below I have mentioned all include paths for the
> > respective makefiles to create core, interface libraries.
> >  Please let me know if I ma going wrong.
>
> > Thanks & Regards,
> > Anupama
>
> > On Nov 26, 2:44 am, jeffb <[email protected]> wrote:
>
> > > 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 codeclibraryand component as static named
> > > > lib_aac_dec_my, lib_aac_comp_my.
>
> > > > 2) Using this two static lib  I am creating the aac sharedlibrary
> > > > 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 := \
> > > >              $(PV_TOP)/codecs_v2/omx/omx_core_my/src \
>
> >                    $(PV_TOP)/codecs_v2/omx/omx_core_my/include \
> >                    $(PV_TOP)/extern_libs_v2/khronos/openmax/include \
> >                    $(PV_TOP)/pvmi/pvmf/include \
> >                    $(PV_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
>
> > > > LOCAL_CFLAGS :=  $(PV_CFLAGS)
>
> > LOCAL_ARM_MODE := arm
>
> > LOCAL_STATIC_LIBRARIES :=
>
> > LOCAL_SHARED_LIBRARIES :=
>
> > LOCAL_C_INCLUDES := \
> >         $(PV_TOP)/codecs_v2/omx/omx_core_plugin_my/interface/src \
> >         $(PV_TOP)/extern_libs_v2/khronos/openmax/include \
> >         $(PV_INCLUDES)
>
> > > > include $(BUILD_STATIC_LIBRARY)
>
> > > > 5) The final sharedlibrarylibomx_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)
> > > > include   $(PV_TOP)/codecs_v2/omx/omx_core_MT/Android.mk
>
> >        include   $(PV_TOP)/codecs_v2/omx/omx_core_plugin_MT/interface/
> > Android.mk
>
> > > > 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 thelibrary
> > > > from the my.cfg file ,but it is not able to open thatlibrary, 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):  Loadinglibrary=libomx_my_sharedlibrary.so
> > > > E/        (  777):  Oscl_shared_library.cpp loadlibrary IN
> > > > E/        (  777):  OpeningLibrary
> > > > E/        (  777):  OpeningLibraryFailCannotfindlibrary
> > > > 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- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to