Is 1.21.3 hard to build?

Support and queries relating to all previous versions of ZoneMinder
Locked
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Is 1.21.3 hard to build?

Post by Baylink »

Am I the only one having trouble building .3?

I've tried it now on both my one live machine, and my office test box, and in both cases, it throws up during the compile.

On the live machine, it was complaining about being unable to find includes for ffmpeg/avcodec/avformat, even though I'd explicitly told it not to try to do mpeg (all called from zm_mpeg.cpp, I think). That machine is offline, so it's a pain to pull the error messages back here.

The office machine broke on the compile of zmc (which is also where the live machine broke, when I cobbled up a set of include directories out of MPlayer's local avcodec), with this error:

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zmc.cpp:24:
zm.h:28:23: zm_config.h: No such file or directory
In file included from /usr/include/math.h:70,
                 from zm_image.h:29,
                 from zm_monitor.h:28,
                 from zmc.cpp:26:
/usr/include/bits/mathcalls.h:310: error: declaration of `double round(double)
   throw ()' throws different exceptions
zm.h:33: error: than previous declaration `double round(double)'
In file included from zm_zone.h:27,
                 from zm_monitor.h:29,
                 from zmc.cpp:26:
zm_event.h: In static member function `static void Event::Initialise()':
zm_event.h:86: error: `config' undeclared (first use this function)
zm_event.h:86: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
zmc.cpp: In function `int main(int, char**)':
zmc.cpp:144: error: `zmLoadConfig' undeclared (first use this function)
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

For no apparent reason, rebuilding it this morning on my office box, with no changes (except a make distclean and re./configure) built it fine.

Off to the closet to try again on the remote machine.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

good luck. I read your post but as i am a live cd man i couldnt help sorry. Hope you can sort it

James
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

I located the several causes; I'm going to open a different thread.

But this problem was that ffmpeg was *installed*: the build will apparently try to pick it up *even if you don't tell it to*, if it's installed. I yanked the RPM's, and it built fine.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

im trying to do this and i keep getting libavcodec.so.0 is needed and libavformat.so.0

If i install a cvs ffmpeg this goes away but with a version of ffmpeg we know to work i cant get this to go.

Any clues where i can getr these files from everything ive looked for points to 0.4.9 ffmpeg

I have ffmoeg 0.4.8-4 and devel 0.4.8.4
I have used fc3 rpms from the brilliant corey
Any ideas fellas

James
Locked