Page 1 of 1

Build problems with Centos 5.2

Posted: Thu Feb 19, 2009 11:02 pm
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

Posted: Fri Feb 20, 2009 10:40 am
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.

Posted: Sun Feb 22, 2009 12:49 am
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