Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zoneminder emerge fails on ffmpeg [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 391
Location: Stockholm, Sweden

PostPosted: Sun Jan 23, 2011 6:19 pm    Post subject: zoneminder emerge fails on ffmpeg [Solved] Reply with quote

If I select the ffmpeg use flag, in order to compile in support for ffmpeg into zoneminder, I get the following errors. (Missing header files, afaict)

Code:
Making all in src
make[2]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2/src'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -O2 -march=i686 -pipe -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_mpeg.h:23,
                 from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
In file included from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_mpeg.h:43: error: use of enum 'PixelFormat' without previous declaration
zm_mpeg.h:44: error: ISO C++ forbids declaration of 'AVOutputFormat' with no type
zm_mpeg.h:44: error: expected ';' before '*' token
zm_mpeg.h:45: error: ISO C++ forbids declaration of 'AVFormatContext' with no type
zm_mpeg.h:45: error: expected ';' before '*' token
zm_mpeg.h:46: error: ISO C++ forbids declaration of 'AVStream' with no type
zm_mpeg.h:46: error: expected ';' before '*' token
zm_mpeg.h:47: error: ISO C++ forbids declaration of 'AVFrame' with no type
zm_mpeg.h:47: error: expected ';' before '*' token
zm_mpeg.h:48: error: ISO C++ forbids declaration of 'AVFrame' with no type
zm_mpeg.h:48: error: expected ';' before '*' token
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2'
make: *** [all] Error 2
emake failed
 * ERROR: www-misc/zoneminder-1.24.2 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3613:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.24.2',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.24.2'.
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2'


Is this because the current ffmpeg (I am at 0.6_p25767) has changed, not having these include files anymore, or is there something missing in my installation?
It seams, that there's no avutils.h nor swscale.h on my system.. :(


Last edited by vespaman on Sun Jan 23, 2011 10:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Jan 23, 2011 6:24 pm    Post subject: Reply with quote

Check your config.log (if that package uses it).
You should look i.e. in /usr/include/libswscale.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Sun Jan 23, 2011 7:32 pm    Post subject: Reply with quote

best thing would be reporting a bug on bugs.gentoo.org so developers and package maintainers can peek into it.
make sure you post an emerge --info and such stuff.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Jan 23, 2011 7:35 pm    Post subject: Reply with quote

ToeiRei wrote:
best thing would be reporting a bug on bugs.gentoo.org so developers and package maintainers can peek into it.
make sure you post an emerge --info and such stuff.

Actually, opposite is true - don't file any reports till you know your problem doesn't lie on your side only.
Bugs in bugzilla get much less public attention.
Back to top
View user's profile Send private message
Tintamarre
n00b
n00b


Joined: 11 Jun 2007
Posts: 63
Location: Belgium

PostPosted: Sun Jan 23, 2011 7:48 pm    Post subject: Reply with quote

Did you try to emerge zoneminder with this command?

Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder

_________________
Martin Erpicum
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 391
Location: Stockholm, Sweden

PostPosted: Sun Jan 23, 2011 10:33 pm    Post subject: Reply with quote

Tintamarre wrote:
Did you try to emerge zoneminder with this command?

Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder



Excellent! Not that I understand why the above helps, but it does! :D

Cheers mate!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum