Summary: | graphics/gstreamer1-plugins-opencv and graphics/frei0r-plugins-opencv: fails to build after update graphics/opencv to 4.5 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Vladimir Druzenko <vvd> | ||||||
Component: | Individual Port(s) | Assignee: | freebsd-multimedia (Nobody) <multimedia> | ||||||
Status: | Closed Overcome By Events | ||||||||
Severity: | Affects Some People | CC: | riggs, tcberner | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(multimedia) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
make check-plist ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: include/opencv4/opencv2/viz.hpp Error: Orphaned: include/opencv4/opencv2/viz/types.hpp Error: Orphaned: include/opencv4/opencv2/viz/viz3d.hpp Error: Orphaned: include/opencv4/opencv2/viz/vizcore.hpp Error: Orphaned: include/opencv4/opencv2/viz/widget_accessor.hpp Error: Orphaned: include/opencv4/opencv2/viz/widgets.hpp Error: Orphaned: lib/libopencv_viz.so Error: Orphaned: lib/libopencv_viz.so.4.5 Error: Orphaned: lib/libopencv_viz.so.4.5.1 ===> Checking for items in pkg-plist which are not in STAGEDIR ===> Error: Plist issues found. *** Error code 1 Stop. make: stopped in /usr/ports/graphics/opencv graphics/frei0r-plugins-opencv fails to build too: CMake Error at /usr/local/lib/cmake/opencv4/OpenCVModules.cmake:473 (message): The imported target "opencv_viz" references the file "/usr/local/lib/libopencv_viz.so.4.5.1" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/local/lib/cmake/opencv4/OpenCVModules.cmake" but not all the files it references. Call Stack (most recent call first): /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include) CMakeLists.txt:11 (find_package) -- Configuring incomplete, errors occurred! /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake and /usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake have substring opencv_viz. A commit references this bug: Author: tcberner Date: Sun Jan 31 16:32:31 UTC 2021 New revision: 563495 URL: https://svnweb.freebsd.org/changeset/ports/563495 Log: graphics/gstreamer*-plugins-opencv: fix fallout form OpenCV-4.5.1 upgrade * graphics/gstreamer-plugins-opencv: disabled, as it uses the no longer shipped OpenCV-1.0 API * graphics/gstreamer1-plugins-opencv: fix the configure script to not only look for OpenCV4 <= 4.2.0 => this will be properly fixed with the next upgrade of gstreamer when switching to the meson build system. PR: 253118 Submitted by: VVD <vvd@unislabs.com> Reported by: rhurlin, fluffy, VVD <vvd@unislabs.com> Changes: head/Mk/bsd.gstreamer.mk head/graphics/gstreamer-plugins-opencv/Makefile head/multimedia/gstreamer-plugins/Makefile.common head/multimedia/gstreamer1-plugins/Makefile Created attachment 222068 [details]
Unbreak build of graphics/frei0r-plugins-opencv if math/vtk9 was installed before build of graphics/opencv
Added options: DC1394 GPHOTO2 GSTREAMER OPENJPEG OPENMP V4L VTK.
Suppress using GTK if installed.
Turn off search of WITH_GDAL and WITH_GDCM - they require other libraries.
|
Created attachment 222035 [details] Unbreak build graphics/gstreamer1-plugins-opencv: replace "opencv4 < 4.2.0" on "opencv4 < 5.0.0" Can't detect opencv 4.5.0 due limitation on < 4.2.0 in configure script. There is 2nd bug: can't find -lopencv_viz - not installed by graphics/opencv, but exist in libdata/pkgconfig/opencv4.pc. Testing graphics/opencv - very long build…