Hi,
i am facing a similar issue.

library.mk makfile, which is called to create the library, does not
seem to process the LIBS option.

It processes SRCS, HDRS  etc. but along with that if i give LIBS :=
mylib.a , it does not effect the build ??

Is it the right way ?

Sonal

On Mar 26, 6:11 pm, "reshresh....@gmail.com" <reshresh....@gmail.com>
wrote:
> Hi,
>
> I am trying to integrate aac codec into the PV opencore by writing a
> Open max wrapper around it.
> But I am facing an issue, I am not able to include the pre-built 
> codeclibraryinto the build.(staticor shared).
> I went through the above posts, and tried to use LOCAL_PREBUILT_LIBS
> in the makefile , but it does not seem to help.
>
> Could anyone please help on this.
> Is there any documentation on this other than "build_system.html",
> that does not help much.
> It talks about some template makefile , but I am not able to see that
> template folder anywhere ????
>
> 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 your omx core before the PV
> > omx core, the trick is to rename your .cfg file as 01_myomxmp3.cfg.
> > While dynamic loading of omx cores 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 ourMP3OMX component.
>
> > > 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 inintegrationdoc.
>
> > > 5.our omx sharedlibrary(.so) includes omx core also.
>
> > > As there are two omx corelibraryi.e ours and PV's,its always
> > > executing the PV's omx corelibrary.
> > > Its should execute our inteface & omx core if we try to playmp3clip.
>
> > > 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 our omx core shared libarary,not PV's.
> > > Hence,its executing the interface which we have customize to load our
> > > omx core.
>
> > > How we can load the omx core dynamically with repect to component.i.e
> > > if we try to play .3gp clip it should load PV's omx core and if we try
> > > to play .mp3clip it should load our omx core.
>
> > > 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 openmax core dynamiclibraryinto android
> > > > > system by creating an inteface.
> > > > > But it is going to existing i.e PV's openMax corelibrary.
>
> > > > > I tried replacing the existing openMax corelibrarywith my openMax
> > > > > corelibrary,its working.
> > > > > Its is executing my openmax opencorelibrary.
> > > > > That means, if there are two openmax corelibrarythen 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 compliantmp3
> > > > > > > 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 inintegrationdoc.
>
> > > > > > > 5.our omx sharedlibrary(.so) includes omx core also.
>
> > > > > > > Thanks&Regards,
>
> > > > > > > On Feb 17, 10:54 pm, v_dusan <veselino...@pv.com> wrote:
>
> > > > > > > > Hi,
>
> > > > > > > > You cannot integrate a single OMX component into PV omx core.
> > > > > > > > You need to build your own OMX core and incorporate your OMX
> > > > > > > > component
> > > > > > > > into your own OMX core.
> > > > > > > > PV framework can then integrate your OMX core using 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 own OMX IL 1.1 
> > > > > > > > > Compliant
> > > > > > > > > Component SharedLibrary(.so) for
> > > > > > > > >Mp3decoder 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 
> > > > > > > > > andmp3folders 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 own OMX IL 1.1 Compliant Component 
> > > > > > > > > > SharedLibrary(.so) for
> > > > > > > > > >Mp3decoder.
> > > > > > > > > > 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 
> > > > > > > > > > > loadable OMX
> > > > > > > > > > > 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
>
> ...
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to