Motion - Bug Report 2009x 03x 08x 163022
You are here: Foswiki>Motion Web>BugReports>BugReport2009x03x08x163022 (09 Mar 2009, AngelCarpintero)Edit Attach

BUG: Problem linking motion with ffmpeg svn

Hi, I downloaded motion 3.2.11 and the ffmpeg svn version from the motion website. I successfully built both of them, no extra parms added during configure and make for both packages. This did not work quite 100%, motion was OK, but anything using ffmeg did not work. No error messages issued at all.

So I was trying to make motion again and all I ever get now is the error msg shown below. I did try the following before the second make attempt:

Open the file /etc/ld.so.conf in your favorite text editor. /usr/local/lib Run the command ldconfig.

Later I took that line out and ran ldconfig again. Did make clean, configure, make, but same problem. Currently I cannot seem to determine what the parm -lz actually does, still looking, so I am a bit stuck.

OK got a bit further:

Slug1-T find / -name libz.*
/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.3.3

Slug1-T find / -name libm.*
/lib/libm.so.6
/usr/lib/libm.a
/usr/lib/libm.so

Seems I am missing libz.a. Is that correct?

Cheers Brian

Linking Motion...
--------------------------------------------------------------------------------
gcc -L/usr/local/lib -o motion motion.o conf.o draw.o jpegutils.o video.o video2.o video_common.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  -lz -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lavutil
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [motion] Error 1

Environment

Motion version: 3.2.11
ffmpeg version: ...ocal/src/ffmpeg/ff-mpeg-cvs-20060306-motion/ffmpegv>
Shared libraries: ffmpeg
Server OS: 2.6.26-1-ixp4xx

-- BrianDorling - 08 Mar 2009

Follow up

Fix record

It's not a bug your system has not installed good shared libraries

find /usr/lib -name libz.*
/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.3.3
/usr/lib/libz.a
/usr/lib/libz.so

probably your missed zlib1g-dev ( sudo apt-get install zlib1g-dev )

Please read the guide , it's documented which packages are needed.

-- AngelCarpintero - 09 Mar 2009

BugReportForm edit

TopicTitle Problem linking motion with ffmpeg svn
BugStatus Rejected
AssignedBugTo
SubmittedBy Main.Brian
Topic revision: r2 - 09 Mar 2009, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.