FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 04-21-2010, 12:46 AM
"R. G. Newbury"
 
Default zoneminder AXIS mpeg4 ffmpeg-libraries

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."
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 04-21-2010, 10:31 AM
Nikolay Yatsyshyn
 
Default zoneminder AXIS mpeg4 ffmpeg-libraries

R. G. Newbury wrote:

On 04/20/2010 01:10 PM, users-request@lists.fedoraproject.org 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@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 04-22-2010, 07:28 AM
Nikolay Yatsyshyn
 
Default zoneminder AXIS mpeg4 ffmpeg-libraries

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(libpcr e.a may be required
for remote/network camera support))
-dnl AC_CHECK_LIB(avutil,av_malloc,,AC_MSG_WARN(libavut il.a may be
required for MPEG streaming))
-dnl AC_CHECK_LIB(avcodec,avcodec_init,,AC_MSG_WARN(lib avcodec.a is
required for MPEG streaming))
-dnl AC_CHECK_LIB(avformat,av_new_stream,,AC_MSG_WARN(l ibavformat.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(libavu til.a may be required
for MPEG streaming))
+AC_CHECK_LIB(avcodec,avcodec_init,,AC_MSG_WARN(li bavcodec.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,,,)

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 04-22-2010, 09:16 AM
Nikolay Yatsyshyn
 
Default zoneminder AXIS mpeg4 ffmpeg-libraries

I have submitted new bug with patches:
https://bugzilla.redhat.com/show_bug.cgi?id=584716
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 04:42 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org