gaussian-splatting
gaussian-splatting copied to clipboard
ubuntu 22.04 SIBR viewer install error
hello, I 'm trying to install SIBR viewer, but I'm having difficulties. Building the SIBR viewer was successful, but cmake fails when installing .
setting : ubuntu 22.04, cuda 12.2, gcc : 11.4.0, g++: 11.4, cmake : 3.22.1
Here is log about error. jinwoo@jinwoo-System-Product-Name:~/gaussian-splatting/SIBR_viewers$ cmake --build build -j24 --target install [ 2%] Built target mrf [ 6%] Built target imgui [ 8%] Built target xatlas [ 10%] Built target sibr_graphics_resources [ 11%] Built target nativefiledialog [ 11%] Built target SIBR_texturedMesh_app_resources [ 13%] Built target CudaRasterizer [ 13%] Built target sibr_gaussian_shaders [ 23%] Built target sibr_system [ 35%] Built target sibr_graphics [ 39%] Built target sibr_video [ 44%] Built target sibr_assets [ 50%] Built target sibr_raycaster [ 60%] Built target sibr_scene [ 60%] Built target sibr_imgproc [ 60%] Built target sibr_renderer_shaders [ 60%] Built target sibr_view_shaders [ 60%] Built target PREBUILD Consolidate compiler generated dependencies of target sibr_view [ 61%] Building CXX object src/core/view/CMakeFiles/sibr_view.dir/SceneDebugView.cpp.o In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp: In constructor ‘sibr::Camera::Camera()’: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:275:49: warning: ‘sibr::Camera::_dirtyViewProj’ will be initialized after [-Wreorder] 275 | mutable bool _dirtyViewProj; ///< Does the camera matrix need an update. | ^~~~~~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:271:57: warning: ‘std::string sibr::Camera::_savePath’ [-Wreorder] 271 | std::string _savePath; ///< Save destination path when reocrding images. | ^~~~~~~~~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:34:17: warning: when initialized here [-Wreorder] 34 | Camera( void ): | ^~~~~~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:285:41: warning: ‘sibr::Camera::_isOrtho’ will be initialized after [-Wreorder] 285 | bool _isOrtho; ///< Is the camera orthographic. | ^~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:284:34: warning: ‘sibr::Vector2f sibr::Camera::_p’ [-Wreorder] 284 | sibr::Vector2f _p = {0.5f, 0.5}; ///< Principal point. | ^~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/graphics/Camera.hpp:34:17: warning: when initialized here [-Wreorder] 34 | Camera( void ): | ^~~~~~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp: At global scope: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:275:54: warning: extra qualification ‘sibr::InputCamera::’ on member ‘loadTransform’ [-fpermissive] 275 | static std::vectorInputCamera::Ptr InputCamera::loadTransform(const std::string& transformPath, int w, int h, std::string extension, const float zNear = 0.01f, const float zFar = 1000.0f, const int offset = 0, const int fovXfovYFlag = 0); | ^~~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp: In constructor ‘sibr::InputCamera::InputCamera()’: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:328:22: warning: ‘sibr::InputCamera::_h’ will be initialized after [-Wreorder] 328 | uint _h; ///< Image height | ^~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:319:22: warning: ‘uint sibr::InputCamera::_id’ [-Wreorder] 319 | uint _id; ///< Input camera id | ^~~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:16, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/assets/InputCamera.hpp:50:17: warning: when initialized here [-Wreorder] 50 | InputCamera() : | ^~~~~~~~~~~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/InteractiveCameraHandler.hpp:24, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:23, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp: In constructor ‘sibr::Orbit::OrbitParameters::OrbitParameters()’: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:120:101: warning: ‘sibr::Orbit::OrbitParameters::roll’ will be initialized after [-Wreorder] 120 | float theta, phi, roll; ///< Orbit angles. | ^~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:112:81: warning: ‘sibr::Orbit::OrbitParameters::OrbitDirection sibr::Orbit::OrbitParameters::direction’ [-Wreorder] 112 | OrbitDirection direction; ///< Current motion direction. | ^~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:98:25: warning: when initialized here [-Wreorder] 98 | OrbitParameters(void) : factor(0), status(STATIC), | ^~~~~~~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:112:81: warning: ‘sibr::Orbit::OrbitParameters::direction’ will be initialized after [-Wreorder] 112 | OrbitDirection direction; ///< Current motion direction. | ^~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:108:89: warning: ‘bool sibr::Orbit::OrbitParameters::keepCamera’ [-Wreorder] 108 | bool keepCamera; ///< ? | ^~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/Orbit.hpp:98:25: warning: when initialized here [-Wreorder] 98 | OrbitParameters(void) : factor(0), status(STATIC), | ^~~~~~~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp: In member function ‘virtual void sibr::SceneDebugView::onUpdate(sibr::Input&, float, const sibr::Viewport&)’: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:329:73: error: cannot bind non-const lvalue reference of type ‘sibr::Matrix4f&’ {aka ‘Eigen::Matrix<float, 4, 4, 2>&’} to an rvalue of type ‘sibr::Matrix4f’ {aka ‘Eigen::Matrix<float, 4, 4, 2>’} 329 | getMeshData("scene cam").setTransformation(scaled.matrix()); | ~~~~~~~~~~~~~^~ In file included from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/SceneDebugView.hpp:28, from /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:13: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/./core/view/MultiMeshManager.hpp:247:61: note: initializing argument 1 of ‘sibr::MeshData& sibr::MeshData::setTransformation(sibr::Matrix4f&)’ 247 | MeshData& setTransformation(sibr::Matrix4f& tr); | ~~~~~~~~~~~~~~~~^~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp: In member function ‘void sibr::SceneDebugView::gui_cameras()’: /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:520:44: warning: format not a string literal and no format arguments [-Wformat-security] 520 | ImGui::Text(name.c_str()); | ~~~~~~~~~~~^~~~~~~~~~~~~~ /home/jinwoo/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp:584:44: warning: format not a string literal and no format arguments [-Wformat-security] 584 | ImGui::Text(tmp.str().c_str()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ gmake[2]: *** [src/core/view/CMakeFiles/sibr_view.dir/build.make:244: src/core/view/CMakeFiles/sibr_view.dir/SceneDebugView.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:1089: src/core/view/CMakeFiles/sibr_view.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2
I am also facing the same issue
I fixed the problem by replacing line 329 of /gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cpp by these lines:
sibr::Matrix4f tempMatrix = scaled.matrix();
getMeshData("scene cam").setTransformation(tempMatrix);
OK
thank you!
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
Thank you
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
Thanks!
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
Hi, thanks for this. It was added in the last commit in dev branch.
This allowed me to install as well. My SceneDebugView.cpp line 327-329 now looks like this:
sibr::Transform3f scaled = _userCurrentCam->getCamera().transform(); sibr::Matrix4f tempMatrix = scaled.matrix(); getMeshData("scene cam").setTransformation(tempMatrix);
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
Thank you, This works beautifully.
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
It worked, thank you so much!
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
It worked smoothly, Thanks!
I fixed the problem by replacing line 329 of
/gaussian-splatting/SIBR_viewers/src/core/view/SceneDebugView.cppby these lines:sibr::Matrix4f tempMatrix = scaled.matrix();getMeshData("scene cam").setTransformation(tempMatrix);
It worked! Thank you, you wonderful person :D
thanks,dalao
Hi, I am also using Ubuntu, and I am facing difficulties installing simple_knn. How did you solve the installation problem?