Hi,
I'm trying to test ZoneMinder and I solved some issues and I compiled correctly. But the remote IP wasn't enabled y changed the options and recompiled, but I get a non return point.
The error is:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:51:42: error: ‘sws_freeContext’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
I'm using Ubuntu 11.04 32 bit version. I followed these steps:
sudo apt-get install apache2 php5 php5-mysql
sudo apt-get install libmysqlclient-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libgnutls-dev
sudo apt-get install libdate-manip-perl
sudo apt-get install chkconfig
sudo apt-get install libpcre3-dev
sudo apt-get install libavutil-dev
sudo apt-get install libavcodec-dev
sudo apt-get install libavformat-dev
sudo apt-get install libavdevice-dev
sudo apt-get install libbz2-dev
sudo apt-get install libcrypto++-dev
sudo apt-get install libssl-dev
sudo perl -MCPAN -e shell
install Sys::Mmap Device::SerialPort Net::SFTP::Foreign Expect Archive::Zip MIME::Lite MIME::Entity X10::ActiveHome
exit
cd /etc/apache2/mods-enabled
sudo ln -sf ../mods-available/php5.* .
sudo service apache restart
cd /opt/ZoneMinder
sudo ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}" ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --enable-debug=no
Error compiling: sws_freeContext was not declared in this sc
Re: Error compiling: sws_freeContext was not declared in thi
SOLVED.
Missing libswscale.
I added doing sudo apt-get install libswscale-dev
Missing libswscale.
I added doing sudo apt-get install libswscale-dev
Re: Error compiling: sws_freeContext was not declared in thi
How your do it?
Re: Error compiling: sws_freeContext was not declared in thi
sapsan wrote:How your do it?



The problem was solved installing the proper library. The command is sudo apt-get install libswscale-dev