cctv-viewer icon indicating copy to clipboard operation
cctv-viewer copied to clipboard

[GUIDE] How to build and launch on Alpine Linux

Open erkexzcx opened this issue 1 year ago • 3 comments

I've got it deployed on Alpine Linux, minimal distro flavor. If you install xorg-server, you can technically launch this application without any other desktop environment or windows manager.

Here are the instructions:

# Uncomment non-edge main and community repositories in /etc/apk/repositories
# Do it manually, I don't have a command for it

# Install build dependencies
apk add alpine-sdk make cmake qt5-qttools-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev ffmpeg-dev

# Install runtime dependencies
apk add qt5-qtquickcontrols2 qt5-qtquickcontrols qt5-qtsvg

# Clone this repo
git clone --recurse-submodules https://github.com/iEvgeny/cctv-viewer

# Enter the repo
cd cctv-viewer/

# Build binary (2 commands)
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make

# Binary will appear:
cctv-viewer

Obviously it will not run since you need graphics. Here is how I run it:

# Install xorg server and intel drivers
apk add xorg-server mesa-dri-gallium

# Run it in xorg-server
xinit cctv-viewer -geometry 1920x1080

Tips for the author:

  • Hopefully you are not drafted into the military and you won't be.
  • Please, implement a hardware acceleration. This would make this software 20x times better
  • Add GitHub workflows to properly build & release this package on GitHub.
  • Alpine Linux does not support snapd, but it supports Flatpaks. Suggestion - create package for Flatpaks too?

erkexzcx avatar May 06 '23 20:05 erkexzcx

Hi! The work on implementation of hardware decoding acceleration is completed according to my estimations by 60-70%. Unfortunately, I have an acute shortage of free time. No plans for Flatpak yet.

iEvgeny avatar May 08 '23 17:05 iEvgeny

HW is available right now: #9 Please test it.

iEvgeny avatar Nov 02 '23 15:11 iEvgeny

Hi. Yes, I've been pinged in another issue. For sure I will test it and report if any issues. Either this weekend or another week.

erkexzcx avatar Nov 02 '23 16:11 erkexzcx