<!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>
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="-L/opt/lib/algorithm.a -L/opt/lib/memory.a -L/opt/lib/math.lib"<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-- 1 root root 16816 Feb 3 01:36 libgstgdec.a<BR>
-rwxr-xr-x 1 root root 1148 Feb 3 01:36 libgstgdec.la<BR>
-rwxr-xr-x 1 root root 39723 Feb 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-- 1 root root 16816 Feb 3 15:16 libgstgdec.a<BR>
-rwxr-xr-x 1 root root 1483 Feb 3 15:16 libgstgdec.la<BR>
-rwxr-xr-x 1 root root 39723 Feb 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">> thanks man...</FONT>
<FONT COLOR="#000000">> i really appreciate the help</FONT>
<FONT COLOR="#000000">> but, i really need some guidance here... i dont wanna screw stuff up.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> let me explain my scenario...</FONT>
<FONT COLOR="#000000">> my libraries are in</FONT>
<FONT COLOR="#000000">> /opt/lib/</FONT>
<FONT COLOR="#000000">> the files inside this folder are like</FONT>
<FONT COLOR="#000000">> algorithm.a</FONT>
<FONT COLOR="#000000">> memory.a</FONT>
<FONT COLOR="#000000">> math.lib</FONT>
<FONT COLOR="#000000">> and so on</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> the includes are in</FONT>
<FONT COLOR="#000000">> /opt/include</FONT>
<FONT COLOR="#000000">> (no problem with these getting included,...since i dont get compilation </FONT>
<FONT COLOR="#000000">> errors)</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> dunno much about pkg-config...so u gotta help me here too</FONT>
<FONT COLOR="#000000">> my pkg-config path is PKG_CONFIG_PATH=/opt/gstreamer/lib/pkgconfig</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> so plz lemme know how to locate the lib using pkg-config</FONT>
<FONT COLOR="#000000">> and also about LDADD, LDFLAGS (actually i know a bit about this....just </FONT>
<FONT COLOR="#000000">> wanna make sure)</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> plz help</FONT>
<FONT COLOR="#000000">> awaiting ur reply</FONT>
<FONT COLOR="#000000">> thanks</FONT>
<FONT COLOR="#000000">> take care</FONT>
<FONT COLOR="#000000">> Sameer</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> On Wed, 2006-02-01 at 21:37 +0100, Stefan Kost wrote:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">>>hi,</FONT>
<FONT COLOR="#000000">>></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">>></FONT>
<FONT COLOR="#000000">>>Stefan</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>>Sameer Naik wrote:</FONT>
<FONT COLOR="#000000">>>> Hello everyone...</FONT>
<FONT COLOR="#000000">>>> i have developed a plugin that need additional libraries to get working</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> the include file for my library are in</FONT>
<FONT COLOR="#000000">>>> */opt/include*</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> and the library files are in</FONT>
<FONT COLOR="#000000">>>> */opt/lib*</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> i have developed my plugin using the plugin template available in the</FONT>
<FONT COLOR="#000000">>>> gstreamer cvs.</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> heres what i do to compile my plugin</FONT>
<FONT COLOR="#000000">>>> ./configure CFLAGS=-I/opt/include LDFLAGS=-L/opt/lib</FONT>
<FONT COLOR="#000000">>>> make</FONT>
<FONT COLOR="#000000">>>> make install</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> (i do nothing more than this to tell the compiler about the libraries</FONT>
<FONT COLOR="#000000">>>> i wanna use.)</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> my plugin gets compiled well</FONT>
<FONT COLOR="#000000">>>> when i do a gst-inspect on my plugin it says "plugin or element not found"</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> i did an ldd on the .so file of my plugin to check what libraries its</FONT>
<FONT COLOR="#000000">>>> compiled against, and none of</FONT>
<FONT COLOR="#000000">>>> my libraries (the libs i wanna use) are shown, only the gstreamer,</FONT>
<FONT COLOR="#000000">>>> glibc,and so on are shown...</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> im quite sure that the external libraries i want to use are not</FONT>
<FONT COLOR="#000000">>>> getting linked to my plugin...probably im missing something..</FONT>
<FONT COLOR="#000000">>>> looks like im missing something really minor, something im not aware</FONT>
<FONT COLOR="#000000">>>> of :)...</FONT>
<FONT COLOR="#000000">>>></FONT>
<FONT COLOR="#000000">>>> plz help</FONT>
<FONT COLOR="#000000">>>> thanks in advance</FONT>
<FONT COLOR="#000000">>>> take care</FONT>
<FONT COLOR="#000000">>>> Sameer </FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>></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&kid=103432&bid=230486&dat=121642</A> <<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&kid=103432&bid=230486&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> <mailto:<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>
<FONT COLOR="#000000">>></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&kid=103432&bid=230486&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>