Page 1 of 1
Compile Problems ZM 1.24.2 Ubuntu 9.10
Posted: Fri Nov 27, 2009 12:27 pm
by alastairroy
I am trying to compile Zone Minder 1.24.2 on Ubuntu 9.10 I issue the following command
#./configure --with-webdir=/var/www/ --with-cgidir=/var/www/cgi-bin/
and then
#make
and get the following error
zm_utils.cpp: In function âconst std::string stringtf(const char*, ...)â:
zm_utils.cpp:32: error: âvsnprintfâ was not declared in this scope
zm_utils.cpp: In function âconst std::string stringtf(const std::string&, ...)â:
zm_utils.cpp:47: error: âvsnprintfâ was not declared in this scope
make[2]: *** [zm_utils.o] Error 1
make[2]: Leaving directory `/home/al/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/al/ZoneMinder-1.24.2'
make: *** [all] Error 2
can anyone point me in the right direction ?
Posted: Fri Nov 27, 2009 3:49 pm
by thiagonuness
Hi!!! I had same problem about this when i installed my system but i need to restart the procedure using this
http://www.zoneminder.com/wiki/index.ph ... rver_32bit
Still have errors
Posted: Sat Nov 28, 2009 8:18 am
by alastairroy
Ok I have gone through various setups and tried various things and still have an error when trying to compile Zone Minder, has anyone seen this error before
zm_ffmpeg_camera.o: In function `FfmpegCamera::Capture(Image&)':
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
Posted: Fri Jan 29, 2010 3:34 am
by cschappo
alastairroy,
Did you find the solution for this problem that you mentioned? Because i'm having the same thing here.
Code: Select all
root@servidor:/usr/src/zm# make
make all-recursive
make[1]: Entrando no diretório `/usr/src/zm'
Making all in src
make[2]: Entrando no diretório `/usr/src/zm/src'
g++ -frepo -g -O2 -L/usr/lib -L/usr/lib/mysql -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_sdp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o -lz -lbz2 -lswscale -lavformat -lavcodec -lavutil -lpcre -lgnutls-openssl -ldl -lpthread -ljpeg -lmysqlclient
/usr/bin/ld: warning: libavutil.so.50, needed by /usr/local/lib/libswscale.so, may conflict with libavutil.so.49
zm_ffmpeg_camera.o: In function `FfmpegCamera::Capture(Image&)':
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[2]: ** [zmc] Erro 1
make[2]: Saindo do diretório `/usr/src/zm/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/usr/src/zm'
make: ** [all] Erro 2