Build problems with Centos 5.2

Forum for questions and support relating to the 1.24.x releases only.
Locked
mycal
Posts: 65
Joined: Tue Nov 09, 2004 6:39 am

Build problems with Centos 5.2

Post by mycal »

I'm getting the following scope error

Code: Select all

zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:125: error: ‘SWS_BICUBIC’ was not declared in this scope
zm_ffmpeg_camera.cpp:125: error: ‘sws_getCachedContext’ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::Capture(Image&)’:
zm_ffmpeg_camera.cpp:156: error: ‘sws_scale’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/zoneminder_install/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zoneminder_install/ZoneMinder-1.24.0'
make: *** [all] Error 2
I've seem other people with similar errors, I've tried the top of tree ffmpeg and

Code: Select all

svn checkout -r 17338 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
configure for ffmpeg ./configure --enable-swscale --enable-gpl

Should I be using a specific version of ffmpeg?

Anything else I should look at?

Mycal

PS no ccache installed
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

When you ran configure for ZM do you know if it found the swscale headers and libraries? It should say in config.log if you are not sure.
Phil
mycal
Posts: 65
Joined: Tue Nov 09, 2004 6:39 am

Post by mycal »

Your right it's not finding it. For some reason that paths are screwed up. I'm getting

-I/usr/loca/bin ...

dropping the l in local.

Trying to find out why now.

darn, now that I edited the file I cannot reproduce, everything working. I'll try unpacking the file again and see if it comes back and let you know.

Thanks

-M
Locked