Compile issue on FC3 and 1.2.1.4

Support and queries relating to all previous versions of ZoneMinder
Locked
rhouston
Posts: 4
Joined: Tue Nov 22, 2005 7:04 pm
Location: Winnipeg, MB Canada

Compile issue on FC3 and 1.2.1.4

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What version of ffmpeg do you have installed?

Regards,
Cordel
rhouston
Posts: 4
Joined: Tue Nov 22, 2005 7:04 pm
Location: Winnipeg, MB Canada

Post 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
rhouston
Posts: 4
Joined: Tue Nov 22, 2005 7:04 pm
Location: Winnipeg, MB Canada

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
rhouston
Posts: 4
Joined: Tue Nov 22, 2005 7:04 pm
Location: Winnipeg, MB Canada

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

No Prob, Glad you got it sorted. ffmpeg can be a bit of a pain.
Regards,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked