Hi Jasper,
Jasper Leemans wrote:
> 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)
[...]
> "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
On some systems, I've seen similar errors when the "-lavcodec" option
is placed in the wrong position in the compilation command.
Since you did not post the command you used for compiling/linking your
program, it's hard to tell where the problem is.
Anyway:
1) Do the "ffmpeg", "ffplay", and "ffserver" executable compile and link
correctly in your OS X installation? If yes, you can look at the command
lines used by the ffmpeg build system to compile and link them...
2) In general, you can use the "pkg-config" command to know the correct
options (in the correct order).
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user