1.2.4 Compile problem
Posted: Sat Nov 12, 2005 12:13 am
I have been successfully using ZoneMinder 1.2.3 for some time now.
When I heard that the version is out I tried to compile 1.2.4.
I used ffmpeg 0.4.8 installed in /usr/local firstly. The result is failure:
Afterwards I tried the latest ffmpeg 0.4.9 cvs release although I don't enable faac, which fault as dafult, the ffmpeg compilation result is again failure:
I am using SuSE Linux 9.3 with mostly the latest libraries updated via apt.
I can revert back to zm 1.2.3, however I want to use the new features and want to help on further development.
Could you please help ?
Koray
When I heard that the version is out I tried to compile 1.2.4.
I used ffmpeg 0.4.8 installed in /usr/local firstly. The result is failure:
Code: Select all
make[2]: Entering directory `/usr/src/packages/BUILD/zm-1.21.4/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int,
int, int)':
zm_mpeg.cpp:79: error: cannot convert `AVCodecContext' to `AVCodecContext*' in
initialization
zm_mpeg.cpp:98: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:99: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp: In member function `void VideoStream::OpenStream()':
zm_mpeg.cpp:133: error: cannot convert `AVCodecContext' to `AVCodecContext*' in
initialization
zm_mpeg.cpp: In destructor `VideoStream::~VideoStream()':
zm_mpeg.cpp:237: error: cannot convert `AVCodecContext' to `AVCodecContext*'
for argument `1' to `int avcodec_close(AVCodecContext*)'
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int,
bool, unsigned int)':
zm_mpeg.cpp:284: error: cannot convert `AVCodecContext' to `AVCodecContext*' in
initialization
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/zm-1.21.4'
make: *** [all] Error 2
Code: Select all
faac.c:26:18: faac.h: No such file or directory
faac.c:29: error: syntax error before "faacEncHandle"
faac.c:29: warning: no semicolon at end of struct or union
faac.c:30: warning: type defaults to `int' in declaration of `FaacAudioContext'
faac.c:30: warning: data definition has no type or storage class
faac.c: In function `Faac_encode_init':
faac.c:34: error: `s' undeclared (first use in this function)
faac.c:34: error: (Each undeclared identifier is reported only once
faac.c:34: error: for each function it appears in.)
faac.c:35: error: `faacEncConfigurationPtr' undeclared (first use in this function)
faac.c:35: error: syntax error before "faac_cfg"
faac.c:42: warning: implicit declaration of function `faacEncOpen'
faac.c:47: error: `faac_cfg' undeclared (first use in this function)
faac.c:47: warning: implicit declaration of function `faacEncGetCurrentConfiguration'
faac.c:48: error: `FAAC_CFG_VERSION' undeclared (first use in this function)
faac.c:50: warning: implicit declaration of function `faacEncClose'
faac.c:55: error: `LOW' undeclared (first use in this function)
faac.c:56: error: `MPEG4' undeclared (first use in this function)
faac.c:65: error: `FAAC_INPUT_16BIT' undeclared (first use in this function)
faac.c:67: warning: implicit declaration of function `faacEncSetConfiguration'
faac.c:84: warning: implicit declaration of function `faacEncGetDecoderSpecificInfo'
faac.c: In function `Faac_encode_frame':
faac.c:97: error: `s' undeclared (first use in this function)
faac.c:100: warning: implicit declaration of function `faacEncEncode'
faac.c: In function `Faac_encode_close':
faac.c:111: error: `s' undeclared (first use in this function)
make[1]: *** [faac.o] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/ffmpeg-cvs/ffmpeg/libavcodec'
make: *** [lib] Error 2
I can revert back to zm 1.2.3, however I want to use the new features and want to help on further development.
Could you please help ?
Koray