Page 1 of 1

Compile issue on FC3 and 1.2.1.4

Posted: Tue Nov 22, 2005 7:17 pm
by rhouston
Hi All,

First off, I love this software!! Please keep up the great work!

I am trying to update to 1.2.1.4 and am running in to a compile issue. The error is as follows:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/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 `double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: `av_rescale_q' undeclared (first use this function)
zm_mpeg.cpp:331: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/root/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm-1.21.4'
make: *** [all] Error 2


Any ideas? The 1.2.1.3 works fine and I used the zmconfig.txt from the previous build.

Thanks in advance.

Rich Houston
RLH Consulting
www.rlhc.net

Posted: Tue Nov 22, 2005 8:05 pm
by cordel
What version of ffmpeg do you have installed?

Regards,
Cordel

Posted: Tue Nov 22, 2005 8:14 pm
by rhouston
Hi there,

0.4.9-0.20041110.3.1

This is the version loaded via yum, I think it comes from the Dag repos.

Thanks

Rich

Posted: Tue Nov 22, 2005 8:27 pm
by rhouston
FYI

Just updated to the cvs version of ffmpeg and got the same issue. I used the --prefix=/usr during compile to over write my current install.

Thanks

Posted: Tue Nov 22, 2005 8:32 pm
by cordel
did you uninstall all the ffmpeg rpms before building the cvs source?

Also ffmpeg source requires you to run make installlibs to install the shared libraries. Assuming you enabled it.

Regards,
Cordel

Posted: Tue Nov 22, 2005 9:15 pm
by rhouston
Got it!

I did the make installlib as you suggested, did a make distclean on zm and started from scratch and it compiled.

Thanks for your help.

Rich

Posted: Tue Nov 22, 2005 9:24 pm
by cordel
No Prob, Glad you got it sorted. ffmpeg can be a bit of a pain.
Regards,
Cordel