On 3/14/2005, "Sam Hocevar" <[EMAIL PROTECTED]> wrote:
>On Mon, Mar 14, 2005, Frederik Dannemare wrote:
>
>> Thanks a bunch. Just the info I needed. That brings me down to:
>>
>> i386-linux-gcc  -o motion motion.o conf.o draw.o video.o track.o alg.o
>> event.o picture.o  rotate.o netcam.o netcam_wget.o webcam.o ffmpeg.o
>> xmlrpc-httpd.o control.o -lm -lavcodec -lvorbis -lvorbisenc -ldts -la52
>> -lz -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz
>> -L/usr/lib -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok  -L/usr/lib
>> -lmysqlclient -lz -L/usr/lib -lpq
>> /usr/lib/libavcodec.a(dtsdec.o)(.text+0x33d): In function
>> `dts_decode_frame':
>> : undefined reference to `dts_frame'
>
>   Mmmh, try to add an additional -ldts after the last -lavcodec. And I
>think you can remove the first -lavcodec.
>
>   The reason is that -lavformat uses avcodec symbols that are not
>used within motion, so these symbols are only linked in at the second
>-lavcodec occurrence. And since these new symbols probably use dts
>symbols, it's too late because the -ldts is behind.

Great, this was it. motion now builds with support for ffmpeg - and I've
learned something in the process.

Feel free to close this report.

Thanks,

Reply via email to