[Ffmpeg-devel] problem to build

Måns Rullgård mru
Sat Mar 25 19:18:51 CET 2006


Marc Collin <collinm at laboiteaprog.com> writes:

> Le Samedi 25 Mars 2006 07:27, M?ns Rullg?rd a ?crit?:
>> Marc Collin <collinm at laboiteaprog.com> writes:
>> > hi
>> >
>> > i have a amd 64bit
>> > i take the last cvs ffmeg release
>> >
>> > ./configure
>> >
>> > not problem
>> >
>> > when i do make:
>> >
>> > gcc -L/usr/local/lib -o motion motion.o conf.o draw.o video.o netcam.o
>> > netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o
>> > rotate.o webhttpd.o webcam.o ffmpeg.o -lm  -lpthread -ljpeg
>> > -L/usr/local/lib -lavformat -lavcodec -lm -lz
>> > /usr/local/lib/libavformat.a(utils.o): In function
>> > `parse_frame_rate':/home/collinm/rpm/ffmpeg/libavformat/utils.c:2745:
>> > r?f?rence ind?finie vers ? av_d2q ?
>>
>> stdin: parse error before `r?f?rence': French not supported
>>
>> You need to add -lavutil to the link command.
>>
>> Another thing: you shouldn't use -lpthread.  You should compile and
>> link all code that uses pthreads with the -pthread flag to gcc, which
>> will then do whatever is needed.  For instance, on some platforms it
>> might link with a different C library to get reentrant versions of
>> functions that otherwise would be non-reentrant.
>
> i need to add -lavutil to gcc in the makefile?

Yes.

> how to do the link with pthread... like you said?

gcc -pthread your-usual-flags-and-files

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list