Issues when building ZM 1.26.5 raring on Ubuntu 14.04
Posted: Wed May 21, 2014 8:12 pm
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.
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.