Page 1 of 1

Installing on MicroOS

Posted: Mon Feb 12, 2024 4:04 pm
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.

Re: Installing on MicroOS

Posted: Mon Feb 12, 2024 9:11 pm
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

Re: Installing on MicroOS

Posted: Tue Feb 13, 2024 2:27 pm
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.

Re: Installing on MicroOS

Posted: Tue Feb 13, 2024 5:21 pm
by iconnor
We have a .spec file for building rpms for redhat based distros, so those may be useful as well.