check whether  you are linking following &quot;<b>-lgroupsock</b>&quot;<div><br></div><div><br></div><div><br></div><div><br clear="all">With Warm Regards<br>Jesu Anuroop Suresh <br><br>&quot;Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction.&quot;<br>
&quot;Anyone who has never made a mistake has never tried anything new.&quot;<br><br><br><br><br>
<br><br><div class="gmail_quote">On Wed, May 19, 2010 at 12:39 PM, xiaoming chen <span dir="ltr">&lt;<a href="mailto:timchen.xiaoming@gmail.com">timchen.xiaoming@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,guys, I now install a library named omnimeeting, which use live555 ,ffmpeg and opencv as former library.<div>There is nothing wrong when install, but I meet error when linking the library. Here is the error information:</div>

<div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>/usr/local/lib/libomnistream.so: undefined reference to `av_set_parameters(AVFormatContext*, AVFormatParameters*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `av_open_input_file(AVFormatContext**, char const*, AVInputFormat*, int, AVFormatParameters*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::wasLoopedBackFromUs(UsageEnvironment&amp;, sockaddr_in&amp;)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `av_find_stream_info(AVFormatContext*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::create(int)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::RemoveNext()&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::~Groupsock()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_find_encoder(CodecID)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_find_decoder(CodecID)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_alloc_context()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::removeAllDestinations()&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_close(AVCodecContext*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `av_read_frame(AVFormatContext*, AVPacket*)&#39;</div><div>

/usr/local/lib/libomnistream.so: undefined reference to `avcodec_alloc_frame()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::Groupsock(UsageEnvironment&amp;, in_addr const&amp;, Port, unsigned char)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_encode_audio(AVCodecContext*, unsigned char*, int, short const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `guess_format(char const*, char const*, char const*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::Iterator::create(HashTable&amp;)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_init()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `strDup(char const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `av_close_input_file(AVFormatContext*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_decode_video(AVCodecContext*, AVFrame*, int*, unsigned char const*, int)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_register_all()&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `sws_freeContext(SwsContext*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `av_free(void*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `sws_scale(SwsContext*, unsigned char**, int*, int, int, unsigned char**, int*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `av_alloc_format_context()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::removeDestination(in_addr const&amp;, Port const&amp;)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `av_register_all()&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `avformat_alloc_context()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::addDestination(in_addr const&amp;, Port const&amp;)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `av_new_stream(AVFormatContext*, int)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::multicastSendOnly()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avpicture_get_size(int, int, int)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::changeDestinationParameters(in_addr const&amp;, Port, int)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::Groupsock(UsageEnvironment&amp;, in_addr const&amp;, in_addr const&amp;, Port)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `strDupSize(char const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `av_find_input_format(char const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::output(UsageEnvironment&amp;, unsigned char, unsigned char*, unsigned int, DirectedNetInterface*)&#39;</div>

<div><br></div><div>I search for a solution for linking error about ffmpeg library:</div><div><div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px">extern &quot;C&quot; { </span></div><div>
<font face="Verdana, Arial, Helvetica, sans-serif" size="3"><span style="font-size:12px"><div>#define __STDC_CONSTANT_MACROS </div><div>#include &lt;libavcodec/avcodec.h&gt;</div><div>#include &lt;libavformat/avformat.h&gt;</div>

<div>}</div><div><br></div><div>And now the function in two libraries is ok, but still errors about others:</div><div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px"><div>
/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::wasLoopedBackFromUs(UsageEnvironment&amp;, sockaddr_in&amp;)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::create(int)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::RemoveNext()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::~Groupsock()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::removeAllDestinations()&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::Groupsock(UsageEnvironment&amp;, in_addr const&amp;, Port, unsigned char)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `HashTable::Iterator::create(HashTable&amp;)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `strDup(char const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `sws_freeContext(SwsContext*)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `sws_scale(SwsContext*, unsigned char**, int*, int, int, unsigned char**, int*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::removeDestination(in_addr const&amp;, Port const&amp;)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::addDestination(in_addr const&amp;, Port const&amp;)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::multicastSendOnly()&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::changeDestinationParameters(in_addr const&amp;, Port, int)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::Groupsock(UsageEnvironment&amp;, in_addr const&amp;, in_addr const&amp;, Port)&#39;</div>

<div>/usr/local/lib/libomnistream.so: undefined reference to `strDupSize(char const*)&#39;</div><div>/usr/local/lib/libomnistream.so: undefined reference to `Groupsock::output(UsageEnvironment&amp;, unsigned char, unsigned char*, unsigned int, DirectedNetInterface*)&#39;</div>

<div><br></div><div>These errors are mostly about the live555 libraries. And I&#39;m confused again.</div><div>Could someone do me a favor?</div></span></div></span></font></div></div></span></div>
<br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div>