Page 1 of 5
How to install zm 1.24.1 from source on Ubuntu 8.10 - SOLVED
Posted: Thu Feb 19, 2009 5:48 pm
by timf
see the much improved how to at the end of this thread kindly provided by jsylvia007
This also works for Ubuntu 9.04
http://www.zoneminder.com/wiki/index.ph ... ola-0.7%29
Posted: Thu Feb 19, 2009 6:49 pm
by zoneminder
Thanks for this.It would be cool if you could add it to the distros section of the Wiki.
Posted: Sun Feb 22, 2009 11:08 pm
by skumpic
I followed this wiki.
To get it working in my ubuntu 8.10 i had to make this little changes:
1) After compiling FFMPEG i had to:
cd /etc/ld.so.conf.d
sudo gedit /etc/ld.so.conf.d/custom-libs.conf
Then add:
/usr/local/lib
and save.
Then
sudo ldconfig
2)
gedit .bashrc
And add at the end of the file:
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
Save. Exit and reboot.
3) Before configure zoneminder i had to edit zm/src/zm_rtsp.cpp at line 183 as follow (link:
http://www.zoneminder.com/forums/viewto ... 9597#49597 )
diff -urN ZoneMinder-1.24.0.old//src/zm_rtsp.cpp ZoneMinder-1.24.0//src/zm_rtsp.cpp
--- ZoneMinder-1.24.0.old//src/zm_rtsp.cpp 2009-02-09 14:43:19.000000000 +0000
+++ ZoneMinder-1.24.0//src/zm_rtsp.cpp 2009-02-15 19:15:23.629245785 +0000
@@ -180,7 +180,7 @@
else
mUrl += '/'+mPath;
}
- mFormatContext = avformat_alloc_context();
+ mFormatContext = av_alloc_format_context();
mSsrc = rand();
See you
Skumpic
Posted: Wed Mar 04, 2009 5:00 pm
by punk_ecas
### These are my shared settings for 2GB of ram to support 6 color cameras at 640x480 and higher resolutions. I have a spread sheet which computes these numbers - seems to solve the problem. Edit and append to sysctl.conf as follows:
Can you send me your spread sheet that computes that numbers?
Thks
Posted: Sat Mar 07, 2009 1:08 pm
by zoneminder_andre
Hi there,
I've been struggling with the zoneminder 1.24.1 installation on Ubuntu Desktop 8.10 for about 2 days now
I have done all of the above but when trying to start zm with
I do get the following error:
Code: Select all
/usr/local/bin/zmfix: symbol lookup error: /usr/local/lib/libavcodec.so.52: undefined symbol: av_gcd
Any help would be greatly appreciated!
BTW: ffmpeg gives me the following
Code: Select all
FFmpeg version SVN-r17861, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.21. 0 / 52.21. 0
libavformat 52.31. 1 / 52.31. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 7 2009 10:19:50, gcc: 4.3.2
At least one output file must be specified
When building ffmpeg from the latest sources the option "--enable-swscale" did not work.
Is that a problem?
Thanks in advance!!!!
André
[/code]
Posted: Sun Mar 08, 2009 2:21 pm
by zoneminder
Looks like the latest ffmpeg has made swscale the default now. I'm not sure what your first error relates to, other than it is ffmpeg related, but will have a look.
Can you confirm you don't have any old copies of ffmpeg libraries etc lying around?
Posted: Sun Mar 08, 2009 4:51 pm
by zoneminder_andre
I am pretty sure ... since it was a clean 8.10 installation.
Anyhow, how would I get rid of all ffmeg libraries to install compile it from scratch?
Thanks in advance!
André
Posted: Sun Mar 08, 2009 5:24 pm
by zoneminder
I think you can just 'make uninstall' but have not actually done it lately.
Posted: Sun Mar 08, 2009 9:17 pm
by newvisionantenna
I run make uninstall-libs then make uninstall. It will say some directories couldn't be deleted. I just double check them and every time I rebuild I have no issue's.
Check your inbox, sent you that firmware.
Posted: Wed Mar 11, 2009 8:35 pm
by jsylvia007
I'm able to configure and "make" perfectly fine...
When I try "make install" i get this:
Code: Select all
Making install in src
make[1]: Entering directory `/root/zm/src'
make[2]: Entering directory `/root/zm'
make[2]: Leaving directory `/root/zm'
make[2]: Entering directory `/root/zm/src'
make[3]: Entering directory `/root/zm'
make[3]: Leaving directory `/root/zm'
test -z "/usr/local/bin" || @MKDIR_P@ "/usr/local/bin"
/bin/bash: @MKDIR_P@: command not found
make[2]: *** [install-binPROGRAMS] Error 127
make[2]: Leaving directory `/root/zm/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/root/zm/src'
make: *** [install-recursive] Error 1
This is a vanilla 8.10 install, following the above guide.
an error
Posted: Thu Mar 12, 2009 1:37 am
by treesloth
An error occurs during make
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/tristan/ffmpeg/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tristan/ffmpeg/zm'
make: *** [all] Error 2
I will proceed and see if it compiles though
Posted: Thu Mar 12, 2009 2:19 am
by Blazer
those errors with @ are autoconf aliases, sometimes you can fix by running:
autoconf
automake
and then trying to make again.
Posted: Thu Mar 12, 2009 6:16 pm
by jsylvia007
@ Blazer - You were correct. that fixed my issues.
I'm in the process of redoing this from scratch, because the above steps do leave out some important things on a fresh ubuntu 8.10 server. The order is a little off as well...
But, wouldn't you know it... SVN.MPLAYERHQ.HU is offline, so i'm dead in the water until that comes back up. Grrr.
Posted: Fri Mar 13, 2009 12:30 am
by craver84
same problem....
Posted: Fri Mar 13, 2009 12:11 pm
by jsylvia007
18 hours later and its still down... This is not good. So much for wrapping this up before the weekend gets here.
Does anyone know what is going on?