Hi, I’m trying to do the same thing but I can’t find a way to do it. I can successfully package my program but then when I go to install it I get an error saying
No, it’s not a typo. It’s copied straight from the error message.
Some time after my original message I managed to fix the issue. Now I reinstalled my OS and need to reinstall OpenCV too, but I’m faced with the same problem again and I don’t remember what I did to fix it since it was more than a year ago…
I should mention that I’m installing OpenCV from the source and not with my package manager (dnf).
That would be ideal since I wouldn’t need to install OpenCV every time, but I never did anything similar and don’t know where to start with CMake and CPack.
CPack is used to generate an installable RPM package of your application. And I think the issue lies there since CMake has no trouble finding OpenCV. In fact when I build the project this line gets printed to the terminal: -- Found OpenCV: /usr/local (found version "4.8.0") found components: core imgcodecs imgproc
To add to this. I can install the application without issues with make like this: make -j$(nproc) && sudo make install. It’s only the RPM file that CPack generates that doesn’t work…
sounds like some “friendly person” added support for this, but never maintained it …
all in all – i think, trying to redistribute opencv libs on your own is a terrible idea.
getting 3rd party deps right on different os’es or even local hardware optimizations is next to impossible, imo.
instruct ppl how to build opencv libs locally, and how to link your prog, much better !
Yeah, that’s what I was doing up until now… My README.md clearly states that it needs OpenCV to work and that the user should install it on their own before proceeding.