How to install zm 1.24.1 from source on Ubuntu 8.10 - SOLVED

Forum for questions and support relating to the 1.24.x releases only.
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

How to install zm 1.24.1 from source on Ubuntu 8.10 - SOLVED

Post 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
Last edited by timf on Mon Apr 20, 2009 1:23 am, edited 9 times in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for this.It would be cool if you could add it to the distros section of the Wiki.
Phil
skumpic
Posts: 2
Joined: Mon Feb 16, 2009 9:47 am

Post 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
punk_ecas
Posts: 41
Joined: Wed Mar 04, 2009 4:16 pm

Post 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
zoneminder_andre
Posts: 7
Joined: Sat Jan 24, 2009 3:23 pm

Post 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

Code: Select all

sudo zmpkg.pl start 
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]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
zoneminder_andre
Posts: 7
Joined: Sat Jan 24, 2009 3:23 pm

Post 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é
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I think you can just 'make uninstall' but have not actually done it lately.
Phil
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post 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.
jsylvia007
Posts: 116
Joined: Wed Mar 11, 2009 8:32 pm

Post 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.
treesloth
Posts: 23
Joined: Thu Feb 05, 2009 8:40 pm
Location: Pensacola, Fl

an error

Post 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
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post by Blazer »

those errors with @ are autoconf aliases, sometimes you can fix by running:

autoconf
automake
and then trying to make again.
jsylvia007
Posts: 116
Joined: Wed Mar 11, 2009 8:32 pm

Post 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.
craver84
Posts: 96
Joined: Sun Aug 31, 2008 7:35 am

Post by craver84 »

same problem....
jsylvia007
Posts: 116
Joined: Wed Mar 11, 2009 8:32 pm

Post 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?
Locked