I am upgrading from 1.19.1 to 1.19.5 and I am getting the below error when running make. Any ideas?
The first bit seems to be ffmpeg but I have told zm i have not got ffmpeg.
I am running fedora core2 by the way
Thanks
In file included from zm_event.cpp:29:
zm_mpeg.h:27:29: ffmpeg/avformat.h: No such file or directory
In file included from zm_event.cpp:29:
zm_mpeg.h:37: error: use of enum `PixelFormat' without previous declaration
zm_mpeg.h:37: error: ISO C++ forbids declaration of `pf' with no type
zm_mpeg.h:38: error: syntax error before `*' token
zm_mpeg.h:39: error: syntax error before `*' token
zm_mpeg.h:40: error: syntax error before `*' token
zm_mpeg.h:41: error: syntax error before `*' token
zm_mpeg.h:42: error: syntax error before `*' token
zm_mpeg.h:43: error: syntax error before `*' token
zm_mpeg.h:58: error: `uint8_t' was not declared in this scope
zm_mpeg.h:58: error: `buffer' was not declared in this scope
zm_mpeg.h:58: error: syntax error before `,' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/home/tony/Desktop/zm-1.19.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tony/Desktop/zm-1.19.5'
make: *** [all] Error 2
PixelFormat' without previous declaration
Managed to fix that by reinstalling ffmpeg, but now have the below problem
Any ideas?
Thanks
zm_mpeg.o(.text+0x7): In function `VideoStream::Initialise()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:32: undefined reference to `av_register_all'
zm_mpeg.o(.text+0x31): In function `VideoStream::SetupFormat(char const*, char const*)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:42: undefined reference to `guess_format'
zm_mpeg.o(.text+0x71):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:46: undefined reference to `guess_format'
zm_mpeg.o(.text+0x151): In function `VideoStream::SetupCodec(int, int, int, int, int)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:72: undefined reference to `av_new_stream'
zm_mpeg.o(.text+0x1eb): In function `VideoStream::SetParameters()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:107: undefined reference to `av_set_parameters'
zm_mpeg.o(.text+0x2f5): In function `VideoStream::OpenStream()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:175: undefined reference to `url_fopen'
zm_mpeg.o(.text+0x662): In function `VideoStream::~VideoStream [not-in-charge]()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x69b):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x732): In function `VideoStream::~VideoStream [in-charge]()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x76b):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x8bd): In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:302: undefined reference to `av_write_frame'
zm_mpeg.o(.text+0x28b): In function `VideoStream::OpenStream()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:199: undefined reference to `av_write_header'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/tony/Desktop/zm-1.19.5/src'
make[1]: *** [all-recursive] Error 1
Any ideas?
Thanks
zm_mpeg.o(.text+0x7): In function `VideoStream::Initialise()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:32: undefined reference to `av_register_all'
zm_mpeg.o(.text+0x31): In function `VideoStream::SetupFormat(char const*, char const*)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:42: undefined reference to `guess_format'
zm_mpeg.o(.text+0x71):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:46: undefined reference to `guess_format'
zm_mpeg.o(.text+0x151): In function `VideoStream::SetupCodec(int, int, int, int, int)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:72: undefined reference to `av_new_stream'
zm_mpeg.o(.text+0x1eb): In function `VideoStream::SetParameters()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:107: undefined reference to `av_set_parameters'
zm_mpeg.o(.text+0x2f5): In function `VideoStream::OpenStream()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:175: undefined reference to `url_fopen'
zm_mpeg.o(.text+0x662): In function `VideoStream::~VideoStream [not-in-charge]()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x69b):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x732): In function `VideoStream::~VideoStream [in-charge]()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x76b):/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x8bd): In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned)':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:302: undefined reference to `av_write_frame'
zm_mpeg.o(.text+0x28b): In function `VideoStream::OpenStream()':
/home/tony/Desktop/zm-1.19.5/src/zm_mpeg.cpp:199: undefined reference to `av_write_header'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/tony/Desktop/zm-1.19.5/src'
make[1]: *** [all-recursive] Error 1
Fixed that one now, forgot to reconfig after I reinstalled the ffmpeg libraries!
I did have a problem with viewing stills, streaming worked ok but the stills were pointing at /zm/events/6/xxx and the camera name is "Front"(so should be /zm/events/front/xxx)
I have deleted the monitor and recreated it and it appears to have fixed that.
Tony
I did have a problem with viewing stills, streaming worked ok but the stills were pointing at /zm/events/6/xxx and the camera name is "Front"(so should be /zm/events/front/xxx)
I have deleted the monitor and recreated it and it appears to have fixed that.
Tony