Compiling source on Ubuntu 11.10

Forum for questions and support relating to the 1.25.x releases only.
Locked
nogero
Posts: 14
Joined: Fri Apr 22, 2011 5:32 pm

Compiling source on Ubuntu 11.10

Post 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?
Last edited by nogero on Tue Oct 25, 2011 9:20 pm, edited 1 time in total.
Running Ubuntu 11.04 64bit Zoneminder 1.24.3 from SVN, FFmpeg, libjpeg-turbo, Webmin, Cambozola
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Compiling source on Ubuntu 11.10

Post by PacoLM »

Try this: apt-get install libjpeg8-dev ffmpeg , then compile and make.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Compiling source on Ubuntu 11.10

Post by PacoLM »

Try this: apt-get install libjpeg8-dev ffmpeg , then compile and make.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
nogero
Posts: 14
Joined: Fri Apr 22, 2011 5:32 pm

Re: Compiling source on Ubuntu 11.10

Post by nogero »

I did a ' apt-get install libjpeg8-dev ffmpeg' , same error.
Running Ubuntu 11.04 64bit Zoneminder 1.24.3 from SVN, FFmpeg, libjpeg-turbo, Webmin, Cambozola
Locked