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
12.46k stars 1.55k forks source link

SIBR viewer build error and cmake unsuccessfully(maybe libsibr_raycaster.so issue) #784

Open ABUSDWUHDUEHYGASJ opened 2 months ago

ABUSDWUHDUEHYGASJ commented 2 months ago

(gaussian_splatting) ubuntu@master:~/wsy/gaussian-splatting-main/SIBR_viewers$ cmake -B build . -DCMAKE_BUILD_TYPE=Release -Dembree_DIR=~/wsy/embree-3.6.1.x86_64.linux -- Git found: /usr/bin/git -- SIBR version : BRANCH COMMIT_HASH TAG VERSION - -- Install path set to /home/ubuntu/wsy/gaussian-splatting-main/SIBR_viewers/install. Note you can provide default program options for Visual Studio target properties by either setting a value for the cmake cached variable 'SIBR_PROGRAMARGS' or by setting a new environment variable 'SIBR_PROGRAMARGS' --

** Handling core dependencies ** Activating EGL support for headless GLFW/GLEW There is no provided GLEW library for your compiler, relying on find_package to find it -- FindGLEW: did not find GLEW CMake config file. Searching for libraries. -- FindGLEW: GLEW_USE_STATIC_LIBS is undefined. Treated as FALSE. -- FindGLEW: GLEW_INCLUDE_DIR: /usr/include -- FindGLEW: GLEW_INCLUDE_DIRS: /usr/include -- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for SHARED: .so;.a -- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for STATIC: .so -- FindGLEW: GLEW_SHARED_LIBRARY_RELEASE: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_STATIC_LIBRARY_RELEASE: GLEW_STATIC_LIBRARY_RELEASE-NOTFOUND -- FindGLEW: GLEW_SHARED_LIBRARY_DEBUG: GLEW_SHARED_LIBRARY_DEBUG-NOTFOUND -- FindGLEW: GLEW_STATIC_LIBRARY_DEBUG: GLEW_STATIC_LIBRARY_DEBUG-NOTFOUND -- FindGLEW: GLEW_SHARED_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_STATIC_LIBRARY: GLEW_STATIC_LIBRARY-NOTFOUND -- FindGLEW: GLEW_LIBRARIES: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_VERSION_MAJOR: 2 -- FindGLEW: GLEW_VERSION_MINOR: 1 -- FindGLEW: GLEW_VERSION_MICRO: 0 -- FindGLEW: GLEW_VERSION: 2.1.0 -- FindGLEW: Creating GLEW::glew imported target. -- FindGLEW: Creating GLEW::GLEW imported target. There is no provided ASSIMP library for your compiler, relying on find_package to find it NO ASSIMP DIR ASSIMP_DIR SETTING ASSIMP DIR ASSIMP_DIR ASSIMP DIR ASSI (gaussian_splatting) ubuntu@master:~/wsy/gaussian-splatting-main/SIBR_viewers$ cmake --build build -j32 --target install Consolidate compiler generated dependencies of target xatlas Consolidate compiler generated dependencies of target nativefiledialog Consolidate compiler generated dependencies of target CudaRasterizer Consolidate compiler generated dependencies of target mrf Consolidate compiler generated dependencies of target imgui [ 2%] Built target xatlas [ 2%] Built target sibr_graphics_resources [ 4%] Built target mrf [ 4%] Built target SIBR_texturedMesh_app_resources [ 8%] Built target imgui [ 8%] Built target sibr_gaussian_shaders [ 11%] Built target nativefiledialog [ 13%] Built target CudaRasterizer Consolidate compiler generated dependencies of target sibr_system [ 23%] Built target sibr_system Consolidate compiler generated dependencies of target sibr_graphics [ 23%] Built target sibr_renderer_shaders [ 23%] Built target sibr_view_shaders [ 23%] Built target PREBUILD [ 35%] Built target sibr_graphics Consolidate compiler generated dependencies of target sibr_video Consolidate compiler generated dependencies of target sibr_assets [ 39%] Built target sibr_video [ 44%] Built target sibr_assets Consolidate compiler generated dependencies of target sibr_raycaster [ 44%] Linking CXX shared library libsibr_raycaster.so /usr/bin/ld: cannot find -lembree collect2: error: ld returned 1 exit status make[2]: [src/core/raycaster/CMakeFiles/sibr_raycaster.dir/build.make:243: src/core/raycaster/libsibr_raycaster.so] Error 1 make[1]: [CMakeFiles/Makefile2:1054: src/core/raycaster/CMakeFiles/sibr_raycaster.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

Any help will be preciate!

GCChen97 commented 1 month ago

Maybe you need this git checkout fossa_compatibility.

sshiningg commented 1 month ago

This works. https://elenacliu.github.io/post/gaussian_splatting/