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.

Sam.
-- 
Sam Hocevar <[EMAIL PROTECTED]> <http://sam.zoy.org/>
     Software should be free -- http://www.debian.org/
 Media access should be free -- http://www.videolan.org/
      Knowledge must be free -- http://www.wikipedia.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to