On 04/20/2010 01:10 PM, users-request@lists.fedoraproject.org wrote:
Date: Tue, 20 Apr 2010 19:59:55 +0300 From: Nikolay Yatsyshyn koffua@gmail.com Subject: Re: zoneminder AXIS mpeg4 ffmpeg-libraries
Nothing about. I think issue is going from: configure:10445: checking libavutil/avutil.h usability configure:10462: g++ -c -O2 -g -march=i386 -mtune=i686 -Iyes/include conftest.cpp>&5 conftest.cpp:128:30: error: libavutil/avutil.h: No such file or directory
I tried to solve dependences manually, ./configure found all it need, but I still get in logs:
FAT [You must have ffmpeg libraries installed to use remote camera protocol 'rtsp' for monitor 3]
Clearly there is a problem with the includes. Either avutil.h is not installed at all, or it is installed somewhere else. If it is installed, but somewhere else, you have two choices: make a symlink at ../libavutil/avutil.h pointing back to whereever the file actually is, or find the source.c file which is looking for avutil.h (using grep) and fix the include call to #include=avutil.h or /ffmpeg/avutil.h or whatever. If it is not installed something has gone very wrong!
And could you please take the time to trim your posts..please?
Geoff
Tux says: "Be regular. Eat cron flakes."
So, thank you very much for help, I have fixed this issue!
The problem was in configure.ac. Now I have worked zm installation with mpeg4 via RTSP from AXIS camera. I'm include a patch to message, it fix incorrect headers path and enable ffmpeg libraries. Depencies you need to install manualy, nothing custom "make install" would be.
SPECS/zoneminder.spec
1. add to ./configure section --with-ffmpeg \ --with-extralibs="`pkg-config --libs libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale`" \
2. add Patch12: zoneminder-1.24.2-ffmpeglibs.patch 3. add %patch12 -p0 -b .ffmpeglibs
zoneminder-1.24.2-ffmpeglibs.patch:
diff -up configure.ac configure.ac --- configure.ac 2010-04-22 10:09:29.000000000 +0300 +++ configure.ac 2010-04-22 10:10:24.000000000 +0300 @@ -74,8 +74,8 @@ AC_ARG_WITH(ffmpeg, e.g. --with-ffmpeg=/usr/local]) ) AC_SUBST(FFMPEG_PREFIX) -FFMPEG_LIBS="-L${FFMPEG_PREFIX}/${LIB_ARCH}" -FFMPEG_CFLAGS="-I${FFMPEG_PREFIX}/include" +FFMPEG_LIBS=`pkg-config --libs libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale` +FFMPEG_CFLAGS=`pkg-config --cflags libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale` AC_SUBST(FFMPEG_LIBS) AC_SUBST(FFMPEG_CFLAGS)
@@ -244,10 +244,10 @@ else AC_CHECK_LIB(gnutls-openssl,MD5,,AC_MSG_WARN([gnutls-openssl.a is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead])) fi AC_CHECK_LIB(pcre,pcre_compile,,AC_MSG_WARN(libpcre.a may be required for remote/network camera support)) -dnl AC_CHECK_LIB(avutil,av_malloc,,AC_MSG_WARN(libavutil.a may be required for MPEG streaming)) -dnl AC_CHECK_LIB(avcodec,avcodec_init,,AC_MSG_WARN(libavcodec.a is required for MPEG streaming)) -dnl AC_CHECK_LIB(avformat,av_new_stream,,AC_MSG_WARN(libavformat.a is required for MPEG streaming),[-lavcodec -lavutil]) -dnl AC_CHECK_LIB(swscale,sws_scale,,,-lswscale) +AC_CHECK_LIB(avutil,av_malloc,,AC_MSG_WARN(libavutil.a may be required for MPEG streaming)) +AC_CHECK_LIB(avcodec,avcodec_init,,AC_MSG_WARN(libavcodec.a is required for MPEG streaming)) +AC_CHECK_LIB(avformat,av_new_stream,,AC_MSG_WARN(libavformat.a is required for MPEG streaming),[-lavcodec -lavutil]) +AC_CHECK_LIB(swscale,sws_scale,,,-lswscale) AC_CHECK_LIB(bz2,BZ2_bzCompress,,AC_MSG_WARN(zm requires libbz2.a for recent versions of ffmpeg)) AC_CHECK_LIB(z,compress,,)
@@ -259,14 +259,13 @@ AC_CHECK_HEADERS(linux/videodev.h,,AC_MS AC_CHECK_HEADERS(linux/videodev2.h,AC_SUBST(ZM_V4L2,"1"),AC_MSG_WARN(zm requires Video4Linux2 to be installed for V4L2 support),) AC_CHECK_HEADERS(mysql/mysql.h,,AC_MSG_ERROR(zm requires MySQL headers - check that MySQL development packages are installed),) AC_CHECK_HEADERS(libavutil/avutil.h,,,) -AC_CHECK_HEADERS(ffmpeg/avutil.h,,,) +AC_CHECK_HEADERS(ffmpeg/libavutil/avutil.h,,,) AC_CHECK_HEADERS(libavcodec/avcodec.h,,,) -AC_CHECK_HEADERS(ffmpeg/avcodec.h,,,) +AC_CHECK_HEADERS(ffmpeg/libavcodec/avcodec.h,,,) AC_CHECK_HEADERS(libavformat/avformat.h,,,) -AC_CHECK_HEADERS(ffmpeg/avformat.h,,,) +AC_CHECK_HEADERS(ffmpeg/libavformat/avformat.h,,,) AC_CHECK_HEADERS(libswscale/swscale.h,,,) -AC_CHECK_HEADERS(ffmpeg/swscale.h,,,) -AC_CHECK_HEADERS(pcre/pcre.h,AC_SUBST(ZM_PCRE,"1"),,) +AC_CHECK_HEADERS(ffmpeg/libswscale/swscale.h,,,) AC_CHECK_HEADERS(pcre.h,AC_SUBST(ZM_PCRE,"1"),,) if test "$ENABLE_MMAP" = "yes"; then AC_CHECK_HEADERS(sys/mman.h,,,)
I have submitted new bug with patches: https://bugzilla.redhat.com/show_bug.cgi?id=584716