Page 1 of 1

Compiling source on Ubuntu 11.10

Posted: Tue Oct 25, 2011 8:55 pm
by nogero
I am trying to compile the daily build source on a fresh install of Ubuntu Desktop 11.10 Oneiric Ocelot, the latest Ubuntu release. I have slugged through meeting lots of requirements but it still hangs on make of zm with errors:

make all-recursive
make[1]: Entering directory `/u/zm'
Making all in src
make[2]: Entering directory `/u/zm/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/u/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/zm'
make: *** [all] Error 2


I figured out it has to do with ffmpeg. I compiled git source for that successfully in /usr/src/ffmpeg.
Any ideas?

Re: Compiling source on Ubuntu 11.10

Posted: Tue Oct 25, 2011 9:20 pm
by PacoLM
Try this: apt-get install libjpeg8-dev ffmpeg , then compile and make.

Re: Compiling source on Ubuntu 11.10

Posted: Tue Oct 25, 2011 9:22 pm
by PacoLM
Try this: apt-get install libjpeg8-dev ffmpeg , then compile and make.

Re: Compiling source on Ubuntu 11.10

Posted: Tue Oct 25, 2011 9:44 pm
by nogero
I did a ' apt-get install libjpeg8-dev ffmpeg' , same error.