Installing on MicroOS

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Quantum
Posts: 92
Joined: Fri Mar 25, 2011 3:34 pm

Installing on MicroOS

Post by Quantum »

Need to install on MicroOS, an immutable version of OpenSuse Tumbleweed, but it seems that there are only packages for Leap. Is it possible/advisable to install Leap packages in Tumbleweed?

And it seems there is a vanilla variant which lacks ffmpeg, and an MP variant which depends on VLC's. Well ZM can't do without ffmpeg, so what to do?

For assurance I would just compile ZM, but this is discouraged. Still this may be the only solution on MicroOS.
User avatar
iconnor
Posts: 2925
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Installing on MicroOS

Post by iconnor »

It is discouraged because people don't know what they are doing and we don't have the resources to help them.

It really isn't too bad, but you need to install all the compile time dependencies of which there are a lot.

The cmake command that matches what we do for debian is as follow:

cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_MAN=OFF \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_COLOR_MAKEFILE=ON \
-DZM_RUNDIR=/var/run/zm \
-DZM_SOCKDIR=/var/run/zm \
-DZM_TMPDIR=/var/tmp/zm \
-DZM_LOGDIR=/var/log/zm \
-DZM_WEBDIR=/usr/share/zoneminder/www \
-DZM_CONTENTDIR=/var/cache/zoneminder \
-DZM_PATH_ZMS=/zm/cgi-bin/zms \
-DZM_CGIDIR=/usr/lib/zoneminder/cgi-bin \
-DZM_CACHEDIR=/var/cache/zoneminder/cache \
-DZM_WEB_USER=www-data \
-DZM_WEB_GROUP=www-data \
-DCMAKE_INSTALL_SYSCONFDIR=etc/zm \
-DZM_CONFIG_DIR=/etc/zm \
-DBUILD_TEST_SUITE=0 \
-DZM_NO_PCRE=ON \
-DCMAKE_BUILD_TYPE=Debug
Quantum
Posts: 92
Joined: Fri Mar 25, 2011 3:34 pm

Re: Installing on MicroOS

Post by Quantum »

Interesting, thanks. I need to make a few changes as / and /usr (amongst others) are immutable. I'll translate the dependencies to .rpms.
User avatar
iconnor
Posts: 2925
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Installing on MicroOS

Post by iconnor »

We have a .spec file for building rpms for redhat based distros, so those may be useful as well.
Post Reply