can't compile zoneminder on arch linux
Posted: Mon May 21, 2012 2:27 pm
I had zoneminder working fine on arch linux I installed updates and then my zoneminder stoped working and I attempted to recompile it and I get this error
Code: Select all
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
zm_local_camera.cpp:324:39: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:324:53: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:325:9: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:325:79: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:341:27: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:341:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:343:27: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:343:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:464:9: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:464:31: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:464:31: error: expected ';' before 'AVFrame'
zm_local_camera.cpp:488:18: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:488:36: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:490:58: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:493:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:493:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:493:187: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In static member function 'static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)':
zm_local_camera.cpp:774:22: error: 'PATH_MAX' was not declared in this scope
zm_local_camera.cpp:779:21: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:781:22: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:782:29: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:799:67: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:801:54: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:811:92: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:936:91: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:961:82: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1643:16: error: 'AVFrame' does not name a type
zm_local_camera.cpp:1645:14: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1645:32: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1649:146: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1649:176: error: 'sws_getCachedContext' was not declared in this scope
zm_local_camera.cpp:1653:17: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1653:50: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1656:85: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1657:74: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1660:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1660:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:1660:103: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1662:46: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1662:137: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1662:176: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0'
make: *** [all] Error 2