Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706040 - media-libs/opencv-4.1.2-r2 : changed library install path and pkgconf *.pc file name result in missing headers and build system problems
Summary: media-libs/opencv-4.1.2-r2 : changed library install path and pkgconf *.pc fi...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-21 22:30 UTC by PusRob
Modified: 2020-01-22 10:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PusRob 2020-01-21 22:30:12 UTC
Hello.

I encountered a problem with opencv after updating from version 3.x to 4.x. It would seem that factory supplied opencv headers (or any other project header for that matter) are missing other factory supplied opencv headers due to a changed install path of the library.

Previously, all opencv headers were installed in /usr/include/opencv2, but now that was changed to /usr/include/opencv4/opencv2, which causes older include paths not to work any more. If I create a /usr/include/opencv2 symlink to /usr/include/opencv4/opencv2, the problems seem to disappear.

I find this change in install path to be pretty severe and unnecessary, especially considering how much damage it does. All previously working projects stopped building because of it, and now all project files using opencv includes now need updating.

Additionally, renaming the /usr/share/pkgconfig/opencv.pc file to opencv4.pc is equally damaging, as qmake is now incapable of finding the opencv lib, unless all qmake build files are updated to use PKGCONFIG += opencv4 instead of opencv.

These renames and path changes break backwards compatibility, not to mention the fact, that by adding major version numbers to the file and folder names will guarantee such breakages in the future. Considering all this, a change back to the original path and names should be considered to avoid such problems in the future.

Thanks for reading.



Reproducible: Always