| Author |
Message |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder fails
Hi, zoneminder 1.25.0 works like a charme on 10.04. But after upgrading to 12.04 I got some problems: the first was because of the perl upgrade from 5.10.1 to 5.14.2 in both folder: /usr/local/share/perl/5.14.2 /usr/local/lib/perl/5.14.2 were pointed in @INC, but not existing in the filesystem, so I had to link bot to the correct path: tried to start zoneminder: - but when I now try to recompile: configure: error: zm requires DBI # tried to remove/reinstall with dpkg, doesn help tried with Anyone any Idea? Would like to use Zoneminder again. Thanks Marc
|
| Sun Apr 29, 2012 10:05 am |
|
|
|
 |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
some corrections could I make with the following: so because in the old paths were zoneminder installed, now I gave to reinstall 1.25.: configure works now: But make fails with:  |  |  |  | Code: zm_ffmpeg_camera.cpp: In Destruktor »virtual FfmpegCamera::~FfmpegCamera()«: zm_ffmpeg_camera.cpp:61:9: Warnung: »void av_close_input_file(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:61:45: Warnung: »void av_close_input_file(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp: In Elementfunktion »virtual int FfmpegCamera::PrimeCapture()«: zm_ffmpeg_camera.cpp:94:10: Warnung: »int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:94:76: Warnung: »int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:98:10: Warnung: »int av_find_stream_info(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:98:46: Warnung: »int av_find_stream_info(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:125:10: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations] zm_ffmpeg_camera.cpp:125:46: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations] mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/bin//include -Wall -Wno-sign-compare -fno-inline -I/usr/bin//include -D__STDC_CONSTANT_MACROS -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp zm_image.cpp: In Elementfunktion »void Image::Blend(const Image&, int) const«: zm_image.cpp:777:44: Warnung: Operation auf »pdest« könnte undefiniert sein [-Wsequence-point] mv -f .deps/zm_image.Tpo .deps/zm_image.Po g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/bin//include -Wall -Wno-sign-compare -fno-inline -I/usr/bin//include -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/bin//include -Wall -Wno-sign-compare -fno-inline -I/usr/bin//include -D__STDC_CONSTANT_MACROS -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp zm_monitor.cpp: In Elementfunktion »virtual void MonitorStream::runStream()«: zm_monitor.cpp:3479:14: Warnung: Variable »frame_sent« gesetzt, aber nicht verwendet [-Wunused-but-set-variable] mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/bin//include -Wall -Wno-sign-compare -fno-inline -I/usr/bin//include -D__STDC_CONSTANT_MACROS -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp zm_mpeg.cpp: In Elementfunktion »void VideoStream::SetupCodec(int, int, int, int, double)«: zm_mpeg.cpp:80:9: Warnung: »AVStream* av_new_stream(AVFormatContext*, int)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations] zm_mpeg.cpp:80:29: Warnung: »AVStream* av_new_stream(AVFormatContext*, int)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations] zm_mpeg.cpp: In Elementfunktion »void VideoStream::SetParameters()«: zm_mpeg.cpp:133:7: Warnung: »int av_set_parameters(AVFormatContext*, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations] zm_mpeg.cpp:133:34: Warnung: »int av_set_parameters(AVFormatContext*, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations] zm_mpeg.cpp: In Elementfunktion »void VideoStream::OpenStream()«: zm_mpeg.cpp:179:8: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations] zm_mpeg.cpp:179:29: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations] zm_mpeg.cpp:244:2: Warnung: »int av_write_header(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations] zm_mpeg.cpp:244:21: Warnung: »int av_write_header(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations] zm_mpeg.cpp: In Elementfunktion »double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)«: zm_mpeg.cpp:386:77: Fehler: »av_rescale_q« wurde in diesem Gültigkeitsbereich nicht definiert make[2]: *** [zm_mpeg.o] Fehler 1 make[2]: Verlasse Verzeichnis '/home/msc/ZoneMinder-1.25.0/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Verlasse Verzeichnis '/home/msc/ZoneMinder-1.25.0' make: *** [all] Fehler 2
|  |  |  |  |
I don understand this problem because, libavformat-dev libswscale-dev are already installed. I think it could because of this, but it seems to be solved: https://github.com/idiap/bob/issues/23and here: ffmpeg --version ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers built on Mar 22 2012 05:29:10 with gcc 4.6.3 -- I tried recompile without ffmpeg and make -> but the same error persist
|
| Tue May 01, 2012 12:04 pm |
|
 |
|
PacoLM
Joined: Wed Dec 02, 2009 10:55 pm Posts: 553 Location: Spain
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
Try to install the 1.25 package from this site: http://ftp.debian.org/debian/pool/main/z/zoneminder/Use the file you need and the follow this steps according to your computer architecture, of course): viewtopic.php?f=29&t=19118Hope it helps!
_________________ miniITX system + 4 IPCams + 1 Webcam (ZM1.25)
|
| Tue May 01, 2012 2:15 pm |
|
 |
|
bb99
Joined: Wed Apr 02, 2008 1:04 am Posts: 833
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
As a warning: updating the basic OS can break ZM! I was bit by PHP....
|
| Wed May 02, 2012 4:21 am |
|
 |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
using the .deb is not an option. But i have tested and it is failed.
Today evening I will try using the zoneminderpackage from ubuntu repository.
But it would be interesting if anybody has zoneminder compiled under ubuntu 12.04 without problems...
|
| Thu May 03, 2012 7:24 am |
|
 |
|
river100
Joined: Sun Oct 07, 2007 6:52 pm Posts: 70 Location: Louisiana
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
I didn't compile it from source but i haven't had any problems with 1.25.0 that came from the repositories for 12.04 64 bit LTS server, works well. all i did is secure apache2 a little.
|
| Mon May 07, 2012 6:48 am |
|
 |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
Hi river, thanks for your comment. That would be good news. But I got: can you pls do an and tell me what you get? I get I think, the problem is that in any config from 10.04+zoneminder is an reference to libmysqlclient16 but libmysqlclient18 is installed and I cannot install the old one. IF Anyone has an idea where the libmysqlclient16 is referenced and how I can change it to the new one "libmysqlclient18" so that I can start zoneminder without issues. Thanks and Kind Regards Marc
|
| Tue May 08, 2012 9:52 pm |
|
 |
|
river100
Joined: Sun Oct 07, 2007 6:52 pm Posts: 70 Location: Louisiana
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
i only get this
ii libmysqlclient18 5.5.22-0ubuntu1 MySQL database client library
i did my install from a fresh copy of ubuntu server. while installing the OS i picked LAMP server then did the zoneminder package file from repos
hope this helps
|
| Wed May 09, 2012 4:47 am |
|
 |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
 I created links from libmysqlclient.so.16 to the old libmysqlclient.18 to prevent from this: But when I link them , I get this: so where does the old one libmysqlclient.so.16 comes from?? database is dropped and I have a new one. old libmysqlclient.16 is purged:
|
| Sat May 12, 2012 10:59 am |
|
 |
|
JonMoore
Joined: Wed May 26, 2010 6:55 pm Posts: 9
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
I'm having the same problem...
Upgraded ubuntu 11.10 to 12.04... can see the zoneminder console but zm won't start.
Try to recompile and reinstall and ./configure works ok but make complains about av_rescale_q and lots of warnings about avformat.
Did anyone find a solution to this? I don't really want to start fresh.
Thanks, Jon
|
| Fri May 18, 2012 2:51 pm |
|
 |
|
Jim March
Joined: Thu Oct 04, 2007 9:31 am Posts: 88
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
I was in the same place. But there's a fairly easy fix.
First, install Zoneminder through the standard 12.04 repos - they have 1.25 in there. Standard "Ubuntu Software Center" actually works.
Second, do this:
Make sure apache2 is installed prior to installing ZM Then install zoneminder and then run the following commands and your done.
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf sudo /etc/init.d/apache2 force-reload sudo service zoneminder stop sudo service zoneminder start
This is copied from the Ubuntu Software Center reviews on Zoneminder, believe it or not, posted by "vektsilver".
This will pick up the config stuff you did in the previously installed copy and doesn't seem to care that you had the compiled stuff in there before.
|
| Sat May 19, 2012 3:08 am |
|
 |
|
marcschh
Joined: Mon Jul 11, 2011 9:48 pm Posts: 10
|
 Re: after upgrade ubuntuserver 10.04 -> 12.04 - zoneminder f
thank you very much. now it is working for me also. But if I try tu use zmu, zmfix etc. like before I get the same error with libmysqlclient16.so don´t understand this, but happy that it works now 
|
| Sat May 26, 2012 4:41 pm |
|
|