Page 1 of 1

Problem building 1.24.2

Posted: Mon Aug 24, 2009 1:22 pm
by shadowbgd

Code: Select all

# make
make  all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
        then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_box.o -MD -MP -MF ".deps/zm_box.Tpo" -c -o zm_box.o zm_box.cpp; \
        then mv -f ".deps/zm_box.Tpo" ".deps/zm_box.Po"; else rm -f ".deps/zm_box.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF ".deps/zm_buffer.Tpo" -c -o zm_buffer.o zm_buffer.cpp; \
        then mv -f ".deps/zm_buffer.Tpo" ".deps/zm_buffer.Po"; else rm -f ".deps/zm_buffer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.cpp; \
        then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_comms.o -MD -MP -MF ".deps/zm_comms.Tpo" -c -o zm_comms.o zm_comms.cpp; \
        then mv -f ".deps/zm_comms.Tpo" ".deps/zm_comms.Po"; else rm -f ".deps/zm_comms.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" -c -o zm_config.o zm_config.cpp; \
        then mv -f ".deps/zm_config.Tpo" ".deps/zm_config.Po"; else rm -f ".deps/zm_config.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_coord.o -MD -MP -MF ".deps/zm_coord.Tpo" -c -o zm_coord.o zm_coord.cpp; \
        then mv -f ".deps/zm_coord.Tpo" ".deps/zm_coord.Po"; else rm -f ".deps/zm_coord.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm.o -MD -MP -MF ".deps/zm.Tpo" -c -o zm.o zm.cpp; \
        then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_db.o -MD -MP -MF ".deps/zm_db.Tpo" -c -o zm_db.o zm_db.cpp; \
        then mv -f ".deps/zm_db.Tpo" ".deps/zm_db.Po"; else rm -f ".deps/zm_db.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include   -Iyes/include  -MT zm_debug.o -MD -MP -MF ".deps/zm_debug.Tpo" -c -o zm_debug.o zm_debug.c; \
        then mv -f ".deps/zm_debug.Tpo" ".deps/zm_debug.Po"; else rm -f ".deps/zm_debug.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
        then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_exception.o -MD -MP -MF ".deps/zm_exception.Tpo" -c -o zm_exception.o zm_exception.cpp; \
        then mv -f ".deps/zm_exception.Tpo" ".deps/zm_exception.Po"; else rm -f ".deps/zm_exception.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF ".deps/zm_file_camera.Tpo" -c -o zm_file_camera.o zm_file_camera.cpp; \
        then mv -f ".deps/zm_file_camera.Tpo" ".deps/zm_file_camera.Po"; else rm -f ".deps/zm_file_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -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; \
        then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -g -O2 -MT zm_image.o -MD -MP -MF ".deps/zm_image.Tpo" -c -o zm_image.o zm_image.cpp; \
        then mv -f ".deps/zm_image.Tpo" ".deps/zm_image.Po"; else rm -f ".deps/zm_image.Tpo"; exit 1; fi
zm_image.cpp: In member function 'void Image::Blend(const Image&, int) const':
zm_image.cpp:779: warning: operation on 'pdest' may be undefined
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include   -Iyes/include  -MT zm_jpeg.o -MD -MP -MF ".deps/zm_jpeg.Tpo" -c -o zm_jpeg.o zm_jpeg.c; \
        then mv -f ".deps/zm_jpeg.Tpo" ".deps/zm_jpeg.Po"; else rm -f ".deps/zm_jpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include -Wall -Wno-sign-compare -fno-inline -Iyes/include  -frepo -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; \
        then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
In file included from zm_local_camera.cpp:20:
zm_local_camera.h:96: error: 'PixelFormat' does not name a type
zm_local_camera.h:97: error: 'PixelFormat' does not name a type
zm_local_camera.h:98: error: ISO C++ forbids declaration of 'AVFrame' with no type
zm_local_camera.h:98: error: expected ';' before '*' token
zm_local_camera.cpp:40: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:252: error: expected constructor, destructor, or type conversion before '*' token
zm_local_camera.cpp: In constructor 'LocalCamera::LocalCamera(int, const std::string&, int, int, const std::string&, int, int, int, int, int, int, int, bool)':
zm_local_camera.cpp:319: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:319: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:319: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:320: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:320: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:336: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:336: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:338: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:338: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:431: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:431: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:431: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:455: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:455: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:457: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:460: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:460: error: expected primary-expression before ')' token
zm_local_camera.cpp:460: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:594: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:594: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:594: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:602: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:602: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:604: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:607: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:607: error: expected primary-expression before ')' token
zm_local_camera.cpp:607: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1576: error: expected initializer before '*' token
zm_local_camera.cpp:1578: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1578: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1582: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1582: error: 'sws_getContext' was not declared in this scope
zm_local_camera.cpp:1586: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1586: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1589: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1590: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1593: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1593: error: expected primary-expression before ')' token
zm_local_camera.cpp:1593: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1595: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1595: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1595: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2

Posted: Wed Nov 04, 2009 1:18 pm
by Elfe
I also get the error now after updating my gentoo box.

What gcc version do you use? (gcc-4.3.4 here)

Posted: Wed Nov 04, 2009 6:40 pm
by TechGuy
Try upgrading ffmpeg to a newer version. I suspect that its referencing includes from ffmpeg or another library that is outdated. Look at the ZM required libraries and compare the versions with your installed versions.
the av* defines are probably from libavcodec, or one of the other libav files that are apart of ffmpeg.

Posted: Thu Nov 05, 2009 1:24 pm
by Elfe
thx for the hint, looks like an update to a x264 codec lib broke ffmpeg here :(