Dear,
I compiled ZM 1.24.4 (and ffmpeg) on Ubuntu 11.04 32 bits Alternate CD
I compiled according to the procedure "Ubuntu Server 10.10 32-bit with ZoneMinder 1.24.2" and using the 1.24.4 instead (see link http://www.zoneminder.com/wiki/index.ph ... oldid=4326)
I also adapted the sources according to
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
### script to edit cpp files using sed so they compile on Ubuntu 11.04
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_ffmpeg_camera.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_ffmpeg_camera.cpp
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_mpeg.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_mpeg.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_mpeg.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_mpeg.cpp
# zm_remote_camera_rtsp.cpp # change as before
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_remote_camera_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_remote_camera_rtsp.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_remote_camera_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_remote_camera_rtsp.cpp
# zm_rtsp.cpp # change as before
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_rtsp.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_rtsp.cpp
sed 's/CODEC_TYPE_/AVMEDIA_TYPE_/g' zm_sdp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_sdp.cpp
sed 's/enum CodecType/enum AVMediaType/g' zm_sdp.h > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_sdp.h
# -------------- end of script -----------------
but I cannot get the zm started and get the message:
sudo ./zoneminder start
Starting ZoneMinder: zmfix: relocation error: /usr/local/lib/libavcore.so.0: symbol av_expr_parse_and_eval, version LIBAVUTIL_50 not defined in file libavutil.so.50 with link time reference
/usr/local/bin/zmfix: relocation error: /usr/local/lib/libavcore.so.0: symbol av_expr_parse_and_eval, version LIBAVUTIL_50 not defined in file libavutil.so.50 with link time reference
failure
When looking to ffmpeg I get:
ffmpeg -codecs | grep 264
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 16 2011 14:42:31 with gcc 4.5.2
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Any idea why I got that "zmfix: relocation error" message?
PS:
1° I previously installed/deinstalled the ZM 1.24.2 via the Ubuntu Synaptics on the same machine.
2° I saw I sill have the libavutil50 installed via synaptic
3° sudo ldd `which ffmpeg`
linux-gate.so.1 => (0x00d0b000)
libavdevice.so.52 => /usr/lib/i686/cmov/libavdevice.so.52 (0x00893000)
libavfilter.so.1 => /usr/lib/i686/cmov/libavfilter.so.1 (0x003c6000)
libavformat.so.52 => /usr/lib/i686/cmov/libavformat.so.52 (0x00a4e000)
libavcodec.so.52 => /usr/lib/i686/cmov/libavcodec.so.52 (0x00d0c000)
libswscale.so.0 => /usr/lib/i686/cmov/libswscale.so.0 (0x009dc000)
libavcore.so.0 => /usr/local/lib/libavcore.so.0 (0x0053c000)
libavutil.so.50 => /usr/lib/i686/cmov/libavutil.so.50 (0x00368000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x00110000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00420000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00136000)
libdc1394.so.22 => /usr/lib/libdc1394.so.22 (0x00297000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x00c13000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0x00543000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0x00308000)
libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0x00317000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x00b36000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x0031d000)
libva.so.1 => /usr/lib/libva.so.1 (0x0032e000)
libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00400000)
libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0x0065e000)
libspeex.so.1 => /usr/lib/sse2/libspeex.so.1 (0x00bd5000)
libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0x0037c000)
libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0x00bb0000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x006ff000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x003d2000)
libvpx.so.0 => /usr/lib/libvpx.so.0 (0x0089d000)
/lib/ld-linux.so.2 (0x004bd000)
libraw1394.so.11 => /usr/lib/libraw1394.so.11 (0x00b90000)
libusb-1.0.so.0 => /lib/libusb-1.0.so.0 (0x00356000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00363000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x0040e000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0x00439000)
liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0x00937000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0x00452000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x0088c000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0x003c0000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0x003f9000)
4° tail -n 5 /var/log/syslog
Jun 16 18:21:12 mage zmpkg[27170]: ERR [Unable to run "sudo -u www-data /usr/local/bin/zmfix", output is ""]
Jun 16 18:23:23 mage zmpkg[27202]: INF [Command: start]
Jun 16 18:23:24 mage zmpkg[27202]: ERR [Unable to run "sudo -u www-data /usr/local/bin/zmfix", output is ""]
5° ls -l /usr/local/bin/zmfix
-rwsr-xr-x 1 root root 137680 2011-06-16 15:07 /usr/local/bin/zmfix
Thanks for helping
MArc