<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
thanks man...<BR>
i really appreciate the help<BR>
but, i really need some guidance here... i dont wanna screw stuff up.<BR>
<BR>
let me explain my scenario...<BR>
my libraries are in <BR>
/opt/lib/<BR>
the files inside this folder are like<BR>
algorithm.a<BR>
memory.a<BR>
math.lib<BR>
and so on<BR>
<BR>
the includes are in <BR>
/opt/include<BR>
(no problem with these getting included,...since i dont get compilation errors)<BR>
<BR>
dunno much about pkg-config...so u gotta help me here too<BR>
my pkg-config path is PKG_CONFIG_PATH=/opt/gstreamer/lib/pkgconfig<BR>
<BR>
so plz lemme know how to locate the lib using pkg-config<BR>
and also about LDADD, LDFLAGS (actually i know a bit about this....just wanna make sure)<BR>
<BR>
plz help<BR>
awaiting ur reply<BR>
thanks<BR>
take care<BR>
Sameer<BR>
<BR>
<BR>
On Wed, 2006-02-01 at 21:37 +0100, Stefan Kost wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">hi,</FONT>

<FONT COLOR="#000000">if ldd does not show the lib, its not linked against it. You should</FONT>
<FONT COLOR="#000000">locate the lib using pkg-config or the like and add the lib to the</FONT>
<FONT COLOR="#000000">variables in Makefile.am (LDADD, LDFLAGS, ..).</FONT>
<FONT COLOR="#000000">If ldd shows the lib, but can't resolv it, check that /opt/lib is in you</FONT>
<FONT COLOR="#000000">ld.so.conf.</FONT>

<FONT COLOR="#000000">Stefan</FONT>

<FONT COLOR="#000000">Sameer Naik wrote:</FONT>
<FONT COLOR="#000000">&gt; Hello everyone...</FONT>
<FONT COLOR="#000000">&gt; i have developed a plugin that need additional libraries to get working</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; the include file for my library are  in</FONT>
<FONT COLOR="#000000">&gt; */opt/include*</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; and the library files are in</FONT>
<FONT COLOR="#000000">&gt; */opt/lib*</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; i have developed my plugin using the plugin template available in the</FONT>
<FONT COLOR="#000000">&gt; gstreamer cvs.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; heres what i do to compile my plugin</FONT>
<FONT COLOR="#000000">&gt; ./configure CFLAGS=-I/opt/include LDFLAGS=-L/opt/lib</FONT>
<FONT COLOR="#000000">&gt; make</FONT>
<FONT COLOR="#000000">&gt; make install</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; (i do nothing more than this to tell the compiler about the libraries</FONT>
<FONT COLOR="#000000">&gt; i wanna use.)</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; my plugin gets compiled well</FONT>
<FONT COLOR="#000000">&gt; when i do a gst-inspect on my plugin it says &quot;plugin or element not found&quot;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; i did an ldd on the .so file of my plugin to check what libraries its</FONT>
<FONT COLOR="#000000">&gt; compiled against, and none of</FONT>
<FONT COLOR="#000000">&gt; my libraries (the libs i wanna use) are shown, only the gstreamer,</FONT>
<FONT COLOR="#000000">&gt; glibc,and so on are shown...</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; im quite sure that the external libraries i want to use are not</FONT>
<FONT COLOR="#000000">&gt; getting linked to my plugin...probably im missing something..</FONT>
<FONT COLOR="#000000">&gt; looks like im missing something really minor, something im not aware</FONT>
<FONT COLOR="#000000">&gt; of :)...</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; plz help</FONT>
<FONT COLOR="#000000">&gt; thanks in advance</FONT>
<FONT COLOR="#000000">&gt; take care</FONT>
<FONT COLOR="#000000">&gt; Sameer </FONT>



<FONT COLOR="#000000">-------------------------------------------------------</FONT>
<FONT COLOR="#000000">This SF.net email is sponsored by: Splunk Inc. Do you grep through log files</FONT>
<FONT COLOR="#000000">for problems?  Stop!  Download the new AJAX search engine that makes</FONT>
<FONT COLOR="#000000">searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!</FONT>
<FONT COLOR="#000000"><A HREF="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=103432&amp;bid=230486&amp;dat=121642</A></FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">gstreamer-devel mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A></FONT>
<FONT COLOR="#000000"><A HREF="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>