[Live-devel] linking error
xiaoming chen
timchen.xiaoming at gmail.com
Wed May 19 00:09:41 PDT 2010
Hi,guys, I now install a library named omnimeeting, which use live555
,ffmpeg and opencv as former library.
There is nothing wrong when install, but I meet error when linking the
library. Here is the error information:
/usr/local/lib/libomnistream.so: undefined reference to
`av_set_parameters(AVFormatContext*, AVFormatParameters*)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_open_input_file(AVFormatContext**, char const*, AVInputFormat*, int,
AVFormatParameters*)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::wasLoopedBackFromUs(UsageEnvironment&, sockaddr_in&)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_find_stream_info(AVFormatContext*)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::create(int)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::RemoveNext()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::~Groupsock()'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_find_encoder(CodecID)'
/usr/local/lib/libomnistream.so: undefined reference to `sws_getContext(int,
int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*,
double*)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_find_decoder(CodecID)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_alloc_context()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::removeAllDestinations()'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_close(AVCodecContext*)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_read_frame(AVFormatContext*, AVPacket*)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_alloc_frame()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::Groupsock(UsageEnvironment&, in_addr const&, Port, unsigned
char)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_encode_audio(AVCodecContext*, unsigned char*, int, short const*)'
/usr/local/lib/libomnistream.so: undefined reference to `guess_format(char
const*, char const*, char const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_open(AVCodecContext*, AVCodec*)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::Iterator::create(HashTable&)'
/usr/local/lib/libomnistream.so: undefined reference to `avcodec_init()'
/usr/local/lib/libomnistream.so: undefined reference to `strDup(char
const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_close_input_file(AVFormatContext*)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_decode_video(AVCodecContext*, AVFrame*, int*, unsigned char const*,
int)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_register_all()'
/usr/local/lib/libomnistream.so: undefined reference to
`sws_freeContext(SwsContext*)'
/usr/local/lib/libomnistream.so: undefined reference to `av_free(void*)'
/usr/local/lib/libomnistream.so: undefined reference to
`sws_scale(SwsContext*, unsigned char**, int*, int, int, unsigned char**,
int*)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_alloc_format_context()'
/usr/local/lib/libomnistream.so: undefined reference to
`avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::removeDestination(in_addr const&, Port const&)'
/usr/local/lib/libomnistream.so: undefined reference to `av_register_all()'
/usr/local/lib/libomnistream.so: undefined reference to
`avformat_alloc_context()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::addDestination(in_addr const&, Port const&)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_new_stream(AVFormatContext*, int)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::multicastSendOnly()'
/usr/local/lib/libomnistream.so: undefined reference to
`avpicture_get_size(int, int, int)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::changeDestinationParameters(in_addr const&, Port, int)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::Groupsock(UsageEnvironment&, in_addr const&, in_addr const&,
Port)'
/usr/local/lib/libomnistream.so: undefined reference to `strDupSize(char
const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`av_find_input_format(char const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::output(UsageEnvironment&, unsigned char, unsigned char*,
unsigned int, DirectedNetInterface*)'
I search for a solution for linking error about ffmpeg library:
extern "C" {
#define __STDC_CONSTANT_MACROS
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
And now the function in two libraries is ok, but still errors about others:
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::wasLoopedBackFromUs(UsageEnvironment&, sockaddr_in&)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::create(int)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::RemoveNext()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::~Groupsock()'
/usr/local/lib/libomnistream.so: undefined reference to `sws_getContext(int,
int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*,
double*)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::removeAllDestinations()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::Groupsock(UsageEnvironment&, in_addr const&, Port, unsigned
char)'
/usr/local/lib/libomnistream.so: undefined reference to
`HashTable::Iterator::create(HashTable&)'
/usr/local/lib/libomnistream.so: undefined reference to `strDup(char
const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`sws_freeContext(SwsContext*)'
/usr/local/lib/libomnistream.so: undefined reference to
`sws_scale(SwsContext*, unsigned char**, int*, int, int, unsigned char**,
int*)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::removeDestination(in_addr const&, Port const&)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::addDestination(in_addr const&, Port const&)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::multicastSendOnly()'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::changeDestinationParameters(in_addr const&, Port, int)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::Groupsock(UsageEnvironment&, in_addr const&, in_addr const&,
Port)'
/usr/local/lib/libomnistream.so: undefined reference to `strDupSize(char
const*)'
/usr/local/lib/libomnistream.so: undefined reference to
`Groupsock::output(UsageEnvironment&, unsigned char, unsigned char*,
unsigned int, DirectedNetInterface*)'
These errors are mostly about the live555 libraries. And I'm confused again.
Could someone do me a favor?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100519/acc6a4a9/attachment-0001.html>
More information about the live-devel
mailing list