Closed xEnVrE closed 3 years ago
cc @Nicogene
@xEnVrE which options did you enable from the cmake?
From what I remember stereo-vision
has several options, not explicitly dependent one from each other, and that may clash between them.
For example, there is COMPILE_LIB
that it is not mandatory, but without it USE_DISPARITYMODULE
doesn't compile or something similar.
In any case, this seems a problem with opencv 4, recently(2 months ago) I experienced similar issues but it is not clear to me if stereo-vision
support opencv2, that it is incompatible with opencv4.
Hi @Nicogene,
the options that I used are COMPILE_LIB
and USE_SFM
.
I though that stereo-vision
was supporting OpenCV 4 as there were some commits in the past about making it OpenCV 4-friendly.
Could you try it with this branch https://github.com/robotology/stereo-vision/tree/fix/compilationScalar ?
(I did not try it because I have issues installing some dependencies)
With that change it compiles (not sure if it compiles with OpenCV < 4.2 though).
It should, cv::Scalar is ther since opencv3 I suppose
Thank you @Nicogene
As per the title,
the build process stops with the following error:
The error seems to be due to the following conversion:
https://github.com/robotology/stereo-vision/blob/8b61da4ce6080e792f17c12c91fc23fda903fdae/modules/SFM/SFM.cpp#L1324
That line of code was changed in a recent PR (see https://github.com/robotology/stereo-vision/pull/30/files).
I am running
Ubuntu 20.04.2
withOpenCV 4.2.0
compiled from source in order to enable non-free SIFT features.