Hi , I am trying to add a 3rd-party OMX Core by following the method: 1 i.e. Pre-built OMX core shared object library - adds OMX core wrapper separately
I am facing some issues with the inclusion of OSCL headers : In the Opencore, there are three config folders for OSCL. oscl/config/android oscl/config/linux oscl/config/shared When I build the .so of my OMX core, it is picking config files from config/linux. and giving errors for some symbols being undefined. My question is WHERE and HOW to mention the path of config files ? Here is my makefile: ------------------------------------------------------ ------------------------------------------------------ # Get the current local path as the first operation LOCAL_PATH := $(call get_makefile_dir) # Clear out the variables used in the local makefiles include $(MK)/clear.mk TARGET := omx_core_tp_lib XCXXFLAGS += $(FLAG_COMPILE_WARNINGS_AS_ERRORS) OPTIMIZE_FOR_PERFORMANCE_OVER_SIZE := true XINCDIRS += \ ../../../../../extern_libs_v2/khronos/openmax/include XCXXFLAGS += $(FLAG_COMPILE_WARNINGS_AS_ERRORS) SRCDIR := ../../src INCSRCDIR := ../../include SRCS := \ tp_omx_interface.cpp HDRS := LIBS := libOmxCoreTp.so $(LIBS)_fullname = ../../codecs_v2/omx/omx_tp_core/lib/libOmxCoreTp.so include $(MK)/library.mk ----------------------------------------------- Please help! On Mar 2, 11:15 am, rktb <yend...@pv.com> wrote: > Hi, > > What you have done so far is good, except for one minor issue. You > should not be touching the pvplayer.cfg file. Instead, you should be > creating your own .cfg file that will be exported to the /system/etc/ > folder. > > You could add the line "$(call add-prebuilt-files, ETC, myomxmp3.cfg)" > to your makefile that lists your LOCAL_PREBUILT_LIBS. > > /============================== > $(call add-prebuilt-files, ETC, myomxmp3.cfg) > > LOCAL_PREBUILT_LIBS := MyLibrary.so > > include $(BUILD_MULTI_PREBUILT) > > LOCAL_SHARED_LIBRARIES := MyLibrary > ==============================/ > > Now, for the OpenCORE framework to load youromxcorebefore the PVomxcore, the > trick is to rename your .cfg file as 01_myomxmp3.cfg. > While dynamic loading ofomxcores we do a bubble sort of the .cfg > files based on the name of the .cfg files. Our updated documentation > based on OpenCORE 2.1 will explain this. > > -Ravi > > On Mar 1, 11:50 pm, Yogi <yogesh.agrawal2...@gmail.com> wrote: > > > > > Hi Ravi, > > > We have followed the below step to integrate our MP3OMXcomponent. > > > 1.Pushed ".so" to the "out" folder by the following way > > > /============================== > > LOCAL_PREBUILT_LIBS := MyLibrary.so > > > include $(BUILD_MULTI_PREBUILT) > > > LOCAL_SHARED_LIBRARIES := MyLibrary > > ==============================/ > > > 2. wrapper interface file defined in "omx_core_plugin" is modified to > > include our ".so". > > Created another "*My_sharedlibray.mk" to integrate wrapper > > interface. > > Wrapper interface file is placed under "omx_sharedlibrary/ > > my_interface/src" and build. > > > 3."*mp3_sharedlibrary.mk" has been modified to remove the lines for > > compiling component and decoder sourcecode."omx_mp3" and "mp3" folders > > are > > removed. > > > 4.In /system/etc/pvplayer.cfg of "out" folder, entry has been added as > > defined in integration doc. > > > 5.ouromxshared library(.so) includesomxcorealso. > > > As there are twoomxcorelibrary i.e ours and PV's,its always > > executing the PV'somxcorelibrary. > > Its should execute our inteface &omxcoreif we try to play mp3 clip. > > > I tried one experiment,apart from the above five steps: > > 6. I have removed the entry of libomx_sharedlibrary from system/etc/ > > pvplayer.cfg file. > > 7. Commented compilation of libomx_sharedlibrary & > > libomx_mp3sharedlibrary from opencore/Android.mk > > 8. Compiled > > > After performing the step from 1 to 8, we have observed that PV > > framework is loading ouromxcoreshared libarary,not PV's. > > Hence,its executing the interface which we have customize to load our > >omxcore. > > > How we can load theomxcoredynamically with repect to component.i.e > > if we try to play .3gp clip it should load PV'somxcoreand if we try > > to play .mp3 clip it should load ouromxcore. > > > Please help me out if I have done something wrong or I have missed out > > some step. > > > Thanks, > > Yogi > > > On Mar 1, 8:56 pm, rktb <yend...@pv.com> wrote: > > > > Sorry...I did not get your question in here. Can you rephrase? > > > > -Ravi > > > > On Mar 1, 1:13 am, Yogi <yogesh.agrawal2...@gmail.com> wrote: > > > > > Hi All, > > > > > I have integrated our own openmaxcoredynamic library into android > > > > system by creating an inteface. > > > > But it is going to existing i.e PV's openMaxcorelibrary. > > > > > I tried replacing the existing openMaxcorelibrary with my openMax > > > >corelibrary,its working. > > > > Its is executing my openmax opencore library. > > > > That means, if there are two openmaxcorelibrary then it is always > > > > going to existing one. > > > > > I have followed the same procedure as mention in these post above. > > > > > Thanks in advance, > > > > Yogi > > > > > On Feb 27, 12:02 am, v_dusan <veselino...@pv.com> wrote: > > > > > > From your description - it seems the steps you are performing are > > > > > correct. > > > > > > We have just posted updated documentation that you may find useful. > > > > > >http://android.git.kernel.org/?p=platform/external/opencore.git;a=blo... > > > > > > Section 3.4 and 3.5 may provide more details. > > > > > Hope this helps. > > > > > > On Feb 18, 11:56 am, Nima <sayikuma...@gmail.com> wrote: > > > > > > > We have done the following to integrate our OMX1.1 compliant mp3 > > > > > > decoder sharedlibraryto PV frame work.Guide us if we are going in > > > > > > wrong direction. > > > > > > > 1.Pushed ".so" to the "out" folder by the following way > > > > > > > /============================== > > > > > > LOCAL_PREBUILT_LIBS := MyLibrary.so > > > > > > > include $(BUILD_MULTI_PREBUILT) > > > > > > > LOCAL_SHARED_LIBRARIES := MyLibrary > > > > > > ==============================/ > > > > > > We can see PV's .so files are pushed in 4 places in "out" folder. > > > > > > But we are able to push to 2 places in "out " folder. > > > > > > Whether above lines of code in "My_Andriod.mk" is sufficient to push > > > > > > our .so to "out" folder? > > > > > > > 2. wrapper interface file defined in "omx_core_plugin" is modified > > > > > > to > > > > > > include our ".so". > > > > > > Created another "*My_sharedlibray.mk" to integrate wrapper > > > > > > interface. > > > > > > Wrapper interface file is placed under "omx_sharedlibrary/ > > > > > > my_interface/src" and build. > > > > > > > 3."*mp3_sharedlibrary.mk" has been modified to remove the lines for > > > > > > compiling component and decoder sourcecode."omx_mp3" and "mp3" > > > > > > folders > > > > > > are > > > > > > removed. > > > > > > > 4.In /system/etc/pvplayer.cfg of "out" folder, entry has been added > > > > > > as > > > > > > defined in integration doc. > > > > > > > 5.ouromxsharedlibrary(.so) includesomxcorealso. > > > > > > > Thanks&Regards, > > > > > > > On Feb 17, 10:54 pm, v_dusan <veselino...@pv.com> wrote: > > > > > > > > Hi, > > > > > > > > You cannot integrate a singleOMXcomponent into PVomxcore. > > > > > > > You need to build your ownOMXcoreand incorporate yourOMX > > > > > > > component > > > > > > > into your ownOMXcore. > > > > > > > PV framework can then integrate yourOMXcoreusing the wrapper > > > > > > > interface > > > > > > > defined in "omx_sharedlibrary" or "omx_core_plugin" as described > > > > > > > in > > > > > > > >http://android.git.kernel.org/?p=platform/external/opencore.git;a=blo... > > > > > > > > On Feb 17, 11:37 am, Nima <sayikuma...@gmail.com> wrote: > > > > > > > > > Hi Ravi, > > > > > > > > > We have done the following to integrate our ownOMXIL 1.1 > > > > > > > > Compliant > > > > > > > > Component SharedLibrary(.so) for > > > > > > > > Mp3 decoder to PV framework.Please guide us if we are wrong. > > > > > > > > > 1.Pushed ".so" to the "out" folder. > > > > > > > > 2."*mp3_sharedlibrary.mk" has been modified to remove the lines > > > > > > > > for > > > > > > > > compiling component and decoder sourcecode.omx_mp3 and mp3 > > > > > > > > folders are > > > > > > > > removed. > > > > > > > > 3.Android _omx_sharedlibrary.so is used as wrapper > > > > > > > > > Thanks&Regards, > > > > > > > > > On Feb 17, 10:08 am, Nima <sayikuma...@gmail.com> wrote: > > > > > > > > > > Hi Ravi, > > > > > > > > > > We have our ownOMXIL 1.1 Compliant Component > > > > > > > > > SharedLibrary(.so) for > > > > > > > > > Mp3 decoder. > > > > > > > > > We would like to integrate this sharedlibraryto PV > > > > > > > > > framework.Kindly > > > > > > > > > lets know the procedure to be followed for the intergration. > > > > > > > > > > Thanks &Regards > > > > > > > > > > On Feb 17, 12:46 am, rktb <yend...@pv.com> wrote: > > > > > > > > > > > "include $(BUILD_MULTI_PREBUILT)" does NOT link the > > > > > > > > > > libraries against > > > > > > > > > > any other components. It is just pushing the libraries to > > > > > > > > > > the "out" > > > > > > > > > > folder in the correct location to be picked up before the > > > > > > > > > > system image > > > > > > > > > > is created. > > > > > > > > > > > To prevent the possibility of being overwritten, tt is not > > > > > > > > > > preferred > > > > > > > > > > to link a3rdpartylibraryagainst PV's OpenCORE framework > > > > > > > > > > without > > > > > > > > > > prior discussing it with PV. If this is a dynamically > > > > > > > > > > loadableOMX > > > > > > > > > > module, you can create a new .cfg file and push it on to > > > > > > > > > > the system > > > > > > > > > > without PV's involvement. > > > > > > > > > > > What exactly are you trying to achieve here? We can provide > > > > > > > > > > more help > > > > > > > > > > if we know the usecase. > > > > > > > > > > > -Ravi > > > > > > > > > > > On Feb 16, 11:26 am, Nima <sayikuma...@gmail.com> wrote: > > > > > > > > > > > > whether the same procedure can be applied for linking a > > > > > > > > > > > sharelibrary? > > > > > > > > > > > Where the3rdpartylibrarycan be placed in PV frame work? > > > > > > > > > > > > On Feb 16, 7:31 pm, rktb <yend...@pv.com> wrote: > > > > > > > > > > > > > Please try "include $(BUILD_MULTI_PREBUILT)". > > > > > > > > > > > > > -Ravi > > > > > > > > > > > > > On Feb 16, 6:38 am, waterblood <guoyin.c...@gmail.com> > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I just want to write a Android.mk to automatically > > > > > > > > > > > > > install a3rd- > > > > > > > > > > > > >partylib to target lib directory, so in other > > > > > > > > > > > > >Android.mk can link > > > > > > > > > > > > > them. Below is my make file. But it cannot work > > > > > > > > > > > > > > LOCAL_PATH := $(my-dir) > > > > > > > > > > > > > include $(CLEAR_VARS) > > > > > > > > > > > > > > LOCAL_PREBUILT_LIBS := \ > > > > > > > > > > > > > libmy.a > > > > > > > > > > > > > > include $(BUILD_PREBUILT) > > > > > > > > > > > > > > The error message is "dont use LOCAL_PREBUILT_LIBS > > > > > > > > > > > > > anymore ........". > > > > > > > > > > > > > If using " include $(BUILD_HOST_PREBUILT) " , the > > > > > > > > > > > > > libmy.a will be > > > > > > > > > > > > > copied to host lib directory. > > > > > > > > > > > > > > Thanks for any reply. > > > > > > > > > > > > > > Guoyin Chen- Hide quoted text - > > > > > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show- Hide quoted text - > > - Show quoted text -... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---