Errors while installing

Forum for questions and support relating to the 1.25.x releases only.
Locked
simon templar
Posts: 1
Joined: Tue Oct 11, 2011 4:37 am

Errors while installing

Post by simon templar »

Greetings,

Could anyone help me troubleshoot those errors:

root@xanadu:/goinfre/ZoneMinder-1.25.0> make install
Making install in src
make[1]: Entering directory `/goinfre/ZoneMinder-1.25.0/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,
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[1]: *** [zmc.o] Error 1
make[1]: Leaving directory `/goinfre/ZoneMinder-1.25.0/src'
make: *** [install-recursive] Error 1

Thanks
IMSancho
Posts: 6
Joined: Wed Oct 12, 2011 1:01 am

Re: Errors while installing

Post by IMSancho »

Do you have the ffmpeg development packages installed? It appears from those errors that the make process is having trouble finding them.
jrpend
Posts: 7
Joined: Sun Dec 13, 2009 7:33 am
Location: SF Bay Area, California USA

Re: Errors while installing

Post by jrpend »

I have the same problem, though I just did a make install of the ffmpeg git distribution.

If anyone has a solution, I would be most grateful.

Thanks,
Jerald Pendleton
Everyone must believe in something. I believe I'll have another drink.
SixLima
Posts: 4
Joined: Tue Sep 09, 2008 12:34 pm

Re: Errors while installing

Post by SixLima »

I had the same problem, but i had libavcodec installed. I solved it renaming the headers in zm_ffmpeg because it was looking for headers in /usr/include/libavcodec /usr/include/libavformat ... etc but in my debian all theese libs were in /usr/include/ffmpeg

My zm_ffmpeg.h now looks like:

Code: Select all

#include <ffmpeg/avutil.h>
#include <ffmpeg/avcodec.h>
#include <ffmpeg/avformat.h>
#include <ffmpeg/swscale.h>
instead of

Code: Select all

#include <libavutil/avutil.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
Is it some bug or i am using and old debian (Im with lenny)?

Now i have other problems but i dont know if are related:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include   -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "("
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:95: error: ‘errno’ was not declared in this scope
zm_ffmpeg_camera.cpp:99: error: ‘errno’ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::Capture(Image&)’:
zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’ was not declared in this scope
Locked