On 3/12/2005, "Sam Hocevar" <[EMAIL PROTECTED]> wrote:
[ snip ]
> You need to add -lvorbis et al. to your link line. An easier step is
> to read /usr/share/doc/libavcodec-dev/README.Debian .

Thanks a bunch. Just the info I needed. That brings me down to:

Linking Motion...
--------------------------------------------------------------------------------
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'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x395): In function
`dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x3bf): In function
`dts_decode_frame':
: undefined reference to `dts_block'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x3fd): In function
`dts_decode_frame':
: undefined reference to `dts_samples'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x485): In function
`dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x51e): In function
`dts_decode_init':
: undefined reference to `dts_init'
collect2: ld returned 1 exit status
make[1]: *** [motion] Error 1
make[1]: Leaving directory `/home/ddevel/debian/motion-3.1.19'
make: *** [build-stamp] Error 2

I do have libdts-dev (0.0.2-svn-1) installed (along with today's
(0.cvs20050313-1) libavcodec-dev and libavformat-dev packages). If you
have any pointers for me on this one as well, I'd really appreciate it.

If you estimate the above error is due to buggy upstream code, I'll go
ask on the relevant (videolan?) mailing list.


>> Doing
>>   cd /usr/lib/
>>   ln -s libavcodec-cvs.so libavcodec.so
>>   ln -s libavformat-cvs.so libavformat.so
>> apparently fixes the problem and I can now link against ffmpeg
>> (libavcodec/libavformat) to properly build my package.
>>
>> Any change I can convince you to provide me those two symlinks in your
>> next upload of ffmpeg? I suspect other future packages linking against
>> ffmpeg would need those two to be present.
>
>   Sorry, libavcodec-cvs.so and libavformat-cvs.so are not in my
>packages, so there is not much I can do here.

You are so right, of course. Please forget I ever asked about this.

Best regards,

Reply via email to