FS#60901 - opencv: vtk is not optional anymore

Attached to Project: Arch Linux
Opened by Nicola (drakkan) - Saturday, 24 November 2018, 12:45 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 24 November 2018, 12:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

vtk is now required since opencv4

in /usr/lib/pkgconfig/opencv4.pc there is -lopencv_viz

so if you use opencv4.pc you'll get warnings like this one at link time

libvtkInteractionStyle.so.1, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/libopencv_viz.so, not found (try using -rpath or -rpath-link)

and the app will not link,

the solutions is to install vtk, remove -lopencv_viz from the pc file, or not use the pc file at all

This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 24 November 2018, 12:58 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#59745 
Comment by Antonio Rojas (arojas) - Saturday, 24 November 2018, 12:58 GMT
The correct solution is (3), in fact the pkgconfig file is deprecated in 4.0 and not installed by default.

Loading...