From: Andrew H. <ham...@mc...> - 2006-04-19 19:04:51
|
Try adding '-lavutil' to the linking flags in the Makefile. Sincerely, Andrew Hamilton ----- Original Message ----- From: "aaron barrus" <as_...@ya...> To: <mot...@li...> Sent: Wednesday, April 19, 2006 1:17 PM Subject: [Motion-user] Linking with ffmpeg > Hi all, > > I have a Redhat FC5 box that I'm trying to install motion on. I've > downloaded the ffmpeg listed > on the motion home page, > ffmpeg-cvs-20060306-certified-with-motion-3.2.5.tar.gz, built it, and > installed it. ./configure motion succeeds and appears to find ffmpeg > libraries correctly. But > when I make motion, I get this: > > Linking Motion... > -------------------------------------------------------------------------------- > 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 `dump_format': > /usr/src/ffmpeg/libavformat/utils.c:2621: undefined reference to `ff_gcd' > /usr/src/ffmpeg/libavformat/utils.c:2608: undefined reference to > `av_rescale' > /usr/local/lib/libavformat.a(utils.o): In function `compute_pkt_fields': > ... and eventually ... > /usr/src/ffmpeg/libavutil/common.h:370: undefined reference to > `ff_log2_tab' > /usr/src/ffmpeg/libavutil/common.h:370: undefined reference to > `ff_log2_tab' > /usr/local/lib/libavcodec.a(snow.o):/usr/src/ffmpeg/libavcodec/snow.c:3077: > more undefined > references to `ff_log2_tab' follow > collect2: ld returned 1 exit status > make: *** [motion] Error 1 > > Any suggestion? > > Thanks! > > Aaron > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > |