Gentoo build fails - missing headers

Forum for questions and support relating to the 1.24.x releases only.
Locked
RemoteObserver
Posts: 1
Joined: Wed Sep 01, 2010 2:34 pm

Gentoo build fails - missing headers

Post by RemoteObserver »

Installing 1.24.2 on Gentoo, I get this error:

Code: Select all

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=athlon-xp -fomit-frame-pointer -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
clytle374
Posts: 8
Joined: Mon Sep 06, 2010 3:44 am

Not much luck here either.

Post by clytle374 »

oops, misspoke and deleted post

got the emerge to work, not related, sorry
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

I had the same problem when compiling ZM from SVN on Gentoo with ffmpeg 0.6.

The solution is to define __STDC_CONSTANT_MACROS in the configure line. simply add -D__STDC_CONSTANT_MACROS to your ./configure line.

mastertheknife.
Locked