Page 1 of 1

Error with Make after installing ffmpeg

Posted: Fri Apr 21, 2006 4:57 pm
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

Posted: Sat Apr 22, 2006 6:45 pm
by cordel
Did you install the ffmpeg-devel?

Regards,
Corey

Posted: Mon Apr 24, 2006 9:23 pm
by BadFish
Great thanks that fixed that problem.
I had only installed ffmpeg and not ffmpeg-devel