compile error on centos 5.4 using zm 1.24.2

Forum for questions and support relating to the 1.24.x releases only.
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

Post by BlueH2O »

Skitz, this is good, I'm getting closer I think, but I still encounter this:

Code: Select all

       then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
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
as well as

Code: Select all

checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
As far as this last error I can see the files are installed, but yet they are not being found.. as for the first I am clueless.
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

Post by BlueH2O »

I tried installing ffmpeg and ffmpeg-devel from rpmforge and this seems to have solved both these issues!!
Locked