Open guhur opened 3 years ago
cool, it works.
My issue on Ubuntu 20.04
/home/Matterport3DSimulator/src/lib/NavGraph.cpp: In member function ‘void mattersim::NavGraph::Location::loadCubemapImages()’:
/home/Matterport3DSimulator/src/lib/NavGraph.cpp:59:89: error: ‘CV_LOAD_IMAGE_ANYDEPTH’ was not declared in this scope
59 | cv::Mat depth = cv::imread(skyboxDir + viewpointId + "_skybox_depth_small.png", CV_LOAD_IMAGE_ANYDEPTH);
| ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/MatterSim.dir/build.make:90: CMakeFiles/MatterSim.dir/src/lib/NavGraph.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/MatterSim.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
As described to the issue https://github.com/peteanderson80/Matterport3DSimulator/issues/80, we can easily upgrade the code to OpenCV 4.
OpenCV 4 is delivered by default in Ubuntu 20.04, and I updated the Dockerfile accordingly.
I observed I was often using the script linked in the issue and reproduced below. So why not creating a PR since it could ease the installation.