Re: zoneminder AXIS mpeg4 ffmpeg-libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



R. G. Newbury wrote:
On 04/20/2010 01:10 PM, users-request@xxxxxxxxxxxxxxxxxxxxxxx wrote:
  
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, I make patch for rpmbuild spec, logs after rebuild:
config.log:
ac_cv_header_ffmpeg_libavcodec_avcodec_h=yes
ac_cv_header_ffmpeg_libavformat_avformat_h=yes
ac_cv_header_ffmpeg_libavutil_avutil_h=yes
ac_cv_header_ffmpeg_libswscale_swscale_h=yes
ac_cv_header_libavcodec_avcodec_h=yes
ac_cv_header_libavformat_avformat_h=yes
ac_cv_header_libavutil_avutil_h=yes
ac_cv_header_libswscale_swscale_h=yes

status.log
D["HAVE_LIBAVUTIL_AVUTIL_H"]=" 1"
D["HAVE_FFMPEG_LIBAVUTIL_AVUTIL_H"]=" 1"
D["HAVE_LIBAVCODEC_AVCODEC_H"]=" 1"
D["HAVE_FFMPEG_LIBAVCODEC_AVCODEC_H"]=" 1"
D["HAVE_LIBAVFORMAT_AVFORMAT_H"]=" 1"
D["HAVE_FFMPEG_LIBAVFORMAT_AVFORMAT_H"]=" 1"
D["HAVE_LIBSWSCALE_SWSCALE_H"]=" 1"
D["HAVE_FFMPEG_LIBSWSCALE_SWSCALE_H"]=" 1"

but still get "You must have ffmpeg libraries installed to use remote camera protocol 'rtsp' for monitor 3"

patch:
diff -up configure.ac configure.ac
--- configure.ac        2010-04-21 13:23:30.000000000 +0300
+++ configure.ac        2010-04-21 13:25:29.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)

@@ -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,,,)

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux