Open eezstreet opened 4 years ago
float f[params.frameSize.width*params.frameSize.height]; is it really C++ https://en.cppreference.com/w/cpp/language/array ?
I also have the problem with
Severity Code Description Project File Line Suppression State Error C2131 expression did not evaluate to a constant opencv_rgbd
[234] - float f[params.frameSize.width*params.frameSize.height];
[235] - float pixels[params.frameSize.width*params.frameSize.height][3];
I also have the same problem. Error C2131 expression did not evaluate to a constant opencv_rgbd
If you don't need the RGB-Depth Processing module (that's where the error occurs) and just want to compile opencv on windows, just deactivate the extra module with -DBUILD_opencv_rgbd=OFF
during cmake-configure and you are good to go.
Problem is not easy to solve. You can use vector
1>dynafu.obj : error LNK2019: unresolved external symbol glBindRenderbufferEXT referenced in function "public: cdecl cv::dynafu::DynaFuImpl
This module is not compatible with windows and msvc. It is not available in 3.4 branch
I have encountered what seems to be a related problem, when compiling under Linux.
When OPENCV_ENABLE_NONFREE is set, and OpenGL_GL_PREFERENCE is set to GLVND (newer OpenGL), the build fails, with reference to libopencv_rgbd:
../../lib/libopencv_rgbd.so.4.2.0: undefined reference to `glRenderbufferStorageEXT' etc...
But if OpenGL_GL_PREFERENCE is set to LEGACY, there is no error.
Also have the problem:dynafu.cpp:181:26: error: 'glGenRenderbuffersEXT' was not declared in this scope glGenRenderbuffersEXT(1, &fbo_depth);
Reopening... Fix #2679 handles Windows case only, we need similar approach for Linux platform too.
Just adding the 'diff' from GArik's pull to my 4.4.0 release build appears to have fixed the issue on my Jetson nano (running linux).
Confirmed building on Ubuntu 22.04, patch by @GArik works fine
Trying to build OpenCV-4.7.0 and met this same issue.
It looks patch by @GArik works okay for this specific problem. However, I still cannot figure out this issue ...
If you don't need the RGB-Depth Processing module (that's where the error occurs) and just want to compile opencv on windows, just deactivate the extra module with
-DBUILD_opencv_rgbd=OFF
during cmake-configure and you are good to go.
As you said, I solved this issue by Turn OFF rgbd. Thank you ...
System information (version)
Detailed description
With OpenGL enabled and RGBD, it does not compile due to an error:
The exact code that is failing is here:
Steps to reproduce
Compile with OpenGL and RGBD enabled.