jahnf / Projecteur

Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
MIT License
379 stars 33 forks source link

Feature: RHEL8 RPM Build #66

Closed aclater closed 4 years ago

aclater commented 4 years ago

I was able to compile projecteur on RHEL8 and it seems to be working. I had to install a few QT libraries, but it works. There was a bit of ham fisted grasping at QT packages, but I could probably produce a list of required RPM's if someone wanted to undertake the effort.

jahnf commented 4 years ago

Yeah why not. But I would definitely need a RHEL8 docker image for that (all the package builds are automated via docker on their respective distribution images) - do you know if there is one?

aclater commented 4 years ago

You have a few options, but I think the RHEL Universal Base Image is the right place to start. It's supported by Red Hat. From the FAQ:

"UBI base image is the new de facto container base image for RHEL 8, and it is available on RHEL 7 as an optional and alternative to the pre-UBI image. The UBI base image is freely redistributable under the UBI EULA."

More @: https://developers.redhat.com/products/rhel/ubi/

jahnf commented 4 years ago

Found this which seems a good start on creating a RHEL8 based docker image: https://medium.com/pareture/docker-basics-dockerised-rhel8-24d49d93e91d

jahnf commented 4 years ago

I might add that a RHEL8 package build does not have a really high priority on my personal list. Contributions are welcome though: Very helpful would be:

aclater commented 4 years ago

Installing a vanilla RHEL8 VM to get the package list together.

aclater commented 4 years ago

On a vanilla RHEL8 Developer free subscription (https://developers.redhat.com/topics/linux/)

Connect RHEL to RH repos using your dev credentials: sudo subscription-manager register sudo subscription-manager refresh sudo subscription-manager attach --auto

sudo dnf -y install qt5-qtbase qt5-qtbase-devel qt5-qtgraphicaleffects qt5-qtx11extras qt5-qt3d-devel qt5-qt3d make cmake git

git clone https://github.com/jahnf/projecteur mkdir build && cd build cmake .. make sudo make install sudo cp 55-spotlight.rules /lib/udev/rules.d/55-spotlight.rules sudo udevadm trigger

Looking into some gotchas for building this into a container w/UBI

jahnf commented 4 years ago

@aclater Thanks for the details. I tried to create a docker build image for Projecteur based on RHEL8 yesterday (like described here https://medium.com/pareture/docker-basics-dockerised-rhel8-24d49d93e91d) but realized, that you can only get qt5 packages with a subscribtion.

This makes it basically not possible to create a docker image (which will be publicly available) for automated builds. The only thing that I could do is to add package information for RHEL8, so that RHEL8 users could run make dist-package and it would build a rpm-package

Red-Hat-Repo-Issue

jahnf commented 4 years ago

@aclater Would a package that was built on CentOS 8, work on RHEL8?

aclater commented 4 years ago

It should - I'm happy to test

jahnf commented 4 years ago

Alright: here you go, please give it a try - the latest builds also have a build for CentOS-8 and also create a package for it:

aclater commented 4 years ago

Binary works for me! Thanks a million. I'll be sure to let other folks @ Red Hat know this is available.

jahnf commented 4 years ago

Perfect, great that it works. Also happy to see that Projecteur being used on a variety of distributions. All future versions will now be additionaly build on CentOS (763632e)