Issues when building ZM 1.26.5 raring on Ubuntu 14.04

Forum for questions and support relating to the 1.26.x releases only.
Locked
chqu
Posts: 2
Joined: Wed May 21, 2014 7:34 pm

Issues when building ZM 1.26.5 raring on Ubuntu 14.04

Post by chqu »

Hi,

I'm new to Linux and ZM, and currently having some issues when building ZM 1.26.5 raring on a Ubuntu 14.04 machine(i386).

1. Is there a procedure to build this version? I noticed there are mainly 2 versions: .config/make; cmake. Which one should I use, and what command can cover the basic build? I really don't need any fancy options to start.

2. Regarding ffmpeg, do I need to have "--enable-shared" before building it? It seems that once I have that option, the ffmpeg can't run after installing (relocation error).

3. Currently I'm using .config/make to build it, and stuck with the error as below, and I believe it's because the ffmpeg was not installed properly:
...
zm_sdp.o: In function `SessionDescriptor::generateFormatContext() const':
/zm/ZoneMinder.master/src/zm_sdp.cpp:344: undefined reference to `avformat_alloc_context'
/zm/ZoneMinder.master/src/zm_sdp.cpp:360: undefined reference to `avformat_new_stream'
/zm/ZoneMinder.master/src/zm_sdp.cpp:442: undefined reference to `av_base64_decode'
/zm/ZoneMinder.master/src/zm_sdp.cpp:448: undefined reference to `av_malloc'
/zm/ZoneMinder.master/src/zm_sdp.cpp:453: undefined reference to `av_free'
collect2: error: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/cqu/zm/ZoneMinder.master/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cqu/zm/ZoneMinder.master'
make: *** [all] Error 2

Thank you very much.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Issues when building ZM 1.26.5 raring on Ubuntu 14.04

Post by PacoLM »

Try the 1.27 version much more stable than 1.26.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
chqu
Posts: 2
Joined: Wed May 21, 2014 7:34 pm

Re: Issues when building ZM 1.26.5 raring on Ubuntu 14.04

Post by chqu »

Thank you. I'll have a try.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Issues when building ZM 1.26.5 raring on Ubuntu 14.04

Post by bbunge »

You do not need to build zoneminder on Ubuntu 14.04. ZM 1.26.5 can be installed easily! See:
http://www.zoneminder.com/wiki/index.ph ... e_easy_way

I have a 15 camera system running on a Dell Quad Core with up to six people watching the montage at a time. Go for the easy way! bb
Locked