Error with Make after installing ffmpeg

Support and queries relating to all previous versions of ZoneMinder
Locked
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Error with Make after installing ffmpeg

Post by BadFish »

I decided after installing and running ./configure to add ffmpeg to my box.
I am running Fedora Core 4. The way I installed ffmpeg was to use yum.

yum install ffmpeg

Everything went fine, so I ran configure again:

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<password>

that went fine as well.

but now when I run make I get the following errors.

zm_mpeg.h:27:29: error: ffmpeg/avformat.h: No such file or directory
zm_mpeg.h:55: error: use of enum âPixelFormatâ without previous declaration
zm_mpeg.h:56: error: ISO C++ forbids declaration of âAVOutputFormatâ with no type
zm_mpeg.h:56: error: expected â;â before â*â token
zm_mpeg.h:57: error: ISO C++ forbids declaration of âAVFormatContextâ with no type
zm_mpeg.h:57: error: expected â;â before â*â token
zm_mpeg.h:58: error: ISO C++ forbids declaration of âAVStreamâ with no type
zm_mpeg.h:58: error: expected â;â before â*â token
zm_mpeg.h:59: error: ISO C++ forbids declaration of âAVFrameâ with no type
zm_mpeg.h:59: error: expected â;â before â*â token
zm_mpeg.h:60: error: ISO C++ forbids declaration of âAVFrameâ with no type
zm_mpeg.h:60: error: expected â;â before â*â token
zm_mpeg.h:61: error: ISO C++ forbids declaration of âuint8_tâ with no type
zm_mpeg.h:61: error: expected â;â before â*â token
zm_mpeg.h:77: error: âuint8_tâ has not been declared
zm_event.cpp: In static member function âstatic void Event::StreamMpeg(int, int, const char*, int, int, int, int)â:
zm_event.cpp:641: error: no matching function for call to âVideoStream::EncodeFrame(JSAMPLE*, int, bool&, unsigned int&)â
zm_mpeg.h:77: note: candidates are: double VideoStream::EncodeFrame(int*, int, bool, unsigned int)
make[1]: *** [zm_event.o] Error 1
make[1]: Leaving directory `/home/herrera/ZoneMinder-1.22.0/src'
make: *** [install-recursive] Error 1

anyone have any idea what I have done? Am I missing something from the configure command?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Did you install the ffmpeg-devel?

Regards,
Corey
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

Great thanks that fixed that problem.
I had only installed ffmpeg and not ffmpeg-devel
Locked