hi everyone,
I wrote a Qt/ffmpeg program which compiles fine with the -lavcodec flag on my
Linux box.
then I installed ffmpeg on my os X machine with general ./configure make sudo
make install
(no need for the audio codecs I only use video)
During linking however I get undefined reference errors but I know the library
is found (otherwise
he would complain on my -lavcodec flag, and the libav* libraries are present in
/usr/local/lib/)
The errors look like this, are there any flags I should parse to configure?
Or is something else wrong?
Undefined symbols:
"avcodec_find_encoder(CodecID)", referenced from:
RecordDialog::setupRecording(int, int, bool, float)in recordmovie.o
"avcodec_register_all()", referenced from:
RecordDialog::RecordDialog(QWidget*)in recordmovie.o
"av_free(void*)", referenced from:
RecordDialog::closeRecording() in recordmovie.o
RecordDialog::closeRecording() in recordmovie.o
"avcodec_close(AVCodecContext*)", referenced from:
RecordDialog::closeRecording() in recordmovie.o
"avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)",
referenced from:
RecordDialog::writeFrame(unsigned char*)in recordmovie.o
RecordDialog::closeRecording() in recordmovie.o
"avcodec_init()", referenced from:
RecordDialog::RecordDialog(QWidget*)in recordmovie.o
"avcodec_alloc_context()", referenced from:
RecordDialog::setupRecording(int, int, bool, float)in recordmovie.o
"avcodec_alloc_frame()", referenced from:
RecordDialog::setupRecording(int, int, bool, float)in recordmovie.o
"avcodec_open(AVCodecContext*, AVCodec*)", referenced from:
RecordDialog::setupRecording(int, int, bool, float)in recordmovie.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [debug/open1394.app/Contents/MacOS/open1394] Error 1
These are the same typical you get when you forget the -lavcodec flag, but I
didn't so i'm confused...
wkr,
jasper
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user