FS#70286 - [opencv] opencv has been linked with vtk support enabled
Attached to Project:
Arch Linux
Opened by imtbl (imtbl) - Sunday, 04 April 2021, 16:56 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 04 April 2021, 18:15 GMT
Opened by imtbl (imtbl) - Sunday, 04 April 2021, 16:56 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 04 April 2021, 18:15 GMT
|
Details
Description:
opencv has apparently been linked with vtk support, but vtk is not set as a dependency, only as an optional dependency. This causes the compilation of programs using opencv to fail if vtk is not also installed. It also affects Python programs using opencv (via hdf5 I think?) which will error with `ImportError: libvtkInteractionStyle.so.1: cannot open shared object file: No such file or directory`. Additional info: - Package version: 4.5.2-1 Steps to reproduce: 1. Install `opencv` and `cmake` 2. Download the attached example (code taken from https://docs.opencv.org/master/db/df5/tutorial_linux_gcc_cmake.html) and extract it 3. Run `cd opencv-example ; cmake . ; make` 4. The compilation will fail; see also the included `compilation-error.txt` |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 04 April 2021, 18:15 GMT
Reason for closing: Fixed
Additional comments about closing: python-opencv 4.5.2-2
Sunday, 04 April 2021, 18:15 GMT
Reason for closing: Fixed
Additional comments about closing: python-opencv 4.5.2-2
```
$ python -c "import sys;print(sys.path);import cv2"
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/lib/python3.9/site-packages']
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: libvtkInteractionStyle.so.1: cannot open shared object file: No such file or directory
```
Installed is opencv 4.5.2-1.