View previous topic :: View next topic |
Author |
Message |
vespaman Guru


Joined: 28 Aug 2002 Posts: 391 Location: Stockholm, Sweden
|
Posted: Sun Jan 23, 2011 6:19 pm Post subject: zoneminder emerge fails on ffmpeg [Solved] |
|
|
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 |
|
 |
VoidMage Watchman


Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Jan 23, 2011 6:24 pm Post subject: |
|
|
Check your config.log (if that package uses it).
You should look i.e. in /usr/include/libswscale. |
|
Back to top |
|
 |
ToeiRei Veteran


Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Sun Jan 23, 2011 7:32 pm Post subject: |
|
|
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 |
|
 |
VoidMage Watchman


Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Jan 23, 2011 7:35 pm Post subject: |
|
|
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 |
|
 |
Tintamarre n00b


Joined: 11 Jun 2007 Posts: 63 Location: Belgium
|
Posted: Sun Jan 23, 2011 7:48 pm Post subject: |
|
|
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 |
|
 |
vespaman Guru


Joined: 28 Aug 2002 Posts: 391 Location: Stockholm, Sweden
|
Posted: Sun Jan 23, 2011 10:33 pm Post subject: |
|
|
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!
Cheers mate! |
|
Back to top |
|
 |
|