<!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>
Hi<BR>
&nbsp;&nbsp;&nbsp; ok i tried quite some stuff from what u suggested...heres it<BR>
since the libs im using aren't having the lib prefix, meaning they are not like libalgorithm.a instead they are algorithm.a, so i guess i cant use -lalgorithm, <BR>
since i read on some webpage that -lalgorithm would mean that the linker would look for libalgorithm.a... so heres what i did to include the libs<BR>
<BR>
<B>/*command seq 01*/</B><BR>
./configure --prefix=/opt/gstreamer CFLAGS=-I/opt/include LDFLAGS=&quot;-L/opt/lib/algorithm.a&nbsp; -L/opt/lib/memory.a -L/opt/lib/math.lib&quot;<BR>
make<BR>
make install<BR>
<BR>
i figured that ldd on the plugins.so file won't show me any of the libs i've included, since my libs are static libs<BR>
so heres a small check i carried out<BR>
first i compiled the plugin without including any of my libs with the following commands<BR>
<BR>
<B>/*command seq 02*/</B><BR>
./configure --prefix=/opt/gstreamer CFLAGS=-I/opt/include<BR>
make<BR>
make install<BR>
<BR>
then i checked the properties of the libraries (only <B><I>size of interest here</I></B>)...heres the output<BR>
-rw-r--r--&nbsp;&nbsp;&nbsp; 1 root root 16816 Feb&nbsp; 3 01:36 libgstgdec.a<BR>
-rwxr-xr-x&nbsp; 1 root root&nbsp; 1148 Feb&nbsp; 3 01:36 libgstgdec.la<BR>
-rwxr-xr-x&nbsp; 1 root root 39723 Feb&nbsp; 3 01:36 libgstgdec.so<BR>
<BR>
and then i compiled again including the libraries using <B>command sequence 01</B> (<I>above</I>)... heres the output<BR>
-rw-r--r--&nbsp;&nbsp;&nbsp; 1 root root 16816 Feb&nbsp; 3 15:16 libgstgdec.a<BR>
-rwxr-xr-x&nbsp; 1 root root&nbsp; 1483 Feb&nbsp; 3 15:16 libgstgdec.la<BR>
-rwxr-xr-x&nbsp; 1 root root 39723 Feb&nbsp; 3 15:16 libgstgdec.so<BR>
<BR>
so looking carefully at the sizes. they change for libgstgdec.la ... a diiference in size of 335...<BR>
next i checked the total size of the libs im including (ie. the .a and .lib files), which comes out to be 336.8 Kb...<BR>
does this mean that my libs are getting included?? i mean is it that including static libs (.a, .lib files) would affect the size of libgstgdec.la file.<BR>
<BR>
also does changing the lib name from algorithm.a to libalgorithm.a have any side affect on the library? (hope u get what i mean.)<BR>
-----thats it for the compile<BR>
<BR>
next.. on the research i did.. i found that .a means nothing but an archive of .o files...so i could extract the .o files from the archive<BR>
so are there any options that i could give the ./configure script or the makefile to include these .o files while linking...<BR>
<BR>
u must have noticed by now, that these libs are not created/compiled by me. <IMG SRC="cid:1138963455.2720.6.camel@nextbitcpu.com" ALIGN="middle" ALT=";)" BORDER="0">.<BR>
anyways plz help me some more <IMG SRC="cid:1138963516.2720.8.camel@nextbitcpu.com" ALIGN="middle" ALT=":)" BORDER="0"> .<BR>
<BR>
awaiting ur replies.<BR>
bye<BR>
take care<BR>
sameer<BR>
<BR>
On Thu, 2006-02-02 at 13:53 +0100, Stefan Kost wrote: 
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Sameer,</FONT>

<FONT COLOR="#000000">so the libs are your own. In this case forget the pkg-config stuff for now (that </FONT>
<FONT COLOR="#000000">is used for third party stuff).</FONT>

<FONT COLOR="#000000">All you need is to add something lib '-lalgorithm -lmemory' to your LDFLAGS.</FONT>

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

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