Wild guess here but I believe you must compile ffmpeg into shared libs IIRC "--enable-shared".

Marcos

2007/9/16, Joe <joe.uelk@gmail.com >:
Hello all,

I'm trying to compile motion on OS X 10.4 Intel. There appears to be an issue with linking (see below). I've tried with the latest ffmpeg from svn as well as 0.4.8.

The make command using the latest ffmpeg snapshot yields the following:

./configure --with-ffmpeg=/usr/local/lib  --with-mysql-lib=/usr/local/mysql/lib
make
.
.
.
Linking Motion...
--------------------------------------------------------------------------------
gcc -L/sw/lib  -L/usr/local/lib -o motion motion.o conf.o draw.o video_freebsd.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 mjpeg.o ffmpeg.o -lm -L/sw/lib -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/local/mysql/lib -lmysqlclient -lz
/usr/bin/ld: Undefined symbols:
_av_free
_av_freep
_av_log_set_callback
_av_mallocz
_av_log
_av_malloc
_av_realloc
_av_reduce
_av_rescale
_av_rescale_q
_av_strlcpy
_ff_gcd
_av_crc04C11DB7
_av_crc07
_av_crc8005
_av_crc_init
_av_d2q
_av_log_level
_av_strstart
_av_strdup
_av_stristart
_av_strlcat
_av_rescale_rnd
_av_dbl2ext
_av_ext2dbl
_ff_log2_tab
_av_adler32_update
_av_fifo_drain
_av_fifo_free
_av_fifo_init
_av_fifo_size
_av_fifo_write
_av_dbl2int
_av_int2dbl
_av_int2flt
_av_fifo_read
_av_base64_encode
_av_md5_final
_av_md5_init
_av_md5_size
_av_md5_update
_av_mul_q
_av_fifo_generic_read
_av_fifo_realloc
_av_crc
_av_aes_crypt
_av_aes_init
_av_aes_size
_av_tree_find
_av_base64_decode
_av_init_random
_av_random_generate_untempered_numbers
_lzo1x_decode
_av_evaluate_lls
_av_init_lls
_av_solve_lls
_av_update_lls
_ff_sqrt_tab
_av_div_q
_av_tree_insert
collect2: ld returned 1 exit status
make: *** [motion] Error 1



Any thoughts?

Thanks!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome