[gst-devel] Compiling Plugin with additional Libraries
Stefan Kost
ensonic at hora-obscura.de
Thu Feb 2 04:54:05 CET 2006
Hi Sameer,
so the libs are your own. In this case forget the pkg-config stuff for now (that
is used for third party stuff).
All you need is to add something lib '-lalgorithm -lmemory' to your LDFLAGS.
Stefan
Sameer Naik wrote:
> thanks man...
> i really appreciate the help
> but, i really need some guidance here... i dont wanna screw stuff up.
>
> let me explain my scenario...
> my libraries are in
> /opt/lib/
> the files inside this folder are like
> algorithm.a
> memory.a
> math.lib
> and so on
>
> the includes are in
> /opt/include
> (no problem with these getting included,...since i dont get compilation
> errors)
>
> dunno much about pkg-config...so u gotta help me here too
> my pkg-config path is PKG_CONFIG_PATH=/opt/gstreamer/lib/pkgconfig
>
> so plz lemme know how to locate the lib using pkg-config
> and also about LDADD, LDFLAGS (actually i know a bit about this....just
> wanna make sure)
>
> plz help
> awaiting ur reply
> thanks
> take care
> Sameer
>
>
> On Wed, 2006-02-01 at 21:37 +0100, Stefan Kost wrote:
>
>>hi,
>>
>>if ldd does not show the lib, its not linked against it. You should
>>locate the lib using pkg-config or the like and add the lib to the
>>variables in Makefile.am (LDADD, LDFLAGS, ..).
>>If ldd shows the lib, but can't resolv it, check that /opt/lib is in you
>>ld.so.conf.
>>
>>Stefan
>>
>>Sameer Naik wrote:
>>> Hello everyone...
>>> i have developed a plugin that need additional libraries to get working
>>>
>>> the include file for my library are in
>>> */opt/include*
>>>
>>> and the library files are in
>>> */opt/lib*
>>>
>>> i have developed my plugin using the plugin template available in the
>>> gstreamer cvs.
>>>
>>> heres what i do to compile my plugin
>>> ./configure CFLAGS=-I/opt/include LDFLAGS=-L/opt/lib
>>> make
>>> make install
>>>
>>> (i do nothing more than this to tell the compiler about the libraries
>>> i wanna use.)
>>>
>>> my plugin gets compiled well
>>> when i do a gst-inspect on my plugin it says "plugin or element not found"
>>>
>>> i did an ldd on the .so file of my plugin to check what libraries its
>>> compiled against, and none of
>>> my libraries (the libs i wanna use) are shown, only the gstreamer,
>>> glibc,and so on are shown...
>>>
>>> im quite sure that the external libraries i want to use are not
>>> getting linked to my plugin...probably im missing something..
>>> looks like im missing something really minor, something im not aware
>>> of :)...
>>>
>>> plz help
>>> thanks in advance
>>> take care
>>> Sameer
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>>for problems? Stop! Download the new AJAX search engine that makes
>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>>_______________________________________________
>>gstreamer-devel mailing list
>>gstreamer-devel at lists.sourceforge.net <mailto:gstreamer-devel at lists.sourceforge.net>
>>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
More information about the gstreamer-devel
mailing list