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 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 := \ > > $(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 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) > > 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 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- Hide quoted text - > > - Show quoted text - -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
