graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
14.41k stars 1.87k forks source link

Install SIBR_viewers on windows failed #919

Open xuncpp opened 3 months ago

xuncpp commented 3 months ago

Has anyone tried building SIBR_viewers with cmake on Windows? I encountered a problem in cmake, which should be caused by opencv, but I still couldn't solve it. and the error message is as follows:

-- Found a 3rdParty OPENCV dir : D:/project/studytwo/gaussian-splatting/SIBR_viewers/extlibs/opencv.
-- OpenCV ARCH: x64
-- OpenCV RUNTIME:
-- OpenCV STATIC: OFF
CMake Warning at extlibs/opencv/install/OpenCVConfig.cmake:190 (message):
  Found OpenCV Windows Pack but it has no binaries compatible with your
  configuration.

  You should manually point CMake variable OpenCV_DIR to your build of OpenCV
  library.
Call Stack (most recent call first):
  cmake/windows/dependencies.cmake:233 (find_package)
  cmake/windows/include_once.cmake:20 (include)
  src/CMakeLists.txt:46 (include_once)

CMake Error at cmake/windows/dependencies.cmake:233 (find_package):
  Found package configuration file:

    D:/project/studytwo/gaussian-splatting/SIBR_viewers/extlibs/opencv/install/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.
Call Stack (most recent call first):
  cmake/windows/include_once.cmake:20 (include)
  src/CMakeLists.txt:46 (include_once)

-- Configuring incomplete, errors occurred!

Does anyone know how to solve this? Thank you so much!

xuncpp commented 1 month ago

Thank you for your help. I saw that the author recently updated the code base, so I cloned it again and built it successfully. But thank you for your answer anyway.