Building under slackware

Forum for questions and support relating to the 1.25.x releases only.
Locked
elektryk
Posts: 1
Joined: Sat Mar 24, 2012 12:09 am

Building under slackware

Post by elektryk »

I was trying to build ZoneMinder on my machine. It was originally slackware probably 12.0, but some o libraries were updated since instalation time. For example ffmpeg tool and librariers as quite new version compiled from sources.
During compilation I have following errors:

Code: Select all

make[2]: Entering directory `/usr/src/ZoneMinder-1.25.0/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/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:
zm_local_camera.h:101: error: 'PixelFormat' does not name a type
zm_local_camera.h:102: error: 'PixelFormat' does not name a type
zm_local_camera.h:103: error: ISO C++ forbids declaration of 'AVFrame' with no type
zm_local_camera.h:103: error: expected ';' before '*' token
zm_local_camera.cpp:44: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:259: 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:324: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:324: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:324: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:325: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:325: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:341: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:341: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:343: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:343: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:464: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:464: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:464: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:488: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:488: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:490: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:493: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:493: error: expected primary-expression before ')' token
zm_local_camera.cpp:493: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:631: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:631: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:631: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:639: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:639: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:641: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:644: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:644: error: expected primary-expression before ')' token
zm_local_camera.cpp:644: 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:1643: error: expected initializer before '*' token
zm_local_camera.cpp:1645: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1645: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1649: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1649: error: 'sws_getCachedContext' was not declared in this scope
zm_local_camera.cpp:1653: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1653: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1656: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1657: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1660: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1660: error: expected primary-expression before ')' token
zm_local_camera.cpp:1660: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1662: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1662: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1662: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 2
Any idea what is wrong with my platform?
drose25
Posts: 19
Joined: Fri Jan 20, 2012 2:00 am

Re: Building under slackware

Post by drose25 »

I'm not much of a programmer, but from the looks of all those errors, it sounds as though either an environment variable path hasn't been set properly or a function library is missing somewhere. In googling, I found a thread with a lot of similar errors that was due to a stripped version of libavcodec and libavformat. This was on Ubuntu 9, however, but basically a stripped down version of those packages had been installed (by accident due to incorrect inclusion in the repository, apparently) and the necessary variables were not being supplied.

Not sure if that helps you any, but hopefully it rings a bell somewhere.
Locked