zm_mpeg Avio problem on make

Forum for questions and support relating to the 1.25.x releases only.
Locked
kudos
Posts: 28
Joined: Mon Jul 03, 2006 9:43 am

zm_mpeg Avio problem on make

Post by kudos »

Hi

tryed to make ZM 1.25.0 but got the following problem

zm_mpeg.o: In function `~VideoStream':
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:293: undefined reference to `avio_close'
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:293: undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::OpenStream()':
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:225: undefined reference to `avio_open'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.25.0'
make: *** [all] Error 2


FFmpeg made and shows ok
here is output

ffmpeg
ffmpeg version N-33711-gf524b11, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 17 2011 00:39:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


thanks, rob
kudos
Posts: 28
Joined: Mon Jul 03, 2006 9:43 am

Re: zm_mpeg Avio problem on make

Post by kudos »

have also tryed FFmpeg 0.8.5

this is a Centos 5.5 system following this guide
http://www.zoneminder.com/wiki/index.php/CentOS


but i still have the avion problem
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_zone.o -MD -MP -MF .deps/zm_zone.Tpo -c -o zm_zone.o zm_zone.cpp
mv -f .deps/zm_zone.Tpo .deps/zm_zone.Po
g++ -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_logger.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 -lavdevice -lavformat -lavcodec -lavutil -lx264 -lz -lpcre -lgnutls-openssl -lgcrypt -ldl -lpthread -ljpeg -lmysqlclient
zm_mpeg.o: In function `~VideoStream':
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:293: undefined reference to `avio_close'
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:293: undefined reference to `avio_close'
zm_mpeg.o: In function `VideoStream::OpenStream()':
/root/ZoneMinder-1.25.0/src/zm_mpeg.cpp:225: undefined reference to `avio_open'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.25.0'
make: *** [all] Error 2



ffmpeg
ffmpeg: Symbol `av_pix_fmt_descriptors' has different size in shared object, consider re-linking
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 17 2011 18:30:18 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 51. 9. 1 / 51. 21. 0
libavcodec 53. 7. 0 / 53. 20. 1
libavformat 53. 4. 0 / 53. 16. 0
libavdevice 53. 1. 1 / 53. 4. 0
libavfilter 2. 23. 0 / 2. 43. 6
libswscale 2. 0. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
kudos
Posts: 28
Joined: Mon Jul 03, 2006 9:43 am

Re: zm_mpeg Avio problem on make

Post by kudos »

i fixed this problem in the end

told git to checkout N-32260-gaebb56e for FFmpeg

did a
make clean
make distclean

then reconfig with

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS="password" CPPFLAGS="-D__STDC_CONSTANT_MACROS" --with-ffmpeg=/usr/local

and it passed the make ok,

1.25.0 is now up and running fine :)

rob
AngstHab
Posts: 7
Joined: Mon Oct 24, 2011 10:32 am

Re: zm_mpeg Avio problem on make

Post by AngstHab »

Hi
I can't use your config "
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS="password" CPPFLAGS="-D__STDC_CONSTANT_MACROS" --with-ffmpeg=/usr/local
"It's no possible to configure with "--with-webdir=/var/www/html/zm" !!

AngstHab
Locked