Unable to compile...

Forum for questions and support relating to the 1.25.x releases only.
Locked
Cameraman
Posts: 2
Joined: Tue Feb 21, 2012 6:15 pm

Unable to compile...

Post by Cameraman »

Hi!

I am trying to compile ZoneMinder 1.25 and I am getting the following error:

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 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
I had been able in the past to compile a previous version of ZoneMinder (but didn't have time to configure it, etc...) so I am not sure why I am unable to compile it now.

Thank you!
Cameraman
Posts: 2
Joined: Tue Feb 21, 2012 6:15 pm

Re: Unable to compile...

Post by Cameraman »

OK, according to the functions/methods name I was seeing this seemed related to my install of FFMPEG.

I removed the package I had and installed it from source, now I get the following error...

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include/include   -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:102:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:103:12: error: ‘AVFrame’ does not name a type
zm_local_camera.cpp:44:8: error: ‘PixelFormat’ does not name a type
zm_local_camera.cpp:259:1: error: ‘AVFrame’ does not name a type
zm_local_camera.cpp: In constructor ‘LocalCamera::LocalCamera(int, const string&, int, int, const string&, int, int, int, int, int, int, int, bool)’:
zm_local_camera.cpp:324:9: error: ‘imagePixFormat’ was not declared in this scope

<snip>
The error is not identical but still somewhat related...

Could anybody please suggest what I could try to fix this?

Thank you!
Locked