librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Librealsense + OpenCV build, VTK issue

Open cwule opened this issue 8 years ago • 2 comments

Setup: Win 10 (1709) librealsense 2.9.1 Visual Studio 2015 OpenCV 3.3.1 + Contrib 3.3.1

I am trying to build the OpenCV examples.

My OpenCV (3.3.1) with VTK (tried both 7.0 & 7.1.1) built without errors, and I can run a program including #include <opencv2/opencv.hpp> and eg. the imshow() method without problems.

However, trying to build all the Realsense OpenCV examples (rs-dnn, grabcut, imshow, latency) led to the following error:

Error LNK1104 cannot open file 'vtkRenderingOpenGL.lib'

I found that this might be an issue when building VTK with OpenGL2 vs. OpenGL. Unfortunately, trying to build vtk with these options did not resolve the issue yet.

cwule avatar Feb 07 '18 20:02 cwule

Hi @cwule I don't see the build issue of RealSense OpenCV examples. My build setup as follows: Win10 14393 / VS2015 / librealsense 2.9.1 / OpenCV 3.4

freemanlo avatar Feb 08 '18 07:02 freemanlo

Thanks a lot for the comment. I got it to work with the OpenCV 3.4 prebuilt binaries.

cwule avatar Feb 08 '18 18:02 cwule