EmixamPP / linux-enable-ir-emitter

Provides support for infrared cameras that are not directly enabled out-of-the box.
MIT License
242 stars 21 forks source link

Cannot Install on OpenSUSE Tumbleweed #87

Closed meechgalhuquot closed 1 year ago

meechgalhuquot commented 1 year ago

I can add the repo to Tumbleweed from the .repo file that is on the COPR page when I manually put in the url from that file, https://download.copr.fedorainfracloud.org/results/emixampp/linux-enable-ir-emitter/opensuse-tumbleweed-$basearch/, however when I try to install the package I get the attached error. I have installed a conflicts.txt I can install opencv through the repos on my device, but it specifically wants that libopencv_aruco.so.406. When I attempt to build the package manually it also fails, just in a different way

EmixamPP commented 1 year ago

I'm not sure to understand

Could you first remove the repo: sudo rm /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:emixampp:linux-enable-ir-emitter.repo

Then, could you give me the outputs of the following commands:

  1. sudo dnf copr enable emixampp/linux-enable-ir-emitter
  2. sudo dnf --refresh install linux-enable-ir-emitter
meechgalhuquot commented 1 year ago

OpenSUSE does not use dnf, while it uses RPM packages the package manager is zypper which does not have copr built into the command

EmixamPP commented 1 year ago

Yes indeed! I forgot. Maybe try to first install opencv (as you already did) but also opencv-devel. Then install linux-enable-ir-emitter, it could be that the dependency is in the devel package.

Otherwise, just build and install it manually using the bash script of the git repo; everything is explained in the readme.

meechgalhuquot commented 1 year ago

errorlog.txt log.txt Rather than trying with the repo again since it wasn't working I tried to build and install manually after ensuring that opencv and opencv-devel were installed and these are the logs I got when running sudo bash installer.sh install 2> errorlog.txt > log.txt

meechgalhuquot commented 1 year ago

And when I try to install through the repo I get this Screenshot_20230117_070142

EmixamPP commented 1 year ago

May be, you could try to find on your computer if a file libopencv_aruco.so* exists (i.e. find / -name libopencv_aruco.so* 2> /dev/null). If so, you could try to create a symbolic link named : libopencv_aruco.so.406 to that file, which in fact is from another version. Most likely, this will not be a problem.

Otherwise, I can do nothing for you, this seems to be an issue of the opencv package on Tumbleweed.

EmixamPP commented 1 year ago

Does this trick work?

meechgalhuquot commented 1 year ago

I cannot find the file with find, however I can see that it is installed in the software list. I wonder if adding the packages to the openSUSE Build Service would resolve issues as then it may auto solve dependencies and could be installed by using the command opi <packagename> image

EmixamPP commented 1 year ago

I cannot find the file with find

This is strange because, if the aruco package in version 407 is installed, the file libopencv_aruco.so407 should be present on the system

Maybe try to install the libopencv3_4 package ? EDIT: and then try again to build and install using the bash script

Honestly, I can't do much about this compilation problem with opencv.

EmixamPP commented 1 year ago

I ran a new build on COPR, but the build fails because of the server, I will try again later.

You will only have to download again the .rpm. I hope it will work! Edit: I'll send a new comment when it's good

EmixamPP commented 1 year ago

The v4.4.0 is ready for release. I still have some details to work out regarding Arch. I will drop all the distributions repositories so, I've changed the way how the dependencies are managed.

You can test in advance the rpm package downloadable here

Let me know if it fix your issue, thanks !

EmixamPP commented 1 year ago

The v4.4.0 has been released and should fix this issue. Feel free to comment if needed

meechgalhuquot commented 1 year ago

image

meechgalhuquot commented 1 year ago

I see I have libopencv 407 packages instead of 406, could that be the issue?, is it calling for 406 specifically? Or is this just a quirk of OpenSUSE package management do you think image

EmixamPP commented 1 year ago

Hum, the package contains all the needed dependencies. Can you add --nodeps to the rpm command ?

meechgalhuquot commented 1 year ago

Screenshot_20230221_025259

EmixamPP commented 1 year ago

This time it should be fine :crossed_fingers:

meechgalhuquot commented 1 year ago

Screenshot_20230222_062553 Progress!!

EmixamPP commented 1 year ago

Can you past the outputs of sudo linux-enable-ir-emitter boot status ?

EmixamPP commented 1 year ago

miss click the close

meechgalhuquot commented 1 year ago

ir-emitter.log

EmixamPP commented 1 year ago

Thanks, it is fixed

meechgalhuquot commented 1 year ago

Fantastic, it appears to be working now!! Thank you for working on this!

EmixamPP commented 1 year ago

You're welcome. If you like the project, do not hesitate to star the repository to support me, thank you !