Forum for questions and support relating to the 1.24.x releases only.
k3v1npme
Posts: 5 Joined: Thu Jun 11, 2009 12:00 am
Post
by k3v1npme » Thu Jun 11, 2009 12:20 am
Anyone know what might be causeing this make error. I uninstalled 2.23 of zoneminder and ffmpeg that was installed with apt-get. Downloaded the latest zoneminder 2.24.1 and ffmpeg with svn.
Thanks for any help.
Code: Select all
make
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
make all-recursive
make[1]: Entering directory `/usr/src/zm'
Making all in src
make[2]: Entering directory `/usr/src/zm/src'
cd .. && /bin/bash ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/usr/src/zm/src'
make[2]: Entering directory `/usr/src/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_box.o -MD -MP -MF ".deps/zm_box.Tpo" -c -o zm_box.o zm_box.cpp; \
then mv -f ".deps/zm_box.Tpo" ".deps/zm_box.Po"; else rm -f ".deps/zm_box.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF ".deps/zm_buffer.Tpo" -c -o zm_buffer.o zm_buffer.cpp; \
then mv -f ".deps/zm_buffer.Tpo" ".deps/zm_buffer.Po"; else rm -f ".deps/zm_buffer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.cpp; \
then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_comms.o -MD -MP -MF ".deps/zm_comms.Tpo" -c -o zm_comms.o zm_comms.cpp; \
then mv -f ".deps/zm_comms.Tpo" ".deps/zm_comms.Po"; else rm -f ".deps/zm_comms.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" -c -o zm_config.o zm_config.cpp; \
then mv -f ".deps/zm_config.Tpo" ".deps/zm_config.Po"; else rm -f ".deps/zm_config.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_coord.o -MD -MP -MF ".deps/zm_coord.Tpo" -c -o zm_coord.o zm_coord.cpp; \
then mv -f ".deps/zm_coord.Tpo" ".deps/zm_coord.Po"; else rm -f ".deps/zm_coord.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm.o -MD -MP -MF ".deps/zm.Tpo" -c -o zm.o zm.cpp; \
then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_db.o -MD -MP -MF ".deps/zm_db.Tpo" -c -o zm_db.o zm_db.cpp; \
then mv -f ".deps/zm_db.Tpo" ".deps/zm_db.Po"; else rm -f ".deps/zm_db.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -I/usr/include -MT zm_debug.o -MD -MP -MF ".deps/zm_debug.Tpo" -c -o zm_debug.o zm_debug.c; \
then mv -f ".deps/zm_debug.Tpo" ".deps/zm_debug.Po"; else rm -f ".deps/zm_debug.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_exception.o -MD -MP -MF ".deps/zm_exception.Tpo" -c -o zm_exception.o zm_exception.cpp; \
then mv -f ".deps/zm_exception.Tpo" ".deps/zm_exception.Po"; else rm -f ".deps/zm_exception.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF ".deps/zm_file_camera.Tpo" -c -o zm_file_camera.o zm_file_camera.cpp; \
then mv -f ".deps/zm_file_camera.Tpo" ".deps/zm_file_camera.Po"; else rm -f ".deps/zm_file_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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; \
then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:151: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
zm_ffmpeg_camera.cpp:151: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_image.o -MD -MP -MF ".deps/zm_image.Tpo" -c -o zm_image.o zm_image.cpp; \
then mv -f ".deps/zm_image.Tpo" ".deps/zm_image.Po"; else rm -f ".deps/zm_image.Tpo"; exit 1; fi
zm_image.cpp: In member function âvoid Image::Blend(const Image&, int) constâ:
zm_image.cpp:779: warning: operation on âpdestâ may be undefined
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -I/usr/include -MT zm_jpeg.o -MD -MP -MF ".deps/zm_jpeg.Tpo" -c -o zm_jpeg.o zm_jpeg.c; \
then mv -f ".deps/zm_jpeg.Tpo" ".deps/zm_jpeg.Po"; else rm -f ".deps/zm_jpeg.Tpo"; exit 1; fi
zm_jpeg.c: In function âzm_jpeg_error_exitâ:
zm_jpeg.c:42: warning: implicit declaration of function âexitâ
zm_jpeg.c:42: warning: incompatible implicit declaration of built-in function âexitâ
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF ".deps/zm_local_camera.Tpo" -c -o zm_local_camera.o zm_local_camera.cpp; \
then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF ".deps/zm_monitor.Tpo" -c -o zm_monitor.o zm_monitor.cpp; \
then mv -f ".deps/zm_monitor.Tpo" ".deps/zm_monitor.Po"; else rm -f ".deps/zm_monitor.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_ffmpeg.o -MD -MP -MF ".deps/zm_ffmpeg.Tpo" -c -o zm_ffmpeg.o zm_ffmpeg.cpp; \
then mv -f ".deps/zm_ffmpeg.Tpo" ".deps/zm_ffmpeg.Po"; else rm -f ".deps/zm_ffmpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_poly.o -MD -MP -MF ".deps/zm_poly.Tpo" -c -o zm_poly.o zm_poly.cpp; \
then mv -f ".deps/zm_poly.Tpo" ".deps/zm_poly.Po"; else rm -f ".deps/zm_poly.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_regexp.o -MD -MP -MF ".deps/zm_regexp.Tpo" -c -o zm_regexp.o zm_regexp.cpp; \
then mv -f ".deps/zm_regexp.Tpo" ".deps/zm_regexp.Po"; else rm -f ".deps/zm_regexp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera.o -MD -MP -MF ".deps/zm_remote_camera.Tpo" -c -o zm_remote_camera.o zm_remote_camera.cpp; \
then mv -f ".deps/zm_remote_camera.Tpo" ".deps/zm_remote_camera.Po"; else rm -f ".deps/zm_remote_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera_http.o -MD -MP -MF ".deps/zm_remote_camera_http.Tpo" -c -o zm_remote_camera_http.o zm_remote_camera_http.cpp; \
then mv -f ".deps/zm_remote_camera_http.Tpo" ".deps/zm_remote_camera_http.Po"; else rm -f ".deps/zm_remote_camera_http.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera_rtsp.o -MD -MP -MF ".deps/zm_remote_camera_rtsp.Tpo" -c -o zm_remote_camera_rtsp.o zm_remote_camera_rtsp.cpp; \
then mv -f ".deps/zm_remote_camera_rtsp.Tpo" ".deps/zm_remote_camera_rtsp.Po"; else rm -f ".deps/zm_remote_camera_rtsp.Tpo"; exit 1; fi
zm_remote_camera_rtsp.cpp: In member function âvirtual int RemoteCameraRtsp::Capture(Image&)â:
zm_remote_camera_rtsp.cpp:208: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
zm_remote_camera_rtsp.cpp:208: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp.o -MD -MP -MF ".deps/zm_rtp.Tpo" -c -o zm_rtp.o zm_rtp.cpp; \
then mv -f ".deps/zm_rtp.Tpo" ".deps/zm_rtp.Po"; else rm -f ".deps/zm_rtp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_ctrl.o -MD -MP -MF ".deps/zm_rtp_ctrl.Tpo" -c -o zm_rtp_ctrl.o zm_rtp_ctrl.cpp; \
then mv -f ".deps/zm_rtp_ctrl.Tpo" ".deps/zm_rtp_ctrl.Po"; else rm -f ".deps/zm_rtp_ctrl.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_data.o -MD -MP -MF ".deps/zm_rtp_data.Tpo" -c -o zm_rtp_data.o zm_rtp_data.cpp; \
then mv -f ".deps/zm_rtp_data.Tpo" ".deps/zm_rtp_data.Po"; else rm -f ".deps/zm_rtp_data.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_source.o -MD -MP -MF ".deps/zm_rtp_source.Tpo" -c -o zm_rtp_source.o zm_rtp_source.cpp; \
then mv -f ".deps/zm_rtp_source.Tpo" ".deps/zm_rtp_source.Po"; else rm -f ".deps/zm_rtp_source.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtsp.o -MD -MP -MF ".deps/zm_rtsp.Tpo" -c -o zm_rtsp.o zm_rtsp.cpp; \
then mv -f ".deps/zm_rtsp.Tpo" ".deps/zm_rtsp.Po"; else rm -f ".deps/zm_rtsp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_sdp.o -MD -MP -MF ".deps/zm_sdp.Tpo" -c -o zm_sdp.o zm_sdp.cpp; \
then mv -f ".deps/zm_sdp.Tpo" ".deps/zm_sdp.Po"; else rm -f ".deps/zm_sdp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_signal.o -MD -MP -MF ".deps/zm_signal.Tpo" -c -o zm_signal.o zm_signal.cpp; \
then mv -f ".deps/zm_signal.Tpo" ".deps/zm_signal.Po"; else rm -f ".deps/zm_signal.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_stream.o -MD -MP -MF ".deps/zm_stream.Tpo" -c -o zm_stream.o zm_stream.cpp; \
then mv -f ".deps/zm_stream.Tpo" ".deps/zm_stream.Po"; else rm -f ".deps/zm_stream.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_thread.o -MD -MP -MF ".deps/zm_thread.Tpo" -c -o zm_thread.o zm_thread.cpp; \
then mv -f ".deps/zm_thread.Tpo" ".deps/zm_thread.Po"; else rm -f ".deps/zm_thread.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_time.o -MD -MP -MF ".deps/zm_time.Tpo" -c -o zm_time.o zm_time.cpp; \
then mv -f ".deps/zm_time.Tpo" ".deps/zm_time.Po"; else rm -f ".deps/zm_time.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_timer.o -MD -MP -MF ".deps/zm_timer.Tpo" -c -o zm_timer.o zm_timer.cpp; \
then mv -f ".deps/zm_timer.Tpo" ".deps/zm_timer.Po"; else rm -f ".deps/zm_timer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_user.o -MD -MP -MF ".deps/zm_user.Tpo" -c -o zm_user.o zm_user.cpp; \
then mv -f ".deps/zm_user.Tpo" ".deps/zm_user.Po"; else rm -f ".deps/zm_user.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_utils.o -MD -MP -MF ".deps/zm_utils.Tpo" -c -o zm_utils.o zm_utils.cpp; \
then mv -f ".deps/zm_utils.Tpo" ".deps/zm_utils.Po"; else rm -f ".deps/zm_utils.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_zone.o -MD -MP -MF ".deps/zm_zone.Tpo" -c -o zm_zone.o zm_zone.cpp; \
then mv -f ".deps/zm_zone.Tpo" ".deps/zm_zone.Po"; else rm -f ".deps/zm_zone.Tpo"; exit 1; fi
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 -lgnutls-openssl -ldl -lpthread -ljpeg -lmysqlclient
collect: recompiling zm_utils.cpp
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_thread.cpp
collect: recompiling zm_rtp_source.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_local_camera.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: relinking
/usr/bin/ld: warning: libavutil.so.50, needed by /usr/local/lib/libswscale.so, may conflict with libavutil.so.1d
zm_ffmpeg_camera.o: In function `FfmpegCamera::Capture(Image&)':
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
/usr/src/zm/src/zm_mpeg.cpp:362: undefined reference to `av_init_packet'
/usr/src/zm/src/zm_mpeg.cpp:341: undefined reference to `av_init_packet'
zm_sdp.o: In function `SessionDescriptor::generateFormatContext() const':
/usr/src/zm/src/zm_sdp.cpp:290: undefined reference to `avformat_alloc_context'
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
cordel
Posts: 5210 Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Post
by cordel » Thu Jun 11, 2009 3:59 am
/usr/bin/ld: warning: libavutil.so.50, needed by /usr/local/lib/libswscale.so, may conflict with libavutil.so.1d
Looks like you have an old bit of ffmpeg laying about.
k3v1npme
Posts: 5 Joined: Thu Jun 11, 2009 12:00 am
Post
by k3v1npme » Thu Jun 11, 2009 2:36 pm
So, me not knowing much about ffmpeg or source files, what exactly is the old bit and how would I go about properly removing it? Below are what I believe to be a list of relevant files in this situation.
btw, thanks so much for the assistance.
Code: Select all
root@computer:/usr/lib# ls libavutil* -la
-rw-r--r-- 1 root root 38122 2009-03-16 15:16 libavutil.a
lrwxrwxrwx 1 root root 15 2009-06-09 07:32 libavutil.so -> libavutil.so.1d
lrwxrwxrwx 1 root root 22 2009-03-29 20:36 libavutil.so.1d -> libavutil.so.1d.49.3.0
-rw-r--r-- 1 root root 27744 2009-03-16 15:16 libavutil.so.1d.49.3.0
root@computer:/usr/lib# ls /usr/local/lib/ -la
total 35924
drwxr-xr-x 4 root root 4096 2009-06-10 16:46 .
drwxr-xr-x 12 root root 4096 2009-05-02 20:36 ..
-rw-r--r-- 1 root root 21543244 2009-06-10 16:46 libavcodec.a
lrwxrwxrwx 1 root root 21 2009-06-10 16:46 libavcodec.so -> libavcodec.so.52.30.2
lrwxrwxrwx 1 root root 21 2009-06-10 16:46 libavcodec.so.52 -> libavcodec.so.52.30.2
-rwxr-xr-x 1 root root 4998708 2009-06-10 16:46 libavcodec.so.52.30.2
-rw-r--r-- 1 root root 232254 2009-06-10 16:46 libavdevice.a
lrwxrwxrwx 1 root root 21 2009-06-10 16:46 libavdevice.so -> libavdevice.so.52.2.0
lrwxrwxrwx 1 root root 21 2009-06-10 16:46 libavdevice.so.52 -> libavdevice.so.52.2.0
-rwxr-xr-x 1 root root 23500 2009-06-10 16:46 libavdevice.so.52.2.0
-rw-r--r-- 1 root root 7000654 2009-06-10 16:46 libavformat.a
lrwxrwxrwx 1 root root 22 2009-06-10 16:46 libavformat.so -> libavformat.so.52.34.0
lrwxrwxrwx 1 root root 22 2009-06-10 16:46 libavformat.so.52 -> libavformat.so.52.34.0
-rwxr-xr-x 1 root root 726612 2009-06-10 16:46 libavformat.so.52.34.0
-rw-r--r-- 1 root root 209132 2009-06-10 16:46 libavutil.a
lrwxrwxrwx 1 root root 19 2009-06-10 16:46 libavutil.so -> libavutil.so.50.3.0
lrwxrwxrwx 1 root root 19 2009-06-10 16:46 libavutil.so.50 -> libavutil.so.50.3.0
-rwxr-xr-x 1 root root 55932 2009-06-10 16:46 libavutil.so.50.3.0
-rw-r--r-- 1 root root 591516 2009-06-10 16:46 libswscale.a
lrwxrwxrwx 1 root root 19 2009-06-10 16:46 libswscale.so -> libswscale.so.0.7.1
lrwxrwxrwx 1 root root 19 2009-06-10 16:46 libswscale.so.0 -> libswscale.so.0.7.1
-rwxr-xr-x 1 root root 250368 2009-06-10 16:46 libswscale.so.0.7.1
drwxr-xr-x 2 root root 4096 2009-06-10 16:45 pkgconfig
drwxrwsr-x 3 root staff 4096 2008-08-04 01:06 python2.5
root@computer:/usr/lib#
k3v1npme
Posts: 5 Joined: Thu Jun 11, 2009 12:00 am
Post
by k3v1npme » Fri Jun 12, 2009 4:27 pm
Figured it out. I removed the following file and it built and installed. Now just to figure out some of the configuration issues.
Code: Select all
lrwxrwxrwx 1 root root 22 2009-03-29 20:36 libavutil.so.1d -> libavutil.so.1d.49.3.0
xpert
Posts: 1 Joined: Sun Aug 23, 2009 6:41 pm
Post
by xpert » Sun Aug 23, 2009 6:53 pm
k3v1npme wrote: Anyone know what might be causeing this make error. I uninstalled 2.23 of zoneminder and ffmpeg that was installed with apt-get. Downloaded the latest zoneminder 2.24.1 and ffmpeg with svn.
Thanks for any help.
Code: Select all
make
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
make all-recursive
make[1]: Entering directory `/usr/src/zm'
Making all in src
make[2]: Entering directory `/usr/src/zm/src'
cd .. && /bin/bash ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/usr/src/zm/src'
make[2]: Entering directory `/usr/src/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_box.o -MD -MP -MF ".deps/zm_box.Tpo" -c -o zm_box.o zm_box.cpp; \
then mv -f ".deps/zm_box.Tpo" ".deps/zm_box.Po"; else rm -f ".deps/zm_box.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF ".deps/zm_buffer.Tpo" -c -o zm_buffer.o zm_buffer.cpp; \
then mv -f ".deps/zm_buffer.Tpo" ".deps/zm_buffer.Po"; else rm -f ".deps/zm_buffer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.cpp; \
then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_comms.o -MD -MP -MF ".deps/zm_comms.Tpo" -c -o zm_comms.o zm_comms.cpp; \
then mv -f ".deps/zm_comms.Tpo" ".deps/zm_comms.Po"; else rm -f ".deps/zm_comms.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" -c -o zm_config.o zm_config.cpp; \
then mv -f ".deps/zm_config.Tpo" ".deps/zm_config.Po"; else rm -f ".deps/zm_config.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_coord.o -MD -MP -MF ".deps/zm_coord.Tpo" -c -o zm_coord.o zm_coord.cpp; \
then mv -f ".deps/zm_coord.Tpo" ".deps/zm_coord.Po"; else rm -f ".deps/zm_coord.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm.o -MD -MP -MF ".deps/zm.Tpo" -c -o zm.o zm.cpp; \
then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_db.o -MD -MP -MF ".deps/zm_db.Tpo" -c -o zm_db.o zm_db.cpp; \
then mv -f ".deps/zm_db.Tpo" ".deps/zm_db.Po"; else rm -f ".deps/zm_db.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -I/usr/include -MT zm_debug.o -MD -MP -MF ".deps/zm_debug.Tpo" -c -o zm_debug.o zm_debug.c; \
then mv -f ".deps/zm_debug.Tpo" ".deps/zm_debug.Po"; else rm -f ".deps/zm_debug.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_exception.o -MD -MP -MF ".deps/zm_exception.Tpo" -c -o zm_exception.o zm_exception.cpp; \
then mv -f ".deps/zm_exception.Tpo" ".deps/zm_exception.Po"; else rm -f ".deps/zm_exception.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF ".deps/zm_file_camera.Tpo" -c -o zm_file_camera.o zm_file_camera.cpp; \
then mv -f ".deps/zm_file_camera.Tpo" ".deps/zm_file_camera.Po"; else rm -f ".deps/zm_file_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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; \
then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:151: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
zm_ffmpeg_camera.cpp:151: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_image.o -MD -MP -MF ".deps/zm_image.Tpo" -c -o zm_image.o zm_image.cpp; \
then mv -f ".deps/zm_image.Tpo" ".deps/zm_image.Po"; else rm -f ".deps/zm_image.Tpo"; exit 1; fi
zm_image.cpp: In member function âvoid Image::Blend(const Image&, int) constâ:
zm_image.cpp:779: warning: operation on âpdestâ may be undefined
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -I/usr/include -MT zm_jpeg.o -MD -MP -MF ".deps/zm_jpeg.Tpo" -c -o zm_jpeg.o zm_jpeg.c; \
then mv -f ".deps/zm_jpeg.Tpo" ".deps/zm_jpeg.Po"; else rm -f ".deps/zm_jpeg.Tpo"; exit 1; fi
zm_jpeg.c: In function âzm_jpeg_error_exitâ:
zm_jpeg.c:42: warning: implicit declaration of function âexitâ
zm_jpeg.c:42: warning: incompatible implicit declaration of built-in function âexitâ
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF ".deps/zm_local_camera.Tpo" -c -o zm_local_camera.o zm_local_camera.cpp; \
then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF ".deps/zm_monitor.Tpo" -c -o zm_monitor.o zm_monitor.cpp; \
then mv -f ".deps/zm_monitor.Tpo" ".deps/zm_monitor.Po"; else rm -f ".deps/zm_monitor.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_ffmpeg.o -MD -MP -MF ".deps/zm_ffmpeg.Tpo" -c -o zm_ffmpeg.o zm_ffmpeg.cpp; \
then mv -f ".deps/zm_ffmpeg.Tpo" ".deps/zm_ffmpeg.Po"; else rm -f ".deps/zm_ffmpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_poly.o -MD -MP -MF ".deps/zm_poly.Tpo" -c -o zm_poly.o zm_poly.cpp; \
then mv -f ".deps/zm_poly.Tpo" ".deps/zm_poly.Po"; else rm -f ".deps/zm_poly.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_regexp.o -MD -MP -MF ".deps/zm_regexp.Tpo" -c -o zm_regexp.o zm_regexp.cpp; \
then mv -f ".deps/zm_regexp.Tpo" ".deps/zm_regexp.Po"; else rm -f ".deps/zm_regexp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera.o -MD -MP -MF ".deps/zm_remote_camera.Tpo" -c -o zm_remote_camera.o zm_remote_camera.cpp; \
then mv -f ".deps/zm_remote_camera.Tpo" ".deps/zm_remote_camera.Po"; else rm -f ".deps/zm_remote_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera_http.o -MD -MP -MF ".deps/zm_remote_camera_http.Tpo" -c -o zm_remote_camera_http.o zm_remote_camera_http.cpp; \
then mv -f ".deps/zm_remote_camera_http.Tpo" ".deps/zm_remote_camera_http.Po"; else rm -f ".deps/zm_remote_camera_http.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera_rtsp.o -MD -MP -MF ".deps/zm_remote_camera_rtsp.Tpo" -c -o zm_remote_camera_rtsp.o zm_remote_camera_rtsp.cpp; \
then mv -f ".deps/zm_remote_camera_rtsp.Tpo" ".deps/zm_remote_camera_rtsp.Po"; else rm -f ".deps/zm_remote_camera_rtsp.Tpo"; exit 1; fi
zm_remote_camera_rtsp.cpp: In member function âvirtual int RemoteCameraRtsp::Capture(Image&)â:
zm_remote_camera_rtsp.cpp:208: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
zm_remote_camera_rtsp.cpp:208: warning: âavcodec_decode_videoâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3253)
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp.o -MD -MP -MF ".deps/zm_rtp.Tpo" -c -o zm_rtp.o zm_rtp.cpp; \
then mv -f ".deps/zm_rtp.Tpo" ".deps/zm_rtp.Po"; else rm -f ".deps/zm_rtp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_ctrl.o -MD -MP -MF ".deps/zm_rtp_ctrl.Tpo" -c -o zm_rtp_ctrl.o zm_rtp_ctrl.cpp; \
then mv -f ".deps/zm_rtp_ctrl.Tpo" ".deps/zm_rtp_ctrl.Po"; else rm -f ".deps/zm_rtp_ctrl.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_data.o -MD -MP -MF ".deps/zm_rtp_data.Tpo" -c -o zm_rtp_data.o zm_rtp_data.cpp; \
then mv -f ".deps/zm_rtp_data.Tpo" ".deps/zm_rtp_data.Po"; else rm -f ".deps/zm_rtp_data.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtp_source.o -MD -MP -MF ".deps/zm_rtp_source.Tpo" -c -o zm_rtp_source.o zm_rtp_source.cpp; \
then mv -f ".deps/zm_rtp_source.Tpo" ".deps/zm_rtp_source.Po"; else rm -f ".deps/zm_rtp_source.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_rtsp.o -MD -MP -MF ".deps/zm_rtsp.Tpo" -c -o zm_rtsp.o zm_rtsp.cpp; \
then mv -f ".deps/zm_rtsp.Tpo" ".deps/zm_rtsp.Po"; else rm -f ".deps/zm_rtsp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_sdp.o -MD -MP -MF ".deps/zm_sdp.Tpo" -c -o zm_sdp.o zm_sdp.cpp; \
then mv -f ".deps/zm_sdp.Tpo" ".deps/zm_sdp.Po"; else rm -f ".deps/zm_sdp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_signal.o -MD -MP -MF ".deps/zm_signal.Tpo" -c -o zm_signal.o zm_signal.cpp; \
then mv -f ".deps/zm_signal.Tpo" ".deps/zm_signal.Po"; else rm -f ".deps/zm_signal.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_stream.o -MD -MP -MF ".deps/zm_stream.Tpo" -c -o zm_stream.o zm_stream.cpp; \
then mv -f ".deps/zm_stream.Tpo" ".deps/zm_stream.Po"; else rm -f ".deps/zm_stream.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_thread.o -MD -MP -MF ".deps/zm_thread.Tpo" -c -o zm_thread.o zm_thread.cpp; \
then mv -f ".deps/zm_thread.Tpo" ".deps/zm_thread.Po"; else rm -f ".deps/zm_thread.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_time.o -MD -MP -MF ".deps/zm_time.Tpo" -c -o zm_time.o zm_time.cpp; \
then mv -f ".deps/zm_time.Tpo" ".deps/zm_time.Po"; else rm -f ".deps/zm_time.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_timer.o -MD -MP -MF ".deps/zm_timer.Tpo" -c -o zm_timer.o zm_timer.cpp; \
then mv -f ".deps/zm_timer.Tpo" ".deps/zm_timer.Po"; else rm -f ".deps/zm_timer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_user.o -MD -MP -MF ".deps/zm_user.Tpo" -c -o zm_user.o zm_user.cpp; \
then mv -f ".deps/zm_user.Tpo" ".deps/zm_user.Po"; else rm -f ".deps/zm_user.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_utils.o -MD -MP -MF ".deps/zm_utils.Tpo" -c -o zm_utils.o zm_utils.cpp; \
then mv -f ".deps/zm_utils.Tpo" ".deps/zm_utils.Po"; else rm -f ".deps/zm_utils.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_zone.o -MD -MP -MF ".deps/zm_zone.Tpo" -c -o zm_zone.o zm_zone.cpp; \
then mv -f ".deps/zm_zone.Tpo" ".deps/zm_zone.Po"; else rm -f ".deps/zm_zone.Tpo"; exit 1; fi
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 -lgnutls-openssl -ldl -lpthread -ljpeg -lmysqlclient
collect: recompiling zm_utils.cpp
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_thread.cpp
collect: recompiling zm_rtp_source.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_local_camera.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_sdp.cpp
collect: relinking
/usr/bin/ld: warning: libavutil.so.50, needed by /usr/local/lib/libswscale.so, may conflict with libavutil.so.1d
zm_ffmpeg_camera.o: In function `FfmpegCamera::Capture(Image&)':
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
/usr/src/zm/src/zm_ffmpeg_camera.cpp:172: undefined reference to `av_free_packet'
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
/usr/src/zm/src/zm_mpeg.cpp:362: undefined reference to `av_init_packet'
/usr/src/zm/src/zm_mpeg.cpp:341: undefined reference to `av_init_packet'
zm_sdp.o: In function `SessionDescriptor::generateFormatContext() const':
/usr/src/zm/src/zm_sdp.cpp:290: undefined reference to `avformat_alloc_context'
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
ac
i had the same problem and i was stuck with the same problem i got to solve it by first updating my deps and then compiling by adding the given code in the file zm_ffmepeg_camera.cpp
1. update ur dependancies
Code: Select all
aptitude install apache2 php5-mysql libapache2-mod-php5 mysql-server libmysqlclient15-dev libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libjpeg62 libjpeg62-dev libmime-perl libstdc++6 libwww-perl zlib1g zip unzip patch ntp openssl libpcre3-dev libssl-dev libjpeg-progs libcurl4-gnutls-dev munin munin-node libmime-lite-perl netpbm libbz2-dev subversion libavformat-dev libswscale-dev libavcodec-dev
then add the following code at the end of the src/zm_ffmpeg_camera.cpp
Code: Select all
void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}
}