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
Errors while installing
Re: Errors while installing
Do you have the ffmpeg development packages installed? It appears from those errors that the make process is having trouble finding them.
Re: Errors while installing
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
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.
Re: Errors while installing
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:
instead of
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:
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>
Code: Select all
#include <libavutil/avutil.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
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