Package Details: zoneminder 1.29.0-2

Git Clone URL: https://aur.archlinux.org/zoneminder.git (read-only)
Package Base: zoneminder
Description: Capture, analyse, record and monitor video security cameras
Upstream URL: https://github.com/ZoneMinder/ZoneMinder/releases
Licenses: GPL
Submitter: None
Maintainer: troydwill
Last Packager: troydwill
Votes: 41
Popularity: 1.641190
First Submitted: 2008-03-21 00:09
Last Updated: 2016-05-27 16:55

Latest Comments

DeepBlue commented on 2016-08-23 13:02

Just a hint: v1.30.0 is released for almost a month now. :)

Behem0th commented on 2016-07-17 05:08

For me this works:

DESTDIR=$pkgdir make install

++ mv -v $pkgdir/share/polkit-1/ $pkgdir/usr/share/polkit-1/

# Change Polkit directory permissions to Arch Linux policy

Behem0th commented on 2016-07-17 05:01

I found disparity, polkit-1 directory installed in path $pkgdir/zoneminder/share/
but chmod looking it in path $pkgdir/zoneminder/usr/share/

Behem0th commented on 2016-07-15 20:30

Hello. I have this error during build. Same error in zoneminder-git AUR package.

-- Installing: /home/behem0th/zoneminder/pkg/zoneminder/share/polkit-1/actions/com.zoneminder.systemctl.policy
-- Installing: /home/behem0th/zoneminder/pkg/zoneminder/share/polkit-1/rules.d/com.zoneminder.systemctl.rules
chmod: cannot access '/home/behem0th/zoneminder/pkg/zoneminder/usr/share/polkit-1/rules.d/': No such file or directory
failed to change mode of '/home/behem0th/zoneminder/pkg/zoneminder/usr/share/polkit-1/rules.d/' from 0000 (---------) to 0000 (---------)
==> ERROR: A failure occurred in package().
Aborting...

What i am doing wrong?

JohnnySSH commented on 2016-06-15 12:43

Trying to work on getting the API functioning:

https://forums.zoneminder.com/viewtopic.php?f=34&t=24306

https://github.com/ZoneMinder/ZoneMinder/issues/1227

+ a few more links which am looking at.

Replaced Cake with version 2.8.5 as bundled one gave errors.

Also changed the path of some of the .htaccess files since this version gives: <IP>/zoneminder however, the htaccess were set to /zm/api ; have since changed them to /zoneminder/api

Additionally the Apache modrewrite module was not enabled in the httpd-zoneminder.conf file so I enabled it.

Still not working as modrewrite errors still but am working on it.

Oh one more thing: monitors.jason file missing from /api directory?? Perhaps the current version doesn't come with any more as couldn't find it on Github source page either but for checks would be great to have it included :-)

Apparently there has been a confirmation of getting API and ZM on Arch to work but all steps followed currently still give me errors, wondering if something to do with Apache config file?

frakka commented on 2016-05-24 00:30

Having an error during makepkg (zoneminder 1.29.0-1 and updated system, installed some days ago):

"[ 50%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o
In file included from /tmp/zoneminder/src/ZoneMinder-1.29.0/src/zm_rtp_ctrl.cpp:24:0:
/tmp/zoneminder/src/ZoneMinder-1.29.0/src/zm_rtp_ctrl.h:128:31: error: flexible array member ‘RtpCtrlThread::RtcpPacket::<anonymous union>::Bye::srcN’ in an otherwise empty ‘struct RtpCtrlThread::RtcpPacket::<anonymous union>::Bye’
uint32_t srcN[]; // list of sources
^
/tmp/zoneminder/src/ZoneMinder-1.29.0/src/zm_rtp_ctrl.h:126:20: note: in the definition of ‘struct RtpCtrlThread::RtcpPacket::<anonymous union>::Bye’
struct Bye
^~~
src/CMakeFiles/zm.dir/build.make:710: set di istruzioni per l'obiettivo "src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o" non riuscito
make[2]: *** [src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o] Errore 1
CMakeFiles/Makefile2:390: set di istruzioni per l'obiettivo "src/CMakeFiles/zm.dir/all" non riuscito
make[1]: *** [src/CMakeFiles/zm.dir/all] Errore 2
Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta..."

Any idea?

Thank you very much.

ImNtReal commented on 2016-03-18 20:10

Would you consider adding etc/httpd/conf/extra/httpd-zoneminder.conf to the backup array?

ElMoribond commented on 2015-08-31 12:45

Hello, I have a probleme during build:
/usr/bin/ld: warning: libx264.so.144, needed by /usr/lib/gcc/armv7l-unknown-linux-gnueabihf/5.2.0/../../../libavcodec.so, not found (try using -rpath or -rpath-link)

I have version 148 installed
Have you a idea ?

troydwill commented on 2015-07-26 23:45

I don't think that php-cgi is a dependency if Apache is configured to load mod_php.

zoe commented on 2015-05-06 11:50

Maybe add php-cgi as dependency ?
Because, zoneminder cannot work without it.

zoe commented on 2015-05-06 11:50

Maybe add php-cgi as dependancy ?
Because, zoneminder cannot work without it.

Anonymous comment on 2015-02-27 02:05

You know, I tried looking for that in both the httpd.conf and php.ini files that zoneminder added, and couldn't find it. It's of no matter now, seems an update was released today that fixed this problem. Thank you to the maintainer for the quick fix!

cspence commented on 2015-02-27 01:20

Take a look at the file included in the tar.gz named httpd-zoneminder.conf. It contains a line that starts with php_admin_value open_basedir. The virtual server instance of ZoneMinder redefines open_basedir for itself without affecting the global value found in the php.ini file.

If you need to change the value of open_basedir for ZoneMinder, change it in the httpd-zoneminder.conf file found in /etc/httpd/conf/extra/.

Anonymous comment on 2015-02-26 05:47

This package seems to be breaking php. When it is installed, PHP no longer uses php.ini to get open_basedir. After installation, open_basedir always returns /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/zm.conf:/srv/http/zoneminder/:/var/cache/zoneminder/:/srv/zoneminder/socks/:/var/log/zoneminder/.

I have been trying to find a reason for this, but I cannot. Maybe someone smarter than I can find the problem.

cspence commented on 2015-01-15 23:31

If you're unable to start zoneminder (service script or on the webpage), go to Options on the webpage, go to the Paths tab, change PATH_SOCKS to /srv/zoneminder/socks. This is an unresolved issue with zoneminder source and the cmake script.

cspence commented on 2015-01-14 20:54

filesystem owns it. It is a default symlink on Arch x86_64.

The problem comes from the perl5 library in the package. It attempts to install at /usr/lib64. I've been trying to find the right flags to give cmake to point perl or all library files to /usr/lib by default. If I get the right combination, I'll send it your way.

troydwill commented on 2015-01-14 20:49

cspence: Is /usr/lib64 a symbolic link on your system? Please do 'file /usr/lib64'. Please report what package(s) own /usr/lib64: 'pacman -Qo /usr/lib64'.

cspence commented on 2015-01-14 19:41

Looks like I wasn't the only one having that problem. It appears to be an issue with how pacman 4.2 does not allow for symlinks anymore.

Link to forum thread referring to this issue: https://bbs.archlinux.org/viewtopic.php?pid=1492022

Link to blog post about pacman 4.2 updates (see "Directory Symlink Handling"): http://allanmcrae.com/2014/12/pacman-4-2-released/

cspence commented on 2015-01-14 19:11

Anyone else getting a conflicting files message when they attempt to install zoneminder on an x86_64 machine?

"error: failed to commit transaction (conflicting files)
zoneminder: /usr/lib64 exists in filesystem
Errors occurred, no packages were upgraded."

cspence commented on 2015-01-14 18:06

Instead of creating new packages that will cause conflicts, I would highly suggest reading up on how to resolve out-of-date AUR packages: https://wiki.archlinux.org/index.php/Arch_User_Repository#Foo_in_AUR_is_outdated.3B_what_do_I_do.3F

troydwill commented on 2015-01-05 00:59

The maintainer of perl-x10 requires perl-time-parsedate from the AUR. perl-time-parsedate is in conflict with the official `perl-time-modules.` Therefore I created a `perl-x10-zoneminder` package. I also created a `perl-astro-zoneminder` package for the same reason.

This solves the conflict reported by patryk on 2015-01-04 12:39.

troydwill commented on 2015-01-05 00:58

The maintainer of perl-x10 requires perl-time-parsedate from the AUR. perl-time-parsedate is in conflict with the official `perl-time-modules.` Therefore I created a `perl-x10-zoneminder` package. I also created a `perl-astro-zoneminder` package.

This solves the conflict reported by patryk on 2015-01-04 12:39.

patryk commented on 2015-01-04 12:39

And I have conflict between perl-time-modules and perl-time-parsedate when I build all dependencies.

patryk commented on 2015-01-04 12:37

please add armv7h to arch variable.

alyubomirov commented on 2014-11-11 22:35

I believe 'polkit' is a dependency now.

troydwill commented on 2014-10-30 17:21

zoneminder 1.28.0-1: Updated for ZoneMinder 1.28.0. See https://github.com/ZoneMinder/ZoneMinder/releases

troydwill commented on 2014-09-21 19:07

The is a dependency conflict due to a recent change in the `perl-astro-suntime` package from the AUR. `perl-astro-suntime` conflicts with `perl-x10.` Both `perl-astro-suntime` and `perl-x10` are zoneminder dependencies.

The simplest way to fix the conflict is to change the `depends` in `perl-astro-suntime` from `perl-time-parsedate` to `perl-time-modules.`

troydwill commented on 2014-09-15 19:41

I added /var/cache/zoneminder into the open_basedir variable.

/etc/httpd/conf/httpd.conf and /etc/php/php.ini are not edited in place now. zoneminder installation will write /etc/httpd/conf/httpd.conf.zoneminder and /etc/php/php.ini.zoneminder, which may be inspected and copied to /etc/httpd/conf/httpd.conf and /etc/php/php.ini.

troydwill commented on 2014-09-15 19:36

I added /var/cache/zoneminder into the open_basedir variable.

Previously, /etc/httpd/conf/httpd.conf and /etc/php/php.ini would be edited in place by pacman with sed commands when installing the zoneminder package. Two files will be created upon zoneminder installation: 1. /etc/httpd/conf/httpd.conf.zoneminder, and 2. /etc/php/php.ini.zoneminder. This allows the user to backup httpd.conf and php.ini before copying.

Curious hackers are invited to review the sed expressions the zoneminder.httpd.conf.sed and zoneminder.php.ini.sed which are part of this package.

troydwill commented on 2014-09-14 23:33

troydwill commented on 2014-09-11 20:59

I took over zoneminder AUR maintenance. I created a Github repository for the PKGBUILD at https://github.com/troywill/zoneminder-aur. The main file is zoneminder-aur.org, an Emacs Org Mode (orgmode.org) text file that I use to tangle (see http://en.wikipedia.org/wiki/Literate_programming) the PKGBUILD, httpd-zoneminder.conf, zoneminder, and zoneminder.service files.

There are a number of dependencies of zoneminder package that require building from the AUR. You can download the PKGBUILD tarballs with the following:

wget https://aur.archlinux.org/packages/ca/cambozola/cambozola.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-astro-suntime/perl-astro-suntime.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-expect/perl-expect.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-net-sftp-foreign/perl-net-sftp-foreign.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-php-serialization/perl-php-serialization.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-sys-mmap/perl-sys-mmap.tar.gz
wget https://aur.archlinux.org/packages/pe/perl-x10/perl-x10.tar.gz

tritron commented on 2014-07-02 15:02

I am no longer using zoneminder I found much better software for server 2012 so is all yours please update.

flaccid commented on 2014-06-24 02:36

@tritron did you wanna let me adopt this package to fix it up or can you fix it and update to 1.27.0?

JohnyRi commented on 2014-06-08 08:10

It seems that perl was updated (about 20140603) and Zoneminder service is no longer able to start (SEGFAULT - unauthorized memory access). I found out that perl mmap might be responsible for this behaviour. It appears that editing PKGBUILD and change --enable-mmap=yes\ --> --enable-mmap=no\ solves the problem.

epitron commented on 2014-05-02 19:09

I'm getting the same problem as @munzirtaha; you need to be root to build this package, otherwise you get:

"cannot create directory ‘/var/run/zm’: Permission denied"

Any idea how to fix this?

JohnyRi commented on 2014-04-05 19:22

I decided to add another potentially useful informations.
If you stuck on some problems like me, this might be helpful:
Apache 2.4 configuration:
You must load cgi module, php5 etc, please read LAMP instructions on wiki and Zoneminder's post installation notes (printed in console after install, there are some modules specified).

Alias /zm "/srv/http/zoneminder"
<Directory "/srv/httpd/zoneminder">
Options -Indexes +MultiViews +FollowSymLinks
AllowOverride All
Require all granted
# The code unfortunately uses short tags in many places
php_value short_open_tag 1
</Directory>

ScriptAlias /cgi-bin "/srv/http/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
Options ExecCGI
AllowOverride All
Require all granted
# The code unfortunately uses short tags in many places
php_value short_open_tag 1
</Directory>

For getStreamCmdResponse stream error: socket_sendto:
This could be caused by several reasons:

1) You don't have CGI enabled, or properly configured (see above).
Don't forget to LoadModule cgi_module modules/mod_cgi.so

2) There is bug in hashed access to Zoneminder, therefore AUTH_RELAY option must be set to plain instead of hashed. WARNING: This would cause, that ZM will send account credentials directly in URL!!! It is dangerous to leave this unsecured. Therefore I recommend at least to run your http server in SSL mode and disable unsecured mode for ZM entirely which could be done for example with mod rewrite and rewrite conditions placed in .htaccess. Consider also change of admin password to something unique and not same as password of system user.

3) There might be problem with permissions to /tmp/zm. Ensure httpd is running same user and group as specified in /etc/zm.conf (or vice versa) and directory has also permission properly configured.

gian72 commented on 2014-03-29 23:08

@drewzh. Are you able to compile it from AUR? If yes how? I cannot get it compile on rapsberrypi... Thanks for any hint.

drewzh commented on 2014-03-12 11:25

Can we add armv6h as a compatible arch please?

munzirtaha commented on 2014-02-21 15:31

Couldn't compile it. Running makepkg -s shows:
mkdir: cannot create directory ‘/var/run/zm’: Permission denied
chown: cannot access ‘/var/run/zm’: No such file or directory
chmod: cannot access ‘/var/run/zm’: No such file or directory
Makefile:905: recipe for target 'install-data-hook' failed
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory '/tmp/build/zoneminder/src/ZoneMinder-1.26.3'
Makefile:833: recipe for target 'install-data-am' failed
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory '/tmp/build/zoneminder/src/ZoneMinder-1.26.3'
Makefile:787: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/tmp/build/zoneminder/src/ZoneMinder-1.26.3'
Makefile:486: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...

JohnyRi commented on 2014-02-16 11:13

First,
thank you @alyubomirov for services correction, I can confirm, that your fix helped me a lot. I also discovered another problem and fix to it. ZM is not able to discover browser streaming compatibility, so if you open Monitor live view, there is (or might be) static image, which is refreshed only every few seconds, depending on which bandwidth speed is selected.

To fix this, go to Options, High/Medium/... B/W tab and there is row called "Override the automatic detection of browser streaming capability". This must be set to yes (auto is default).

Hope this helps.

bezerker commented on 2014-02-15 21:06

Any chance this will be updated to the latest version?

I'd love to use it. :P

gian72 commented on 2014-02-03 14:32

Hi layyze thanks for the quick answer.
Is it possible for you to send me the modified file?
Thanks!
Gianluca

layyze commented on 2014-02-01 23:15

Hi Gianluca -
I'm not an expert by an stretch, but the arm processor don't support sse or mmx. I got zm_image.cpp to compile by removing the code blocks that select the SSE2 and SSE3 enabled processes. I also went through and removed the whole sse2 and sse3 blend functions themselves.

gian72 commented on 2014-02-01 13:49

Hi.
I've a raspberry with arch for ARM installed.
I'm now trying to install zoneminder.
I get this strange error during compilation.


zm_image.cpp:5484:3: error: unknown register name '%xmm6' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm5' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm4' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm3' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm2' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm1' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%xmm0' in 'asm'
zm_image.cpp:5484:3: error: unknown register name '%eax' in 'asm'
Makefile:604: recipe for target 'zm_image.o' failed
make[2]: *** [zm_image.o] Error 1
make[2]: Leaving directory '/root/aur/zoneminder/src/ZoneMinder-1.26.3/src'
Makefile:485: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/aur/zoneminder/src/ZoneMinder-1.26.3'
Makefile:392: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...



I've seen some posts but are for the previous version of zoneminder.
Do you have any clue on what is wrong?

In the PKGBUILD file I've added the archmv6h architecture under arch=...

any help is appreciated.

Thanks, Gianluca

alyubomirov commented on 2014-01-30 03:09

I can confirm that the systemd unit is not correct.
In http.service and mysqld.service PrivateTmp=true has to be PrivateTmp= false
http://www.zoneminder.com/forums/viewtopic.php?f=30&t=21806&p=82859&hilit=systemd#p82859
If that is not set starting ZM from the web UI and from the service spawns multiple processes and eventually crashes the server...
Also Required=>Requires= and Restart=>Reload=
My service looks like this:

[Unit]
Description=Capture, analyse, record and monitor video security cameras
Requires=mysqld.service httpd.service
After=mysqld.service httpd.service
[Service]
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
[Install]
WantedBy=multi-user.target

And it survived several restarts.I added httpd because ZM needs it(correct me if I'm wrong).If somebody else can confirm will be great.

aalexanderr commented on 2014-01-29 19:34

I saw video stream, but i got some error in logs.. I how i can fix it ?
got some phoblems:
web_js 281 ERR getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-894590s.sock ) failed: Connection refused - checkStreamForErrors() ?view=watch

web_php 281 ERR socket_sendto( /tmp/zm/zms-894590s.sock ) failed: Connection refused zoneminder/includes/functions.php

pvagner commented on 2014-01-28 17:01

@Fraterius I haven't tweaked PKGBUILD just service files and php.ini settings. ATM I am just using the original PKGBUILD from @tritron I have just downloaded zoneminder 1.26.5 and updated its checksum. However I am considering tweaking /etc/zoneminder/apache.conf file making edits to php.ini unecessary and also including other tweaks. If no one beats me sooner I might be able to send it to @tritron.

thatch commented on 2014-01-23 05:03

needs makdepends added for autoconf and automake.

alyubomirov commented on 2014-01-16 20:03

@pvagner thank you.You are very correct.
I am running latest 1.26.5 and I added 'perl-lwp-protocol-https' in depends= 'cos I'm running it with SSL.
Again NO parallel make(make -j x).
I had to add 'libgcrypt' to depends= and"ZM_SSL_LIB=libgcrypt" to ./configure and the hashed authentication in "Options" now works.
I commented out the moving of 'images' 'events' and 'temp' and the pictures in alarm zones showed up, don't know why?

I am running 6 IP cameras with 960x720(15fps) and my box is "ASUS AT5NM10T-I Intel Atom D525 (1.8GHz, Dual-Core)". All of them are in 'modetect' and my load barely comes to 4.0(which is 100% - 4 cores 'cos of hyper-threading).

The only thing which is left is email notification.
Any help will be greatly appreciated.

tritron commented on 2014-01-16 19:34

Patches are always welcomed. Please email them to me

Fraterius commented on 2014-01-16 19:28

@pvagner can you share yours tweaked PKGBUILD for the latest version? Thx in advance.

pvagner commented on 2014-01-15 20:44

@alyubomirov Edit your php.ini and add /var/cache/zoneminder into the open_basedir variable. The web UI is unable to generate thumbnails and the zone file if this is not added.

pvagner commented on 2014-01-15 20:36

Hey guys, I can confirm last two comments. I have been installing zoneminder on a vanilla arch install and I had to tweak the service files as suggested.
Here are additional tweaks I had to do in order to get this fully working as I wanted it to:
- I had to install perl-lwp-protocol-https in order to allow zoneminder to pass check for updates. It is not needed but it's nice when there are less errors inside the log.
- I had to add /usr/share/cambozola into open_basedir variable inside the php.ini config file because otherwise check for cambozola.jar existence fails.
- Because I had issues with rtsp streaming I have tweaked PKBUILD script locally and installed version 1.26.5 I had to add /tmp/zm into the open_basedir inside php.ini config file because web UI generates its own logs too.
- Finally I was suggesting this before a while but it's still needed I had to add /var/cache/zoneminder into the open_basedir because without adding it using ffmpeg to generate videos fails.
- And also if you wish to use ffmpeg make sure its path is set. It can't be empty. If you know what to put there or you want use the default simply put "ffmpeg" without the quotes.
I think it would be better not to tweak php.ini but instead add all these into the /etc/httpd/conf/extra/httpd-zoneminder.conf with appropriate comments so users can easily review them and tweak them. This way you won't be messing system config.
And yes I think ffmpeg should be listed in the PKGBUILD script as an optional dependency. I am currently running the latest available version and it appears to be working well.

alyubomirov commented on 2014-01-15 14:46

Has anybody been able to see the camera in the 'alarm' settings and set up alarm zones? The picture is not showing up.
By the way, there is new version...

alyubomirov commented on 2014-01-15 14:45

Has anybody been able to see the camera in the 'alarm' settings and set up alarm zones? It is not showing up.
By the way, there is new version...

alyubomirov commented on 2014-01-15 14:43

Has anybody been able to see the camera in the 'alarm' settings and set up alarm zones? It is not showing up.
By the way, there is new version...

barton commented on 2014-01-04 12:46



For me the systemd service unit file also has errors:
Required => Requires
ExecRestart => ExecReload

barton commented on 2014-01-04 12:44

For me the systemd service unit file also has errors:
Requred => Requires
ExecRestart => ExecReload

btweb commented on 2013-12-18 01:40

Couple of comments. I finally got this going after several dedicated hours of debugging :-) I did however reinstall zoneminder on a not so clean fresh install.

1 - mysqld and httpd service files both have set PrivateTmp=true, so zmdc.pl is never going to be able to read /tmp/zm/zmdc.pl? I just commented out PrivateTmp=true, so I hope it's not actually the default.

2 - I could not figure out why connecting to mysqld failed even after many attempts to put various timeouts in Zoneminder::Config.pm or zmpkg.pl. I did notice that systemd is particularly harsh about the whole service not starting up in time, so consequently I set in zoneminder.service [Service] section:

Restart=always
StartLimitInterval=0
StartLimitBurst=0

So it just keeps banging away until mysqld is ready to talk.

I've restarted a couple of times now and zoneminder starts up and the web interface can tell it is running (AND cambozola doesn't say "No main content type" which is what I was going to look at next! :-)

webs1821 commented on 2013-11-21 10:53

With AURA I had the same issue as @zwastik, but I downloaded tarball and with makepkg everything works fine.

tritron commented on 2013-11-11 14:42

Did you run it as root makepkg ?

zwastik commented on 2013-09-18 03:41

make[2]: Entering directory `/tmp/yaourt-tmp-idr/aur-zoneminder/src/ZoneMinder-1.26.3'
/usr/bin/mkdir -p '/tmp/yaourt-tmp-idr/aur-zoneminder/pkg/zoneminder/etc'
/usr/bin/install -c -m 644 zm.conf '/tmp/yaourt-tmp-idr/aur-zoneminder/pkg/zoneminder/etc'
make install-data-hook
make[3]: Entering directory `/tmp/yaourt-tmp-idr/aur-zoneminder/src/ZoneMinder-1.26.3'
( cd /tmp/yaourt-tmp-idr/aur-zoneminder/pkg/zoneminder/etc; chown http:http zm.conf; chmod 600 zm.conf )
( if ! test -e /var/run/zm; then mkdir -p /var/run/zm; fi; if test "/var/run/zm" != "/var/run"; then chown http:http /var/run/zm; chmod u+w /var/run/zm; fi )
mkdir: cannot create directory ‘/var/run/zm’: Permission denied
chown: cannot access ‘/var/run/zm’: No such file or directory
chmod: cannot access ‘/var/run/zm’: No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-idr/aur-zoneminder/src/ZoneMinder-1.26.3'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-idr/aur-zoneminder/src/ZoneMinder-1.26.3'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-idr/aur-zoneminder/src/ZoneMinder-1.26.3'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Makepkg was unable to build zoneminder.

skuda commented on 2013-09-13 13:38

1.26.3 available in http://www.zoneminder.com/downloads

alyubomirov commented on 2013-09-10 20:54

aalexanderr,
you don't need ffmpeg.
Uninstall ffmpeg files and try again.

duli,
you are trying to parallel make.
In PACKAGEDUILD add
options=(!makeflags)

alyubomirov commented on 2013-09-10 20:51

aalexanderr,
you don't need ffmpeg.
Uninstall ffmpeg files and try again.

duli,
you are trying to parallel make.
In PACKAGEDUILD after add
# based of debian squeeze package

options=(!makeflags)

alyubomirov commented on 2013-09-10 20:06

aalexanderr, you don't need ffmpeg.
Uninstall ffmpeg files and try again.

aalexanderr commented on 2013-08-26 20:15

Hello guys can you help me.

1st of all i try to install ffmpeg-git from source and got error at configure:
libavcodec.a is required for MPEG streaming
libavformat.a is required for MPEG streaming
libavdevice.a is required for MPEG streaming
ffmpeg say me:
libavutil
libavcodec
libavformat
libavdevice...

don't know what to do... help me pls.

thefrip commented on 2013-08-16 09:00

Only way to compile without the below error (can't create either /var/log/zm or /var/run/zm) is to chmod /run and /var/log to og+w for the time of the compilation because of an "ugly" hack in the makefile of ZoneMinder. These directories should have been created in the pkg tree but the makefile is actually pointing to the real file system because of the hack.

Anonymous comment on 2013-06-25 03:55

I can't complete makepkg due to permission errors:

mkdir: cannot create directory ‘/var/log/zm’: Permission denied
chown: cannot access ‘/var/log/zm’: No such file or directory
chmod: cannot access ‘/var/log/zm’: No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/duli/pkgbuild/zoneminder/src/ZoneMinder-1.25.0'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/duli/pkgbuild/zoneminder/src/ZoneMinder-1.25.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/duli/pkgbuild/zoneminder/src/ZoneMinder-1.25.0'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...

Should I run makepkg with root privileges? Is this intended?

Tks.

tritron commented on 2013-06-20 03:50

Because the dbi package included with arch Linux does not work when upgrading to per 5.18 you must recompile dbi from cpan by typing in cpanp -i --force DBI

tritron commented on 2013-06-20 03:49

Because the dbi package included with arch Linux does not work when upgrading to per 5.18 yu must recompile dbi from cpan by typing in cpanp -i --force DBI

tritron commented on 2013-05-29 04:14

If you had upgraded to pearl 5.18 that is what is causing problems.

Anonymous comment on 2013-05-29 02:01

I'm out of town for a few days. I'll check this out when I get home, and check in over the weekend. Thanks.

tritron commented on 2013-05-28 00:37

I guess you have brand new install. How did you setup your database ? Did you test
to see if zoneminder user can connect to zoneminder database ? Did you install perl-dbd-mysql?

Anonymous comment on 2013-05-27 22:24

I just installed zoneminder via yaourt, accepting all default PKGBUILD files along the way.

When I try to start zoneminder I get a similar result as RambJoe:

# systemctl start zoneminder
Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.
=====================================

So I ran journalctl -xn, and this is what I got:

# journalctl -xn
-- Logs begin at Mon 2013-05-27 14:21:18 CDT, end at Mon 2013-05-27 17:07:03 CDT. --
May 27 17:07:03 <server> zmpkg.pl[380]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to loca
May 27 17:07:03 <server> zmpkg.pl[380]: Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/site_pe
May 27 17:07:03 <server> zmpkg.pl[380]: BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/ZoneMinder/Config.pm
May 27 17:07:03 <server> zmpkg.pl[380]: Compilation failed in require at /usr/share/perl5/site_perl/ZoneMinder.pm line 33.
May 27 17:07:03 <server> zmpkg.pl[380]: BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/ZoneMinder.pm line 3
May 27 17:07:03 <server> zmpkg.pl[380]: Compilation failed in require at /usr/bin/zmpkg.pl line 37.
May 27 17:07:03 <server> zmpkg.pl[380]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
May 27 17:07:03 <server> systemd[1]: zoneminder.service: control process exited, code=exited status=255
May 27 17:07:03 <server> systemd[1]: Failed to start Capture, analyse, record and monitor video security cameras.
-- Subject: Unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit zoneminder.service has failed.
--
-- The result is failed.
May 27 17:07:03 <server> systemd[1]: Unit zoneminder.service entered failed state.
====================================

I'm a noob, so I'm not sure what I did wrong. Any ideas on what to try? Thanks!!

Anonymous comment on 2013-05-26 00:39

It works now after rebooting, I think the issue might have been because I did a big update for the first time in a while before installing, where even systemd had moved folder.

I don't know if it was just on my messed up install, but when I installed I had to manually create /var/log/zm and /var/somethingelse/zm (can't remember, I thought it was /var/run but I don't seem to have that folder).

Anyway thanks for the help.

tritron commented on 2013-05-25 18:39

Is perl installed ? any issues with it .

Anonymous comment on 2013-05-25 16:53

Yeah I do, when I run that command manually it throws no errors, just "Starting server".

Also, when I try to go to the server from my browser, it says "Could not open config file."

Thanks

tritron commented on 2013-05-25 16:46

Do you have sudo installed ?
Unable to run "sudo -u http /usr/bin/zmdc.pl startup

Anonymous comment on 2013-05-25 16:43

Hi, it won't start for me, I'm getting this error when I do status.

zoneminder.service - Capture, analyse, record and monitor video security cameras
Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled)
Active: failed (Result: exit-code) since Sat 2013-05-25 12:33:33 BST; 3min 25s ago
Process: 4842 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

May 25 12:33:23 localhost sudo[4861]: pam_unix(sudo:session): session closed for user http
May 25 12:33:23 localhost sudo[4866]: root : TTY=unknown ; PWD=/srv/http/zoneminder ; USER=http ; COMMAND=/usr/bin/zmdc.pl startup
May 25 12:33:23 localhost sudo[4866]: pam_unix(sudo:session): session opened for user http by (uid=0)
May 25 12:33:23 localhost zmdc[4870]: INF [Server starting at 13/05/25 12:33:23]
May 25 12:33:25 localhost zmdc[4870]: FAT [Can't bind: Permission denied]
May 25 12:33:33 localhost zmdc[4867]: FAT [Can't connect: Permission denied]
May 25 12:33:33 localhost zmpkg[4842]: ERR [Unable to run "sudo -u http /usr/bin/zmdc.pl startup", output is "Starting server"]
May 25 12:33:33 localhost systemd[1]: zoneminder.service: control process exited, code=exited status=255
May 25 12:33:33 localhost systemd[1]: Failed to start Capture, analyse, record and monitor video security cameras.
May 25 12:33:33 localhost systemd[1]: Unit zoneminder.service entered failed state.

It's weird how it says the output of "Starting server" is an error.

Any ideas?

Thanks.

tritron commented on 2013-05-13 15:50

All you have to do is copy and extract created source file and then makepkg and see if you still have any issue.

Anonymous comment on 2013-05-13 13:58

tritron,
Sorry was away for a few days.
I can run makepkg --source,

Just not sure on the next step.

How should I test the compilation?
run
./configure --prefix=/usr\
--enable-crashtrace=no\
--enable-debug=no\
--enable-mmap=yes\
--sysconfdir=/etc\
--with-cgidir=/srv/http/cgi-bin\
--with-extralibs='-L/usr/lib -L/usr/lib/mysql'\
--with-libarch=lib\
--with-ffmpeg=/usr \
--with-mysql=/usr\
--with-webdir=/srv/http/$pkgbase\
--with-webgroup=http\
--with-webhost=localhost\
--with-webuser=http \

?

Sorry for being a n00bish

Fraterius commented on 2013-05-10 13:36

I've updated with no problem and everything seems to work just fine, go for it ;).

EDIT: and if you're afraid you always can make the package on other machine and check it out yourself.

Fraterius commented on 2013-05-10 13:35

I've updated with no problem and everything seems to work just fine, go for it ;).

pvagner commented on 2013-05-09 21:41

thanks. Also do you guys have issues starting the zoneminder systemd service?
The service starts up fine for me but zoneminder reports it is stopped on the main page. I am currently running zoneminder 1.25.0-24. Is it safe to update?

Fraterius commented on 2013-05-09 20:09

It does compile here with latest ffmpeg from arch repo.

tritron commented on 2013-05-09 15:19

Well prior rev was removing ffmpeg support so that why no ffmpeg is included.
Latest rev I went in and fixed all errors that prevented zone minder from compiling against ffmpeg. Zoneminder code was ffmpeg code was obsoleted by changes made to ffmpeg. The zoneminder-1.25.0-ffmpeg.patch changes number of functions and definitions to match ffmpeg code. I compiled against ffmpeg-git I assume that will compile against ffmpeg included with arch.

pvagner commented on 2013-05-09 15:02

@tritron what version of ffmpeg is this supposed to be compiled against? ffmpeg is even not listed as a dependency. It should at least be added into optional dependencies I think.
Are there other noticeable changes from build 24?

tritron commented on 2013-05-09 14:56

I can't reproduce this error at all. I wonder if that does not work for you you should try to makepkg --source as regular user and see if the source package can be compiled without an issue. If you fail at compiling I can provide you Sam with package just shoot me email.

Anonymous comment on 2013-05-08 15:08

No joy there Fraterius,

I can run cd /root/zoneminder/pkg/zoneminder/etc; chown http:http zm.conf; chmod 600 zm.conf fine. Still throws up the same error.

I don't like the sound of strage directories. Just downloaded and unzipped the tarball. Changed into that directory and ran makepkg -s --asroot.

If I can provide any more information, I'd be happy to do so.
Cheers
Sam


Anonymous comment on 2013-05-08 15:06

No joy there Fraterius,

I can run cd /root/zoneminder/pkg/zoneminder/etc; chown http:http zm.conf; chmod 600 zm.conf fine. Still throws up the same error.

I don't like the sound of strage directories. Just downloaded and unzipped the tarball. Changed into that directory and ran makepkg -s --asroot.

If I can provide any more information, I'd be happy to do so.
Cheers
Sam


Fraterius commented on 2013-05-08 14:36

tritron I ment that maybe there is some way to make such PKGBUILD so there won't be any necessity to build it as root, as it's not recommended way. Except that wverything works just fine.

chuffy very strange behaviour, maybe try to change the permission and ownership of the file. There are some strange directories in your log.

Anonymous comment on 2013-05-08 14:10

Full log here:
http://pastebin.com/2BTg58Dw

If you need it of course :)

Anonymous comment on 2013-05-08 14:06

Hi tritron,
Thanks for getting back to me.

Running as root already
[root@chipper zoneminder]# makepkg -s --asroot

Still giving me the same error as my previous post.

Cheers,
Sam

tritron commented on 2013-05-08 11:51

or now the work around for this is to build package as root so login as root and type in makepkg --asroot

Anonymous comment on 2013-05-08 11:05

Howdy,
Having a problem, compiles ok, failed changing the permissions on the zm.conf.
I can verify that the zm.conf exists in the location.

Command Line output:
http://pastie.org/7817458

Thanks very much tritron for maintaining this package!

tritron commented on 2013-05-07 03:30

I just uploaded new version that does not disable ffmpeg.
What issue do you have with makepkg ? I run it as root when I test my package

Fraterius commented on 2013-05-06 14:33

Everything works great except two things that I noticed. One is that I can't use rtsp protocol (which I used till now), this is strange cause I got such error:

You must have ffmpeg libraries installed to use remote camera protocol 'rtsp' for monitor 1.

and ffmpeg is installed. It works thrue http protocol though with no problems. Second problem is that you must makepkg with root permissions, maybe there is some walkaround to avoid that.

Thanks a lot tritron for your contribution.

Anonymous comment on 2013-05-05 12:29

Well, works great. Just compiled it without any problems. Thx a lot.

tritron commented on 2013-05-05 05:36

I just updated this package to latest working version.

pvagner commented on 2013-02-27 10:04

Okay I have read a lot of comments, skimmed libav doxigen docs and came up with a dirty patch what does the same skuda tried to do in july. It compiles zoneminder binaries against the latest libav-static instead of relying on system-wide ffmpeg libraries. I think this might be also why video export is broken.
I might actually have broken many more things with this patch but it at least compiles and basic functionality is working for me.
I will be testing this and as I find more stuff I might post more patches.
Remember you need libav-static 0.9.2.
http://pastie.org/6346669

pvagner commented on 2013-02-25 19:51

oh guys I have updated my system and zoneminder no longer works and I am unable to compile it against libav-static.
I cant figure it out atm.

Fraterius commented on 2013-02-01 10:39

Unfortunetly it's not it I also had problem with thumbnails and /var/cache/zoneminder is in my open_basedir.

pvagner are you able to create video from events?

pvagner commented on 2013-01-31 08:27

@fraterius check whether php configuration allows accessing /var/cache/zoneminder/ I assume you are having the same issue I have described in my previous comment. Check your openbase_dir setting inside php.ini or if you have modified it then you can also do the settings per virtualhost.

Fraterius commented on 2013-01-29 10:15

Have small issue while trying to make avi out of event. It used to work in old version but now it's not. Not sure what exactly is the reason. Browser throws me: Video Generation Failed!

The log is here: http://dpaste.com/hold/898229/

From my part everything seems to be ok, that's why I'm writing here.

pvagner commented on 2013-01-16 13:45

another little issue. If you will check WEB_LIST_THUMBNAILS in the Options -> Web you will notice the system is unable to generate thumbnails. The fix is to also add /var/cache/zoneminder to the open_basedir directive inside the php.ini . while open_basedir is in effect it also resolves symlinks and path /srv/http/zoneminder/events linked to /var/cache/zoneminder/events cant be opened. I believe this is a good suggestion so this can be added into the PKGBUILD script.

pvagner commented on 2013-01-12 20:24

Guys sorry for too many postings but I have done some further testing.
I have verified when webpage executes command "zmdc.pl check" that script is unable to connect to the socket /tmp/zoneminder/zmdc.sock as client. I have tried to set full permissions on the /tmp/zoneminder folder what should give all users who can actually use sockets right to indeed connect to that socket. Still this does not solve our issue.
Finally I have tried setting suid on the file zmdc.pl what should enable anyone running that script with a root privileges. Still the client socket is not working. I am not using selinux and I have installed nothing like that. What the hell might be blocking this functionality on this system? I think this is essential functionality for zoneminder to work correctly and either I am experiencing it alone or it must be something verry new.
This is all on a fresh arch install.

pvagner commented on 2013-01-12 17:55

I have found out that to solve zoneminder.service not starting using systemctl command I can also edit zoneminder.service and add aline
User=http
This way even zmpkg.pl file will be run as the user http. And it will have enough rights to read a file /etc/zm.conf with permissions set to rwx------.
I have ensured every zm daemon is running as the user http and still web service written in php is unable to exec or shel_exec a command "zmdc.pl check". The command runs but does not correctly identify the status. I am suspecting http user is unable to connect into the socket although it is all weird because all the files /tmp/zoneminder/*.sock are all created by user http with proper permissions.
I am verry new to arch but I am afraid we are triggering some security measure here because even me logged in as a normal user which is a member of the group users is unable to run zmdc.pl check and get the correct status of the zoneminder service.
Guys please please help me out if you can

pvagner commented on 2013-01-11 22:51

Okay guys I am unable to do this remaining fix.
However in the file ajax/status.php there is a reference to function daemonCheck() inside the includes/functions.php .
This function uses exec to launch a command "zmdc.pl check". When I manually execute this from a console as a normal user it prints stopped into the stdout. When I execute it manually as root it correctly outputs running. I have tried allowing http user to spawn a shell. If I use su and run "zmdc.pl check" as the user http it also gives back running. So how does php execute this and which permission might affect this?

pvagner commented on 2013-01-11 21:05

The problem with systemd service not starting zoneminder properly has something to do with permissions of the following file:
/etc/zm.conf
after a clean install it reads as follows
-rwx------ 1 http http
In this state you can go to the zoneminder web interface and you will get a word stopped at the top header. Clicking that word will allow you to start zoneminder however this will not be started as a systemd service.
I have attempted to change the permissions of that file by running
chmod +r /etc/zm.conf
Now I can perfectly start zoneminder by running
systemctl start zoneminder
however web console does report that the zoneminder is stopped so one more fix is in order.

dmast3r1 commented on 2013-01-10 09:06

I do...after a clean arch install am now getting...
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/vendor_perl/ZoneMinder/Logger.pm line 153.
BEGIN not safe after errors--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Logger.pm line 168.
Compilation failed in require at /usr/bin/zmupdate.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 48.
error: command failed to execute correctly

stuck here :-(

asch commented on 2013-01-02 12:02

Do you have created and configured MySQL/Maria database?

dmast3r1 commented on 2012-12-17 19:52

BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/bin/zmupdate.pl line 47.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 47.
error: command failed to execute correctly

Anyone know how to fix this?

asch commented on 2012-12-03 13:56

Done.

moonman commented on 2012-12-03 13:52

Thanks. This build perfectly on arm as well. Would be nice if you guys started including 'arm' in architecture in PKGBUILD for people over at archlinuxarm.org.

asch commented on 2012-11-08 16:42

Yes, I know that a new version at Parabola appeared. I have to consider if moving to another DB backend is what we want here.

Emulatorman commented on 2012-11-08 16:40



zoneminder-1.25.0-24 was released in Parabola distro => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Viewable changes in the previous and last revisions (23 and 24):

*** replacing mysql to mariadb as dependency (it fixes instabilities on video streams)
*** replacing ffmpeg-static to libav-static as dependency (it fixes instabilities on video streams) => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/libav-static
*** fixing error format description (h254 to h264)


Here are the diffs to see the changes:
=> https://projects.parabolagnulinux.org/abslibre.git/diff/pcr/zoneminder/PKGBUILD?id=89e1ad716c3a17463804eef3cb6ab0dd8ec3342d
=> https://projects.parabolagnulinux.org/abslibre.git/diff/pcr/zoneminder/PKGBUILD?id=fe240f7f70d4e6044d2c8d6f02afc2334d7423c5

Emulatorman commented on 2012-11-08 16:39

zoneminder-1.25.0-24 was released in Parabola distro => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Viewable changes in the previous and actual revision (23 and 24):

*** replacing mysql to mariadb as dependency (it fixes instabilities on video streams)
*** replacing ffmpeg-static to libav-static as dependency (it fixes instabilities on video streams) => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/libav-static
*** fixing error format description (h254 to h264)


Here are the diffs to see the changes:
=> https://projects.parabolagnulinux.org/abslibre.git/diff/pcr/zoneminder/PKGBUILD?id=89e1ad716c3a17463804eef3cb6ab0dd8ec3342d
=> https://projects.parabolagnulinux.org/abslibre.git/diff/pcr/zoneminder/PKGBUILD?id=fe240f7f70d4e6044d2c8d6f02afc2334d7423c5

Emulatorman commented on 2012-11-02 20:26

zoneminder-1.25.0-22 was released in Parabola distro => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Viewable changes in this revision:

*** replacing v4l1compat to v4l2convert support


Here is the diff to see the changes => https://projects.parabolagnulinux.org/abslibre.git/commit/?id=7f750709a3282133f01d033de491f085e0070eb0

asch commented on 2012-10-31 08:23

Updated.

Emulatorman commented on 2012-10-31 02:09

zoneminder-1.25.0-21 was released in Parabola distro => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Here are viewable fixed bugs:

*** zones settings now works perfectly

*** http user was added to video group (automatically via install package) to avoid do it manually after installation

*** http user permissions were added for specifics folders


Here is the diff to see the changes => https://projects.parabolagnulinux.org/abslibre.git/commit/?id=e68eec1c1ceb59d4d021275cb5452aec4f1d8fc4

Emulatorman commented on 2012-10-31 02:06

zoneminder-1.25.0-21 was released in Parabola distro => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Here are viewable fixes bugs:

*** zones settings now works perfectly

*** http user was added to video group (automatically via install package) to avoid made it manually after installation

*** http user permissions were added for specifics folders


Here is the diff to see the changes => https://projects.parabolagnulinux.org/abslibre.git/commit/?id=e68eec1c1ceb59d4d021275cb5452aec4f1d8fc4

asch commented on 2012-10-24 18:36

Thanks. Synchronized with PKGBUILD from Parabola linux.

Emulatorman commented on 2012-10-24 17:03

zoneminder-1.25.0-20 was released in Parabola distro with fixes bugs and systemd support. Now is stable => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder

Emulatorman commented on 2012-10-24 17:00

zoneminder-1.25.0-20 was released in Parabola distro with fixes bugs and systemd support. Now is stable => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder/PKGBUILD

Fraterius commented on 2012-10-08 09:43

Ok it should be bold out that if you want automated filters to work you mast create /etc/timezone file (example: Europe/Warsaw) which doesn't exists in arch and as wiki recommends it should be deleted.

asch commented on 2012-09-13 08:24

Accepted, thanks for contribution.

Emulatorman commented on 2012-09-13 00:57

Hi, we added some variables for make command on PKGBUILD to compile correctly => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder/PKGBUILD

Emulatorman commented on 2012-09-13 00:54

Hi, here there are a PKGBUILD that compiles correctly => https://projects.parabolagnulinux.org/abslibre.git/tree/pcr/zoneminder/PKGBUILD

troydwill commented on 2012-09-07 04:19

Hi,
Makefile needs to be patched.
Here's the error I got running makepkg on September 6, 2012:

make[3]: Entering directory `/home/troy/tmp/8PM/zoneminder/src/ZoneMinder-1.25.0'
( cd /home/troy/tmp/8PM/zoneminder/pkg/etc; chown http:http zm.conf; chmod 600 zm.conf )
( if ! test -e /var/run/zm; then mkdir -p /var/run/zm; fi; if test "/var/run/zm" != "/var/run"; then chown http:http /var/run/zm; chmod u+w /var/run/zm; fi )
mkdir: cannot create directory '/var/run/zm': Permission denied
chown: cannot access '/var/run/zm': No such file or directory
chmod: cannot access '/var/run/zm': No such file or directory

I have written a patch to fix the problem by adding a DESTDIR variable instead of the hard coded /var/run directory hack in the Zoneminder Makefile. I have contacted the maintainer about this. Thanks.

Anonymous comment on 2012-09-01 07:46

I confirm it properly builds now with arm. Thanks. By default the patch command matches whitespace strictly. Thus, if the original file used tabs and the patch diff uses spaces, then it won't be able to know where to apply the changes. I think you could avoid it by using "patch -l", but that would also mean a PKGBUILD change.

asch commented on 2012-09-01 06:47

Okay, that was a misapprehension. Now it's fixed and please, let me know, if
everything is ok. Btw, why tabs -> spaces conversion causes problems?

Thanks again.

Anonymous comment on 2012-09-01 04:52

Right. Patch will give an error when running makepkg on the new package on arm because pastebin converted all tabs in arm-context.patch into spaces. You'll only see the build fail on arm because the patch is only conditionally applied when $CARCH==arm. That's why I uploaded my original build onto rapidshare. If you build with the patch file from that, the MD5 sum should check fine, and you shouldn't get an error.

asch commented on 2012-09-01 00:18

ben123: Why do you upload tarball to rapidshare? This new pkgbuild is not working properly on arm?

Anonymous comment on 2012-09-01 00:12

It looks like pastebin turned the tabs into whitespaces and that's why the MD5 sum doesn't match. It won't patch either. I just uploaded my modified tarball to rapidshare. Everything's the same as the original, except for a modified PKGBUILD and an added arm-context.patch file. Thanks for including this in the release. This will make future updating easier.

https://rapidshare.com/files/3218457696/zoneminder.tar.gz

asch commented on 2012-08-31 23:02

ben123: Done, there was a wrong MD5 sum in your PKGBUILD patch at
arm-context.patch. Thank you very much!

Please test on arm!

asch commented on 2012-08-31 23:00

ben123: Done, there was a wrong MD5 sum in your PKGBUILD patch at arm-context.patch.

Please test on arm!

Anonymous comment on 2012-08-31 22:46

Could we modify the PKGBUILD to allow arm support? I just added 'arm' to arch along with a patch:

arch=('i686' 'x86_64' 'arm')

# Patch for ARM
if test "$CARCH" == arm; then
patch -p0 < ../arm-context.patch
fi

The patch was described in this post:

http://www.plugcomputer.org/plugforum/index.php?topic=5956.msg19440#msg19440

Here's my modified PKGBUILD and arm-context.patch

http://pastebin.com/ANBLH8dj
http://pastebin.com/2itrRFge

Zoneminder works nicely on my pogoplug v2 (not pink)

http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray

asch commented on 2012-08-20 20:21

cezarq: It is related to x86_64 architecture. I am using this on x86
architecture with no problem. But it is known problem[1]. Please export library
variable before compilation. I will modify PKGBUILD later(when x86_64 machine
will be available).

Quote[1]:
if you get the configure "error zm requires libmysqlclient.a" with 64 bit
CentOS add the following to the end of your configure statement

--with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql"
Quote end.

[1] http://www.zoneminder.com/wiki/index.php/CentOS

Anonymous comment on 2012-08-20 19:55

I am trying to update my version 1.25.0-10 to 1.25.0-11, but I always got the error: "configure: error: zm requires libmysqlclient.a"

I have the mysql installed and running very well...
# pacman -Q|grep -i mysql
libmysqlclient 5.5.27-3
mysql 5.5.27-3
mysql-clients 5.5.27-3
perl-dbd-mysql 4.021-1

Any ideas how to fix?

asch commented on 2012-08-18 09:42

Fixed compilation issues with actual ffmpeg, libavcodec and kernel35.

Fraterius commented on 2012-08-13 19:18

My log is filled with such output, any ideas how to solve them, or debug would be great.

Aug 13 20:49:46 localhost web_php[16102]: ERR [TypeError: 'undefined' is not an object]
Aug 13 20:52:23 localhost zmfix[16508]: ERR [Can't stat : No such file or directory]
Aug 13 20:52:33 localhost zmdc[16516]: ERR ['zmfilter.pl ' exited abnormally, exit status 9]

Fraterius commented on 2012-08-10 12:06

Maybe anyone knows how to enable ZM_AUTH_TYPE remote with apache, when I try to enter with remote authentication it's going into some kind of loop, even if the acording user (user name) is already created within ZM. From what I've search there's no info about how to manage this kind of authentication.

buhrietoe commented on 2012-08-07 18:23

Fraterius: there is a default /cgi-bin defined in http.conf that you need to comment out for that one to take over. Apologies for the delay in updating, I should have an update out in the next few days.

Fraterius commented on 2012-08-07 17:07

asch yup I agree with you, maybe you know why this doesn't work as I asume it suppouse to?:

ScriptAlias /cgi-bin "/srv/zoneminder/cgi-bin"
<Directory "/srv/zoneminder/cgi-bin">
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

asch commented on 2012-08-07 12:44

Fraterius: It highly depends on your apache/lighttpd/nginx configuration. I
don't like these configurations presented in PKGBUILD, this should user make
himself according to his style of webserver configuration. But it is good
thing, that you write these issues here thus everybody can solve these bugs
faster. Thank you.

Fraterius commented on 2012-08-07 00:34

Another problem is with cgi-bin script witch are installed in wrong dir. Their should be in /srv/http/cgi-bin, otherwise there won't be any liveview from cambozola and plenty of socket errors in log.

Fraterius commented on 2012-08-06 22:23

For Cambozola you need to add /usr/share/cambozola to open_basedir in php.ini

asch commented on 2012-08-06 18:06

Fraterius: If you don't want to run it with sudo, than you have to edit
PKGBUILD(delete actions which requires permissions) and do these actions
manually (creating dirs and chown them).

And other thing, if you want a clean solution, then download sources and
compile them manually, because zoneminder is web application(pretty complicated).

Fraterius commented on 2012-08-06 17:32

asch: It's not the way the package should be build. There isn't any way to repair it in PKGBUILD? I've found this topic on gentoo forum maybe that will help the maintainer to solve the error.

http://forums.gentoo.org/viewtopic-p-6807944.html?sid=d5aaf67e2643f32a9c6098254183e435

I'll play it myself, but I'm not so good with compiling from source. I think it has something to do with ZM_RUNDIR variable. Maybe we can change it for build time and afterwards restore it?

Anonymous comment on 2012-08-06 14:23

When calling /srv/zoneminder/bin/zminit to set admin name/pw I get an error though:
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)

asch commented on 2012-08-06 14:13

Fraterius: Need to build with writing permission to /var :-(. Run with sudo and everything will be okay. This package won't harm your machine(Remember, I can lie).

Fraterius commented on 2012-08-06 14:08

Making this package with patches also fails:

mkdir: cannot create directory ‘/var/run/zm’: Permission denied
chown: cannot access ‘/var/run/zm’: No such file or directory
chmod: cannot access ‘/var/run/zm’: No such file or directory

Don't know why byt it tries to make this dir in wrong place. As to the patches they need to be placed in "$srcdir/ZoneMinder-$pkgver" dir.

Anonymous comment on 2012-08-06 14:03

Nice, pastebin links work again. Gave me not-found error two days ago.
There's a typo: libavcoded -> libavcodec.
The patch files need to be in a particular subfolder, just placing them in the pkgbuild folder doesn't work. I just symlinked them everywhere =P.
Also, had to manually create /var/run/zm and /var/log/zm or building would fail, because it tries to mkdir those folders but gets "permission denied".

asch commented on 2012-08-04 20:19

Jindur: Please, look at 21st comment [Comment by: skuda on Thu, 19 Jul 2012 07:19:05 +0000].

Anonymous comment on 2012-08-04 20:16

asch:
The last 85 (!) comments do not contain "patch-" strings, so I can only guess that you probably meant the two pastebin links given by skuda, which however both no longer exist.
You mentioned 2 specific file names, patch-libavcoded-detection.txt and patch-ffmpeg-0.11.txt, and those can simply not be found anywhere in the comments, so you might want to write more specifically, which patches you refer to.

Anonymous comment on 2012-08-04 20:12

makepkg -s gives error:

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "("
In file included from zm_ffmpeg_camera.cpp:24:0:
zm_ffmpeg_camera.h:39:5: error: ‘AVFormatContext’ does not name a type
zm_ffmpeg_camera.h:41:5: error: ‘AVCodecContext’ does not name a type
...and so on

asch commented on 2012-08-04 13:04

Jindur: Please, delete this looong output of your failed compilation, it really
mess this discussion. Use services like pastebin, to post long outputs. And
read at least 2 pages of discussion before you ask, where to get patches.

Regards.

Anonymous comment on 2012-07-28 13:44

Thankyou for such a quick responce Im working on it right now.

asch commented on 2012-07-28 13:41

1) Downlad tarball with PKGBUILD and extract.
2) cd to directory where extracted.
3) Download 2 patches to this directory.
4) Add these 2 lines under line 39 in PKGBUILD.
* patch -p0 < patch-libavcoded-detection.txt
* patch -p1 < patch-ffmpeg-0.11.txt
5) Run makepkg, this will compile and create package.
6) Run pacman -U zoneminder-*.tar.xz (Name of the package)

Anonymous comment on 2012-07-28 13:19

Could someone direct me on how to apply the two patches to get ffmpeg to compile correctly ?

asch commented on 2012-07-19 22:31

Another wish: Please chmod rc.d/zm from 700 to 755, it is standard for rc scripts.

skuda commented on 2012-07-19 14:31

You need to install cambozola from aur, it's a java applet that handles mjpeg, cambozola only does motion jpeg better than browser directly, it's not needed, in the b/w tab of the configuration you are using (Medium B/W for example) you need to put WEB_H_STREAM_METHOD to "jpeg" but asch i think this discussion it's going out of package management, for this type of help you are better off reading ZoneMinder documentation and asking for help in ZoneMinder forum or #zoneminder irc channel at freenode.

asch commented on 2012-07-19 14:15

I am maybe totaly stupid, but cannot find a way how to do streaming work in linux(firefox). What about this cambozola, I need to setup something? Any way!?

skuda commented on 2012-07-19 14:04

the socket_sendto it's an actual bug but it doesn't create problems, i have two different computers with this error in logs and working fine, are you using cambozola and jpeg streaming? mpeg streaming don't works from linux, only works in windows client using asf format in ZoneMinder and not ever works, if you want live mpeg live you will need to use vlc or any other media player directly.

asch commented on 2012-07-19 13:30

Okay, last problem is this error in the log:
socket_sendto( /srv/zoneminder/socks/zms-082191s.sock ) failed: No such file or directory

And also live video stream is not function, only still pictures from motion
detector, but live view not. I read that there is problem with 'streamer' but I
can't fix it.


skuda commented on 2012-07-19 12:48

It's owned by http, to restart zoneminder i ever use sudo /etc/rc.d/zm restart anyway.

skuda@skuda ~ $ l /etc/zm.conf
-rw------- 1 http http 1297 jul 16 18:35 /etc/zm.conf

asch commented on 2012-07-19 12:46

OK, I have stopped zoneminder, but when I click to start it fails :-(.

zmpkg[2091]: INF [Command: start]
zmdc[2112]: INF [Server starting at 12/07/19 14:36:01]
zmdc[2112]: FAT [Can't bind: Permission denied]
zmdc[2109]: FAT [Can't connect: No such file or directory]
zmpkg[2091]: ERR [Unable to run "/srv/zoneminder/bin/zmdc.pl startup", output is "Starting server"]

What permissions do I need to setup, grrr.

EDIT: I tried to ren zmdc.pl manualy, and it has this problem:
Can't open config file '/etc/zm.conf': Permission denied at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100.

asch commented on 2012-07-19 12:42

OK, I have stopped zoneminder, but when I click to start it fails :-(.

zmpkg[2091]: INF [Command: start]
zmdc[2112]: INF [Server starting at 12/07/19 14:36:01]
zmdc[2112]: FAT [Can't bind: Permission denied]
zmdc[2109]: FAT [Can't connect: No such file or directory]
zmpkg[2091]: ERR [Unable to run "/srv/zoneminder/bin/zmdc.pl startup", output is "Starting server"]

What permissions do I need to setup, grrr.

skuda commented on 2012-07-19 12:32

i guess you already have done this before with old versions and you know http://www.zoneminder.com/wiki/index.php/Uvc too, other than that i have not tried this combination, sorry.

asch commented on 2012-07-19 12:25

Great. But I need one more help. Is someone using this version with mjpg_streamer and usb webcams? When I run mjpg_streamer and run firefox to localhost:8080/?action=stream I see picture, but when I add this webcam to zoneminder, the host is red, so zoneminder cannot "connect" to the host with camera.

skuda commented on 2012-07-19 10:24

glad to help :), buhrietoe will update the package when he review the patches i guess.

asch commented on 2012-07-19 10:20

Wow! Now it works, I did it again and now it compiles ok. Well, my mistake.
Thanks a lot and please, add these two patches into pkgbuild.

skuda commented on 2012-07-19 10:09

wow, it seems not be detecting nothing of ffmpeg, that explains why downgrade ffmpeg doesn't helps, here is mine before apply the patch:

/* #undef HAVE_LIBAVCODEC */
#define HAVE_LIBAVCODEC_AVCODEC_H 1
/* #undef HAVE_LIBAVCORE */
#define HAVE_LIBAVDEVICE 1
#define HAVE_LIBAVFORMAT 1
#define HAVE_LIBAVFORMAT_AVFORMAT_H 1
#define HAVE_LIBAVUTIL 1
#define HAVE_LIBAVUTIL_AVUTIL_H 1

After the patch it's applied i get HAVE_LIBAVCORE defined too and this is the culprit for a correct compilation, in your case configure script is not finding anything, what it's the output of this command on your computer:
pacman -Ql ffmpeg |grep include | grep -E "avutil.h|avcodec.h|avformat.h|avdevice.h"

this is mine:
ffmpeg /usr/include/libavcodec/avcodec.h
ffmpeg /usr/include/libavdevice/avdevice.h
ffmpeg /usr/include/libavfilter/avcodec.h
ffmpeg /usr/include/libavformat/avformat.h
ffmpeg /usr/include/libavutil/avutil.h

asch commented on 2012-07-19 10:02

Patches were applied correctly.

cat config.h | grep LIBAV:
/* #undef HAVE_LIBAVCODEC */
/* #undef HAVE_LIBAVCODEC_AVCODEC_H */
/* #undef HAVE_LIBAVCORE */
/* #undef HAVE_LIBAVDEVICE */
/* #undef HAVE_LIBAVFORMAT */
/* #undef HAVE_LIBAVFORMAT_AVFORMAT_H */
#define HAVE_LIBAVUTIL 1
/* #undef HAVE_LIBAVUTIL_AVUTIL_H */

skuda commented on 2012-07-19 09:57

given the error you still have it seems to be related with the detection of libav, can you post this command result in the src directory where you tried to compile? "cat config.h |grep LIBAV" it's important too that the patch to configure.ac need to be applied with "-p0", the other need "-p1".

asch commented on 2012-07-19 09:50

skuda: These patches doesn't work for me. Still error shown bellow. I also
tried to downgrade ffmpeg, but it didn't help either.

[...]
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:102:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:103:12: error: ‘AVFrame’ does not name a type
zm_local_camera.cpp:44:8: error: ‘PixelFormat’ does not name a type
[...]

skuda commented on 2012-07-19 07:19

Yeah, sure, here they are http://pastebin.com/NT6Lrq0B http://pastebin.com/tnDbLnYP

buhrietoe commented on 2012-07-19 03:31

Skuda, can you chime in again with a new link to the patches you found so I can take a look at them please?

asch commented on 2012-07-19 00:18

Flaging out-of-date to notify author to repair this package.

asch commented on 2012-07-18 23:51

skuda: patches not found, these links seem to be bad.

What about to include theses patches into this pkgbuild?

asch commented on 2012-07-18 23:49

Okay, what about include patches into this PKGBUILD?

skuda commented on 2012-07-16 16:43

Applying this patches resolves the compilation issue http://paste.debian.net/plain/179356 http://paste.debian.net/plain/179357 and it's much better than install another ffmpeg :)

skuda commented on 2012-07-16 12:12

You can use the PKGBUILD at http://pastebin.com/EmVQzqqL to create a ffmpeg-local package in /usr/local, i have borrowed it from older ffmpeg Arch package, after install add to this ZoneMinder PKGBUILD configure line --with-ffmpeg=/usr/local and it will compile fine, maybe someone could create a ffmpeg-0.10.3 AUR package to let this package depends on it.

skuda commented on 2012-07-16 12:10

You can use the PKGBUILD at http://pastebin.com/EmVQzqqL to create a ffmpeg-local package in /usr/local, later change this ZoneMinder PKGBUILD prefix to /usr/local and it will work fine, maybe something should create a ffmpeg-0.10.3 aur package.

skuda commented on 2012-07-16 10:03

It seems ZoneMinder 1.25.0 (latest) don't compile with ffmpeg 0.11.1 (latest too), you should uninstall ffmpeg or install a ffmpeg-0.10.3 build in /usr/local and point configure there.

asch commented on 2012-07-07 11:21

installation fails with:

[...]
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:102:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:103:12: error: ‘AVFrame’ does not name a type
[...]

Any suggestions?

asch commented on 2012-07-07 11:16

installation fails with:

[...]
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:102:5: error: ‘PixelFormat’ does not name a type
zm_local_camera.h:103:12: error: ‘AVFrame’ does not name a type
[...]

Any suggestions?

alexiobash commented on 2012-06-07 19:49

thank you very much

alexiobash commented on 2012-06-07 19:47

configure: error: zm requires Sys::Mmap for mapped memory - set --enable-mmap=no to use IPC shared memory instead

buhrietoe commented on 2012-06-07 19:47

ale_xiovk: I came across that recently too. To fix I re-compiled and installed (makepkg -i) perl-sys-mmap

alexiobash commented on 2012-06-07 19:43

configure: error: zm requires Sys::Mmap for mapped memory - set --enable-mmap=no to use IPC shared memory instead

buhrietoe commented on 2012-05-31 19:03

Soviet: You will have to play around with the settings in the monitor->source tab such as method,channel,format,palette
If you install 'v4l-utils' and run 'qv4l2' it is a handy utility to test /dev/video devices

Anonymous comment on 2012-05-31 18:45

ah yes that works, ever have the problem im experiencing? can see webcam is getting 10.42 FPS in monitor mode, but not showing video?

buhrietoe commented on 2012-05-31 18:41

try '/srv/zoneminder/bin/zmu -q -v'

buhrietoe commented on 2012-05-31 18:40

Soviet: I get detailed output with that command on a system with a capture card. On another system with only network video sources and using something like 'zmu -q -v' for all devices I get nothing

Anonymous comment on 2012-05-31 18:39

i get command not found via 'zmu -q -v', i was wondering if this is why im still experiencing problems. webcam lights up like its on but unable to see any images when monitoring, plus i see the FPS when monitoring.

buhrietoe commented on 2012-05-31 18:27

Soviet: I get detailed output with that command on a system with a capture card. On another system with only network video sources and using something like 'zmu -q -v' for all devices I get nothing

Anonymous comment on 2012-05-31 18:01

should you be able to 'zmu -q -d /dev/video0 -v' from CLI?

buhrietoe commented on 2012-05-31 03:09

Update!

fixed oops 'x86' architecture to 'i686'
Added ZM_PATH_UPDATE=/srv/zoneminder/update to default /etc/zm.conf

troydwill commented on 2012-05-31 02:33

arch=('x86' 'x86_64') should be arch=('i686' 'x86_64') in the PKGBUILD
This is the error message with the current PKGBUILD on my i686 system:
ERROR: zoneminder is not available for the 'i686' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('i686').

skuda commented on 2012-05-30 22:06

Soviet pointed other change i forgot, my zm.conf ended as follow:

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/srv/zoneminder/upgrade
ZM_PATH_UPDATE=/srv/zoneminder/upgrade

ZM_PATH_UPDATE was needed too.

buhrietoe commented on 2012-05-30 21:56

Update!

Changed the ZM_PATH_BUILD in /etc/zm.conf to point to /srv/zoneminder/upgrade

Anonymous comment on 2012-05-30 18:41

had to change /etc/zm.conf to ZM_PATH_UPDATE=/srv/zoneminder/upgrade to get rid of
cat: /zm_create.sql: No such file or directory
DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 92.
Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100.
Compilation failed in require at /srv/zoneminder/bin/zmupdate.pl line 47.
BEGIN failed--compilation aborted at /srv/zoneminder/bin/zmupdate.pl line 47.
/srv/zoneminder/bin/zminit: line 129: /customdb: No such file or directory

had to change /src/zoneminder/bin/zminit /srv/zoneminder/upgrade/customdb $ZM_DB_HOST $ZM_DB_NAME $ZM_DB_USER $ZM_DB_PASS
to get rid of the /srv/zoneminder/bin/zminit: line 129: /customdb: No such file or directory

but now i get this no matter if i 'U' the DB or 'D'
Bareword "ZM_PATH_BUILD" not allowed while "strict subs" in use at /srv/zoneminder/bin/zmupdate.pl line 427.
BEGIN not safe after errors--compilation aborted at /srv/zoneminder/bin/zmupdate.pl line 630.

skuda commented on 2012-05-30 15:08

i updated this package today and i still had to change ZM_PATH_BUILD to /srv/zoneminder/upgrade instead of the autocreated pointing the src compilation build used by yaourt in /tmp in zm.conf

buhrietoe commented on 2012-05-30 01:20

Update! Added dependancies: perl-net-sftp-foreign, perl-mime-tools, perl-io-tty.

steve_v: No where in the source of zoneminder or the AUR packaged is cgi-zm referenced anymore since I took over the package, so not sure why you needed this.

tritron: Not sure on your issue, is your system up to date? outdated arch mirror?

tritron commented on 2012-05-23 01:33

I am unable to compile zoneminder I get this errors
zm_local_camera.h:101:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:102:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:103:12: error: 'AVFrame' does not name a type
zm_local_camera.cpp:44:8: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:259:1: error: 'AVFrame' does not name a type
zm_local_camera.cpp: In constructor 'LocalCamera::LocalCamera(int, const string&, int, int, const string&, int, int, int, int, int, int, int, bool)':
zm_local_camera.cpp:324:9: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:324:39: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:324:53: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:325:9: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:325:79: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:341:27: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:341:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:343:27: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:343:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:464:9: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:464:31: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:464:31: error: expected ';' before 'AVFrame'
zm_local_camera.cpp:488:18: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:488:36: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:490:58: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:493:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:493:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:493:187: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In static member function 'static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)':
zm_local_camera.cpp:774:22: error: 'PATH_MAX' was not declared in this scope
zm_local_camera.cpp:779:21: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:781:22: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:782:29: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:799:67: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:801:54: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:811:92: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:936:91: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:961:82: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1643:16: error: 'AVFrame' does not name a type
zm_local_camera.cpp:1645:14: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1645:32: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1649:146: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1649:176: error: 'sws_getCachedContext' was not declared in this scope
zm_local_camera.cpp:1653:17: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1653:50: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1656:85: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1657:74: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1660:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1660:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:1660:103: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1662:46: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1662:137: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1662:176: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0'
make: *** [all] Error 2

Anonymous comment on 2012-05-18 09:25

Had to change
"ScriptAlias /cgi-bin "/srv/zoneminder/cgi-bin""
to
"ScriptAlias /cgi-zm "/srv/zoneminder/cgi-bin""
in /etc/httpd/conf/http-zm.conf

Missing deps: perl-net-sftp-foreign, perl-mime-tools, perl-io-tty
also, we get bit by something very much like this: https://bbs.archlinux.org/viewtopic.php?id=91981
i.e. "Undefined subroutine &Date::Manip::UnixDate called at /srv/zoneminder/bin/zmfilter.pl line 135, <DATA> line 496"
setting up /etc/timezone is a functional workaround - anyone know how to fix this properly?
Otherwise all good :-)

buhrietoe commented on 2012-05-16 16:43

Update!

Thank you Ganin. I had planned on doing the same but hadn't got to it yet.

Ganin commented on 2012-05-16 15:53

gcc 4.7.x.
zoneminder 1.25.0-6
in PKGBUILD
after "cd "$srcdir/ZoneMinder-$pkgver"
add this
sed -i -e '1 s/^/#include <unistd.h>\n/;' src/zm_logger.cpp
sed -i -e '1 s/^/#include <unistd.h>\n/;' src/zm_thread.h

buhrietoe commented on 2012-04-19 15:18

Notified upstream here:
http://www.zoneminder.com/forums/viewtopic.php?t=19122

buhrietoe commented on 2012-04-17 23:23

@steve_v
I used the patch at the site you listed and also compiled successfully w/ gcc 4.7.x.
However I am not experiencing the same segmentation fault as you and everything seems normal here.
Do you happen to use ccache? You could try disabling it in makepkg.conf or do 'ccache -C'. I've had troubles with it compiling things before.

Anonymous comment on 2012-04-16 05:14

Fixed compilation issue, however /var/log/httpd/error_log says:
"child pid 23470 exit signal Segmentation fault (11)"
when I attempt to load the zm page.
Any ideas what's going on here?

Anonymous comment on 2012-04-16 03:11

Patch for the compile issue / gcc 4.7 can be found here <http://www.linuxquestions.org/questions/slackware-14/zoneminder-1-25-0-wont-build-in-slackware64-current-939357/>
As the man said, this should really be fixed upstream.

buhrietoe commented on 2012-04-13 20:45

UPDATE!

Unfortunately I cannot get Zoneminder to compile on the latest gcc-4.7.0 it seems. If anyone has some time to create some patches to the Zoneminder source it will help upstream. Downgrading to gcc-4.6.3 gave me successful builds. Otherwise this revision 6 incorporates fixes for my typo oopses and such pointed out by b_adele and skuda.

b_adele commented on 2012-03-23 19:59

If you receive this error message"Failure while downloading ZoneMinder-1.25.0.tar.gz
", edit your PKGBUILD and replace this line
source=("http://www2.zoneminder.com/downloads/ZoneMinder-${pkgver}.tar.gz"
by
source=("http://www.zoneminder.com/downloads/ZoneMinder-${pkgver}.tar.gz"

skuda commented on 2012-03-22 18:11

Would be nice to add php-gd and php-mcrypt to depends if they are needed.

skuda commented on 2012-03-22 17:35

in the post install instructions the open_basedir path for zoneminder it is incorrect:

open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/:/src/zoneminder/

should be open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/:/srv/zoneminder/

I suppose too that in zoneminder.install this one:

touch /src/zoneminder/zm_backup.sql

should be:

touch /srv/zoneminder/zm_backup.sql

skuda commented on 2012-03-22 17:22

Hi, i had to define ZM_PATH_UPDATE=/srv/zoneminder/upgrade in /etc/zm.conf to get /srv/zoneminder/bin/zminit to work, before was failing with:

cat: /zm_create.sql: No existe el fichero o el directorio
DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 92.
Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100.
Compilation failed in require at /srv/zoneminder/bin/zmupdate.pl line 47.
BEGIN failed--compilation aborted at /srv/zoneminder/bin/zmupdate.pl line 47.
/srv/zoneminder/bin/zminit: línea 129: /customdb: No existe el fichero o el directorio

because the variable used in zminit didn't exists, i have changed too ZM_PATH_BUILD to /srv/zoneminder/upgrade instead of the autocreated pointing the src compilation build used by yaourt in /tmp

Thanks for the package :)

buhrietoe commented on 2012-02-13 23:36

Update! Removed the custom zmfilter that was in place back to the packaged version. Filters now work such as the built-in 'PurgeWhenFull' filter.

cezarq:
I do not maintain that package but I may pick it up later. charliemouse.com seems to be down for me at the moment so I can't mess with it right now.

Anonymous comment on 2012-02-12 12:21

Have to include in the cambozola PKGBUILD at the line 16:
source /etc/profile.d/apache-ant.sh
ant

:-)

buhrietoe commented on 2012-01-07 14:51

Updated!

Anonymous comment on 2012-01-07 12:57

I don't even own a camera and had no personal way to test it. I simply updated it so a friend didn't have to install Ubuntu to get a package built version.

It was in horrible shape when I got it, and I've just disowned it.

Feel free to grab it and upload your new (better) PKGBUILD.

PS, welcome to Aur! Can always use more hands.

buhrietoe commented on 2012-01-07 04:18

I spent a few hours on this and I believe I got it tip-top.
On a fresh arch install in a VM I setup LAMP+Zoneminder and it compiles and runs correctly. I've also fixed this package to work with arch's rc.d daemon correctly.
I've also done away with the segregation of zoneminder into what I found to be 3 different locations: /usr/lib/zm, /var/lib/zm, /srv/zoneminder. Everything is now all tidy in /srv/zoneminder. Let me know what you think.

Here is the diff of all the aur package files:
http://pastie.org/3141366

buhrietoe commented on 2012-01-07 04:14

I spent a few hours on this and I believe I got it tip-top.
On a fresh arch install in a VM I setup LAMP+Zoneminder and it compiles and runs correctly. I've also fixed this package to work with arch's rc.d daemon correctly.
I've also done away with the segregation of zoneminder into what I found to be 3 different locations: /usr/lib/zm, /var/lib/zm, /srv/zoneminder. Everything is now all tidy in /srv/zoneminder. Let me know what you think.

Here is the diff of all the aur package files:
http://pastie.org/3141366

CPUnltd commented on 2011-11-26 07:01

Wiki REALLY needs an update too... working from zoneminder's wiki is NOT really helping me atm... Can anyone explain how initial basic setup goes? Message me if necessary, but I'm not finding enough info to get this running... and it's annoying me...

Anonymous comment on 2011-10-31 14:31

After multiple attempts: the current PKGBUILD Errors out below. Any Ideas?

zm_signal.cpp: In function ‘void zm_die_handler(int, sigcontext)’:
zm_signal.cpp:91:2: error: ‘struct sigcontext’ has no member named ‘cr2’
make[2]: *** [zm_signal.o] Error 1
make[2]: Leaving directory `/make/zoneminder/zoneminder/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/make/zoneminder/zoneminder/src/ZoneMinder-1.25.0'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Anonymous comment on 2011-09-05 09:33

So I have a new build of this, but I don't have anyway to test it. YMMV. Let me know.

Anonymous comment on 2011-09-03 06:27

Yah I just grabbed it, gonna try (try) to clean it up.

Anonymous comment on 2011-08-05 03:22

Holy hell this is out of date...

Anonymous comment on 2011-05-27 17:23

mootools might be a relic from an older version of PKGBUILD. Too bad aur doesn't get a repository so we know how/why it got removed. ZM release notes show it's still used, although it shows they're now using 1.2. I haven't seen anything break yet with the old one. I think zm_image might have been due to naming collision with jpeg libs and I think 1.24.3 fixed that.

mrechte commented on 2011-05-27 06:42

Thanks for your post.
Where is the mootools.v1.11.js script coming from, it is not downloaded from the PKGBUILD ?
It seems also the zm_image patch is no longer needed in this build.

Anonymous comment on 2011-05-26 19:36

I just rebuilt again with my PKGBUILD and it compiles fine. I had also pacman updated just a couple of days ago. Here's my entire build tarball.

https://rapidshare.com/files/1674546384/zoneminder.tar.gz

The jscalendar link hasn't worked in a long time, so I just used a copy from a previous build. I've also customized some install paths, so please ignore. Sorry. It's hacky. I didn't spend a lot of time tidying this.

mrechte commented on 2011-05-26 11:52

Also your PKGBUILD might be useful. Thanks a lot.

mrechte commented on 2011-05-26 08:08

Hello. I tried your patch, but it fails with:

patching file zm.conf.in
patching file scripts/zmupdate.pl.in
Hunk #1 FAILED at 412.
1 out of 1 hunk FAILED -- saving rejects to file scripts/zmupdate.pl.in.rej

I am not very sure of whitespace characters to be put in the patch files. Could you please attach the patch files ?

Anonymous comment on 2011-05-25 21:16

I had trouble getting 1.24.2 to compile again, so I gave up and instead picked up the newly released 1.24.3 and hacked it to work. Here's what I did:

1. removed zm_libv4l.patch
2. replaced zmupdate.patch with the following

--- ZoneMinder-1.24.3/scripts/zmupdate.pl.in.orig 2011-05-04 07:11:23.000000000 -0700
+++ ZoneMinder-1.24.3/scripts/zmupdate.pl.in 2011-05-24 13:03:06.000000000 -0700
@@ -412,7 +412,7 @@
}
else
{
- $command .= ZM_PATH_BUILD."/db";
+ $command .= ZM_PATH_UPDATE;
}
$command .= "/zm_update-".$version.".sql";

3. replaced Makefile.patch with the following

--- ZoneMinder-1.24.3/Makefile.orig 2011-05-24 13:13:55.000000000 -0700
+++ ZoneMinder-1.24.3/Makefile 2011-05-24 13:18:02.000000000 -0700
@@ -815,9 +815,9 @@
# Yes, you are correct. This is a HACK!
install-data-hook:
( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
- ( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR) )
- ( if ! test -e $(ZM_TMPDIR); then mkdir -p $(ZM_TMPDIR); fi; chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR) )
- ( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR) )
+ ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(DESTDIR)$(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR) )
+ ( if ! test -e $(DESTDIR)$(ZM_TMPDIR); then mkdir -p $(DESTDIR)$(ZM_TMPDIR); fi; chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_TMPDIR); chmod u+w $(DESTDIR)$(ZM_TMPDIR) )
+ ( if ! test -e $(DESTDIR)$(ZM_LOGDIR); then mkdir -p $(DESTDIR)$(ZM_LOGDIR); fi; chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_LOGDIR); chmod u+w $(DESTDIR)$(ZM_LOGDIR) )

uninstall-hook:
@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )

It's been working and stable for a day now. Also, cpu utilization dropped vs. 1.24.2 using ffmpeg capture, which is nice.

mrechte commented on 2011-05-23 17:05

I had forgottent to include those directives before the ./configure:
LDFLAGS="-lv4l1 -lv4l2 ${LDFLAGS}"
export CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
export CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"

Sorry for disturbing. I did not delete my former posts as someone may make the same mistakes than I...

mrechte commented on 2011-05-14 14:45

Adapted slightly DREMA patch to the current version number . But still is fails on:

make[2]: entrant dans le répertoire « /home/mrechte/build/zoneminder/src/ZoneMinder-1.24.2/src »
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -march=i686 -mtune=generic -O2 -pipe -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from /usr/include/libavutil/avutil.h:108:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/include/libavutil/common.h:168:47: erreur: ‘UINT64_C’ was not declared in this scope
make[2]: *** [zmc.o] Erreur 1
make[2]: quittant le répertoire « /home/mrechte/build/zoneminder/src/ZoneMinder-1.24.2/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/mrechte/build/zoneminder/src/ZoneMinder-1.24.2 »
make: *** [all] Erreur 2
==> ERREUR: Une erreur s'est produite dans build().

mrechte commented on 2011-05-08 09:11

Thanks dirkraft. Now I have the same problem as T.ArChEr:

make[2]: entrant dans le répertoire « /home/mrechte/build/zoneminder/src/ZoneMinder-1.24.2/src »
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -march=i686 -mtune=generic -O2 -pipe -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: erreur: declaration of C function ‘void jpeg_mem_src(j_decompress_ptr, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:995:14: erreur: previous declaration ‘void jpeg_mem_src(j_decompress_ptr, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40:81: erreur: declaration of C function ‘void jpeg_mem_dest(j_compress_ptr, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:992:14: erreur: previous declaration ‘void jpeg_mem_dest(j_compress_ptr, unsigned char**, long unsigned int*)’ here
In file included from /usr/include/libavutil/avutil.h:108:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/include/libavutil/common.h:168:47: erreur: ‘UINT64_C’ was not declared in this scope

Any idea ?

Anonymous comment on 2011-05-07 19:06

For videodev.h "Video4Linux" error. This worked for me (well, at least I was able to build the package).
As root...

# locate videodev.h
/usr/include/libv4l1-videodev.h
# ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h

mrechte commented on 2011-05-05 16:27

Hello. First to install one needs to use makepkg --skipinteg
However I get the following error:
configure: error: zm requires Video4Linux to be installed

mrechte commented on 2011-05-05 15:09

makepkg fails with a missing dependency: perl-php-serialization, which does not exist in package base.

DrZaius commented on 2011-01-22 22:14

ffmpeg-svn dependency doesn't exist anymore. You can replace it with ffmpeg from the extra repository or ffmpeg-git from AUR.

Anonymous comment on 2010-11-15 21:42

try the cvs version instead, this should solve your problems.
There where major updates which makes zoneminder 1.24 not build
with this pkgbuild.

Anonymous comment on 2010-11-15 21:22

I did like DREMA write.

1. [Save this on your build directory as zm_image.patch http://aur.pastebin.com/XuriQkXN <--- I created the new file. I saved all text in the file. I Saved this on build directory.]
2. And I used this PKGBUILD http://aur.pastebin.com/0HEzaUAm

but ..
ZoneMinder-1.24.2.tar.gz ... Correct
zm.rc.d ... Correct
zm.conf.patch ... Correct
zmupdate.patch ... Correct
zm_image.patch ... Is Not Correct
Controls_Orbit.sql ... Correct
Makefile.patch ... Correct
zm_libv4l.patch ... Correct
zminit.arch ...Correct
customdb ... Correct
httpd-zm.conf ...Correct
zmfilter.pl ... Correct
jscalendar-1.0.zip ... Correct
cambozola-0.50.tar.gz ... Correct
zmeventbackup ... Correct
==> Error: One file is not correct




Anonymous comment on 2010-11-02 05:56

I have the next problem:

zm_jpeg.h:39:85: error: la declaración de la función C ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ genera un conflicto con
/usr/include/jpeglib.h:959:14: error: declaración previa de ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ aquí
zm_jpeg.h:40:81: error: la declaración de la función C ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ genera un conflicto con
/usr/include/jpeglib.h:956:14: error: declaración previa de ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ aquí
In file included from /usr/include/libavutil/avutil.h:88:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: En la función ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/include/libavutil/common.h:168:47: error: ‘UINT64_C’ no se declaró en este ámbito
make[2]: *** [zmc.o] Error 1

any idea? someone can help me?
please =3

beckus commented on 2010-09-04 13:53

I found it:
http://www.dynarch.com/static/jscalendar-1.0.zip
This should work. I'll give it another try.

beckus commented on 2010-09-04 12:00

jscalendar seems not to be on the website it should be downloaded from. Does anybody know where it is? (perhaps I was to stupid, but I didn't find it)

Anonymous comment on 2010-05-15 17:33

Ok, for get it to compile.

Save this on your build directory as zm_image.patch http://aur.pastebin.com/XuriQkXN

And use this PKGBUILD http://aur.pastebin.com/0HEzaUAm

Hope it helps.

Anonymous comment on 2010-04-08 12:28

Conflicts with

libjpeg

http://bugs.gentoo.org/305201


http://bugs.gentoo.org/attachment.cgi?id=219743

but i dont have an idea how to apply the patch

http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/zoneminder/zoneminder-jpeg.patch?rev=1.1

Maybe this error will accur too

http://bbs.archlinux.org/viewtopic.php?id=72381


pinklerose commented on 2010-04-08 11:28

http://aur.pastebin.com/MuMD9RnS PKGBUILD file corrected by me. Zoneminder however, will not compile.
Error log: http://aur.pastebin.com/cuATwbFL