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
13.86k stars 1.79k forks source link

SIBR_viewers no binary files are compiled #223

Open ttsesm opened 1 year ago

ttsesm commented 1 year ago

Hi,

I am trying to compile the SIBR_viewers. I followed the corresponding instructions on the README file, and I have also done some adjustments based on my linux distribution, since I am using archlinux instead of ubuntu and while the process seems to go without any apparent issues I cannot get the binary files in the installation folder. Bellow is the cmake configuration:

 $ CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release -DASSIMP_LIBRARY=/usr/lib/libassimp.so -DFFMPEG_LIBAVCODEC_INCLUDE_DIRS=/usr/include/ffmpeg4.4 -DFFMPEG_LIBAVDEVICE_INCLUDE_DIRS=/usr/include/ffmpeg4.4 -DFFMPEG_LIBAVFORMAT_INCLUDE_DIRS=/usr/include/ffmpeg4.4 -DFFMPEG_LIBAVUTIL_INCLUDE_DIRS=/usr/include/ffmpeg4.4 -DFFMPEG_LIBSWSCALE_INCLUDE_DIRS=/usr/include/ffmpeg4.4 -DCMAKE_INSTALL_PREFIX=/home/ttsesm/Development/gaussian-splatting/SIBR_viewers/install/
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 12.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-12 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-12 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.42.0") 
-- Git found: /usr/bin/git
-- SIBR version :
 BRANCH main
 COMMIT_HASH 548202d4874753bbf437025d7c2524a94dc5e091
 TAG 
 VERSION main-548202d
-- Install path set to /home/Development/gaussian-splatting/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 ******************
-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Performing Test HAVE_EGL
-- Performing Test HAVE_EGL - Success
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/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/libGLEW.so
-- FindGLEW: GLEW_STATIC_LIBRARY: GLEW_STATIC_LIBRARY-NOTFOUND
-- FindGLEW: GLEW_LIBRARIES: /usr/lib/libGLEW.so
-- FindGLEW: GLEW_VERSION_MAJOR: 2
-- FindGLEW: GLEW_VERSION_MINOR: 2
-- FindGLEW: GLEW_VERSION_MICRO: 0
-- FindGLEW: GLEW_VERSION: 2.2.0
-- Found GLEW: /usr/include (found version "2.2.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 ASSIMP_DIR
-- Found ASSIMP: /usr/include  
-- Found FFMPEG: /usr/include/ffmpeg4.4  
-- Found Boost: /usr/lib/cmake/Boost-1.83.0/BoostConfig.cmake (found suitable version "1.83.0", minimum required is "1.65.0") found components: system chrono filesystem date_time 
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
There is no provided OpenCV library for your compiler, relying on find_package to find it
-- Found OpenCV: /usr (found suitable version "4.8.0", minimum required is "4.5") 
-- Populating library imgui...
-- Populating library nativefiledialog...
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.38
-- Populating library mrf...
-- Populating library nanoflann...
-- Populating library picojson...
-- Populating library rapidxml...
-- Populating library xatlas...
-- ****************************************************************

-- Adding dataset_tools project
-- BUILD_IBR_DATASET_TOOLS is OFF
-- Adding ulr project
-- BUILD_IBR_ULR is OFF
-- Adding basic project
-- BUILD_IBR_BASIC is 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Development/gaussian-splatting/SIBR_viewers/build

and this is the final list of the compiled libs but no binaries are produced for some reason:

[100%] Linking CXX shared library libsibr_renderer.so
[100%] Built target sibr_renderer
Install the project...
-- Install configuration: "Release"
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libimgui.a
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libimgui.a
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libnativefiledialog.a
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libnativefiledialog.a
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libmrf.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libmrf.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libxatlas.so.1.0
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libxatlas.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libxatlas.so.1.0
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libxatlas.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_system.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_system.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/resources/core/imgui_default.ini
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_graphics.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_graphics.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/addshadow.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/blur.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/colored_mesh.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/colored_mesh.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/copy.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/copy_depth.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depthRenderer.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depthRenderer.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/emotive_relight.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/emotive_relight.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/hdrEnvMap.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/hdrEnvMap.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/longlat.gp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/longlat.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/longlatColor.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/longlatDepth.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/noproj.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/normalRenderer.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/normalRenderer.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/normalRendererGen.gp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/normalRendererGen.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/poisson_diverg.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/poisson_interp.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/poisson_jacobi.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/poisson_restrict.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/positionReflectedDirRenderer.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/positionReflectedDirRenderer.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/positionRenderer.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/positionRenderer.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/shadowMapRenderer.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/shadowMapRenderer.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/texture-invert.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/texture.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/texture.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/textured_mesh.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/textured_mesh.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/textured_mesh_flipY.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_renderer.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_renderer.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_raycaster.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_raycaster.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_mesh.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_mesh.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_per_triangle_normals.geom
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_per_triangle_normals.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_per_vertex_normals.geom
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_colored_per_vertex_normals.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_points.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_points.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_uv_tex.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alpha_uv_tex_array.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alphaimgview.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/alphaimgview.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/anaglyph.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/anaglyph.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/axisgizmo.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/axisgizmo.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/camstub.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/camstub.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depth.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depth.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depthonly.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/depthonly.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/image_viewer.frag
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/image_viewer.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_color.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_color.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_debugview.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_debugview.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_normal.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/mesh_normal.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/number.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/number.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/skybox.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/skybox.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/text-imgui.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/text-imgui.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/texture.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/texture.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/topview.fp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/topview.vp
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/shaders/core/uv_mesh.vert
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_view.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_view.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_scene.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_scene.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_assets.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_assets.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_imgproc.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_imgproc.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/lib/libsibr_video.so
-- Installing: /home/Development/gaussian-splatting/SIBR_viewers/install/bin/libsibr_video.so

any idea what could be the issue, because this is really strange.

Snosixtyboo commented 1 year ago

Hi,

is it possible that you somehow switched to the main branch inside SIBR_viewers? what does git branch tell you?

ttsesm commented 1 year ago

No everything looks fine:

$ git branch
* (HEAD detached at 1419988)
  develop

Also why the branch would affect only the binaries and not the compilation of the libraries as well :thinking: The really strange thing here is that, it compiles without any noticeable issues, it creates the libraries but no binaries.

image

Snosixtyboo commented 1 year ago
-- Adding dataset_tools project
-- BUILD_IBR_DATASET_TOOLS is OFF
-- Adding ulr project
-- BUILD_IBR_ULR is OFF
-- Adding basic project
-- BUILD_IBR_BASIC is 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Development/gaussian-splatting/SIBR_viewers/build

This part is confusing. It should output that the remote and gaussian_viewer targets are either on or off, but it's just not showing anything... are they there in src/projects?

ttsesm commented 1 year ago

Interesting.... No in my src/projects I have the following: image

but I see from the repo that this is how it should be, no?

Snosixtyboo commented 1 year ago

Hi,

no, the structure at commit 1419988 should look like this:

https://gitlab.inria.fr/sibr/sibr_core/-/tree/14199886ae3f42358092c16ada909c1e0b1cba20/src/projects