Compile problem

Forum for questions and support relating to the 1.25.x releases only.
Locked
holdupmaster
Posts: 2
Joined: Wed Mar 06, 2013 2:10 pm

Compile problem

Post by holdupmaster »

Hi everyone, I've become a bit unstuck during my installation.

I'm installing onto Centos 6.3 i386 - everything else has worked so far ffmpeg runs apparently but when I come to run make the compiler seems to fail as below.

Any suggestions?

make
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/root/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_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -p
zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "("
In file included from zm_ffmpeg_camera.cpp:24:
zm_ffmpeg_camera.h:39: error: ISO C++ forbids declaration of âAVFormatContextâ with no type
zm_ffmpeg_camera.h:39: error: expected â;â before â*â token
zm_ffmpeg_camera.h:41: error: ISO C++ forbids declaration of âAVCodecContextâ with no type
zm_ffmpeg_camera.h:41: error: expected â;â before â*â token
zm_ffmpeg_camera.h:42: error: ISO C++ forbids declaration of âAVCodecâ with no type
zm_ffmpeg_camera.h:42: error: expected â;â before â*â token
zm_ffmpeg_camera.h:44: error: ISO C++ forbids declaration of âAVFrameâ with no type
zm_ffmpeg_camera.h:44: error: expected â;â before â*â token
zm_ffmpeg_camera.h:45: error: ISO C++ forbids declaration of âAVFrameâ with no type
zm_ffmpeg_camera.h:45: error: expected â;â before â*â token
zm_ffmpeg_camera.cpp: In constructor âFfmpegCamera::FfmpegCamera(int, const std::string&, int, int, int, int, int, int, int, bool)â:
zm_ffmpeg_camera.cpp:35: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:37: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:38: error: âmCodecâ was not declared in this scope
zm_ffmpeg_camera.cpp:40: error: âmRawFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:41: error: âmFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp: In destructor âvirtual FfmpegCamera::~FfmpegCamera()â:
zm_ffmpeg_camera.cpp:46: error: âmFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:46: error: âav_freepâ was not declared in this scope
zm_ffmpeg_camera.cpp:47: error: âmRawFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:51: error: âsws_freeContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:54: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:56: error: âavcodec_closeâ was not declared in this scope
zm_ffmpeg_camera.cpp:59: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:61: error: âav_close_input_fileâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvoid FfmpegCamera::Initialise()â:
zm_ffmpeg_camera.cpp:78: error: âAV_LOG_DEBUGâ was not declared in this scope
zm_ffmpeg_camera.cpp:78: error: âav_log_set_levelâ was not declared in this scope
zm_ffmpeg_camera.cpp:80: error: âAV_LOG_QUIETâ was not declared in this scope
zm_ffmpeg_camera.cpp:80: error: âav_log_set_levelâ was not declared in this scope
zm_ffmpeg_camera.cpp:82: error: âav_register_allâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::PrimeCapture()â:
zm_ffmpeg_camera.cpp:94: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:94: error: âav_open_input_fileâ was not declared in this scope
zm_ffmpeg_camera.cpp:95: error: âerrnoâ was not declared in this scope
zm_ffmpeg_camera.cpp:98: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:98: error: âav_find_stream_infoâ was not declared in this scope
zm_ffmpeg_camera.cpp:99: error: âerrnoâ was not declared in this scope
zm_ffmpeg_camera.cpp:103: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:108: error: âCODEC_TYPE_VIDEOâ was not declared in this scope
zm_ffmpeg_camera.cpp:118: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:118: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:121: error: âmCodecâ was not declared in this scope
zm_ffmpeg_camera.cpp:121: error: âavcodec_find_decoderâ was not declared in this scope
zm_ffmpeg_camera.cpp:125: error: âmCodecâ was not declared in this scope
zm_ffmpeg_camera.cpp:125: error: âavcodec_openâ was not declared in this scope
zm_ffmpeg_camera.cpp:129: error: âmRawFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:129: error: âavcodec_alloc_frameâ was not declared in this scope
zm_ffmpeg_camera.cpp:132: error: âmFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:135: error: âPIX_FMT_RGB24â was not declared in this scope
zm_ffmpeg_camera.cpp:135: error: âavpicture_get_sizeâ was not declared in this scope
zm_ffmpeg_camera.cpp:138: error: âAVPictureâ was not declared in this scope
zm_ffmpeg_camera.cpp:138: error: expected primary-expression before â)â token
zm_ffmpeg_camera.cpp:138: error: âavpicture_fillâ was not declared in this scope
zm_ffmpeg_camera.cpp:141: error: âSWS_BICUBICâ was not declared in this scope
zm_ffmpeg_camera.cpp:141: error: âsws_getCachedContextâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:159: error: âAVPacketâ was not declared in this scope
zm_ffmpeg_camera.cpp:159: error: expected â;â before âpacketâ
zm_ffmpeg_camera.cpp:163: error: âmFormatContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:163: error: âpacketâ was not declared in this scope
zm_ffmpeg_camera.cpp:163: error: âav_read_frameâ was not declared in this scope
zm_ffmpeg_camera.cpp:172: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:172: error: âmRawFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:172: error: âavcodec_decode_video2â was not declared in this scope
zm_ffmpeg_camera.cpp:182: error: âmRawFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:182: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:182: error: âmFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:182: error: âsws_scaleâ was not declared in this scope
zm_ffmpeg_camera.cpp:188: error: âmCodecContextâ was not declared in this scope
zm_ffmpeg_camera.cpp:188: error: âmFrameâ was not declared in this scope
zm_ffmpeg_camera.cpp:193: error: âav_free_packetâ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.25.0'
make: *** [all] Error 2
axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Compile problem

Post by axelm »

I would guess you have an old version of libavcodec-devel installed
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: Compile problem

Post by neuronetv »

hi holdupmaster did you ever solve this problem?
Locked