ubuntu22 编译 SIBR 3dgs

1.clone 代码

复制代码
git clone https://github.com/graphdeco-inria/gaussian-splatting.git --recursive

2.基础库文件安装

复制代码
sudo apt install -y libglew-dev libassimp-dev libboost-all-dev libgtk-3-dev libopencv-dev libglfw3-dev libavdevice-dev libavcodec-dev libeigen3-dev libxxf86vm-dev libembree-dev

解决libgtk-3-dev安装冲突问题

https://stackoverflow.com/questions/66375573/install-libgtk-3-dev-on-ubuntu-20-04

复制代码
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgtk-3-dev : Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libatk1.0-dev (>= 2.15.1) but it is not going to be installed
                Depends: libcairo2-dev (>= 1.14.0) but it is not going to be installed
                Depends: libfontconfig1-dev but it is not going to be installed
                Depends: libgdk-pixbuf2.0-dev (>= 2.40.0) but it is not going to be installed
                Depends: libglib2.0-dev (>= 2.57.2) but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.41) but it is not going to be installed
                Depends: libxi-dev but it is not going to be installed
                Depends: libgtk-3-0 (= 3.24.20-0ubuntu1) but 3.24.20-1 is to be installed
E: Unable to correct problems, you have held broken packages.

解决方法:

复制代码
1.vim /etc/apt/sources.list

2.根据自己的操作系统版本添加对应的源
如果是ubuntu20 最后一行添加
deb http://archive.ubuntu.com/ubuntu focal-updates main


如果是ubuntu22,最后一行添加
deb http://archive.ubuntu.com/ubuntu jammy-updates main

3.跟新 sudo apt update
4.重新安装 sudo apt install libgtk-3-dev

3.编译

复制代码
cd SIBR_viewers
cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release # add -G Ninja to build faster
cmake --build build -j24 --target install

4.安装完后,启动程序

安装目录在 SIBR/install/bin

相关推荐
oMcLin11 分钟前
如何在 Ubuntu 22.04 LTS 上部署并优化 OpenStack 云计算平台,实现多租户虚拟化与弹性伸缩?
ubuntu·云计算·openstack
majingming12342 分钟前
ubuntu下的交叉编译
linux·运维·ubuntu
shchojj44 分钟前
ubuntu 因为写错pam.d文件引起的sudo权限丢失
linux·运维·ubuntu
一尘之中2 小时前
Ubuntu 22.04 上 FastAPI 的完整安装与问题解决指南
ubuntu·fastapi·ai写作
Stuomasi_xiaoxin4 小时前
ROS2介绍,及ubuntu22.04 安装ROS 2部署使用!
linux·人工智能·深度学习·ubuntu
MIXLLRED7 小时前
Ubuntu 22.04/ROS2 Humble下使用Intel RealSense D435i相机
ubuntu·d435i·ros2·深度相机
马踏岛国赏樱花7 小时前
Windows与Ubuntu双系统,挂载D/E盘到Ubuntu下时只能读的问题
linux·windows·ubuntu
Levin__NLP_CV_AIGC8 小时前
Ubuntu部署Dufs
linux·运维·服务器·ubuntu·ssh
C_心欲无痕8 小时前
ts - 模板字面量类型与 `keyof` 的魔法组合:`keyof T & `on${string}`使用
linux·运维·开发语言·前端·ubuntu·typescript
知识分享小能手9 小时前
Ubuntu入门学习教程,从入门到精通,Ubuntu 22.04 中的区块链 —— 知识点详解 (23)
学习·ubuntu·区块链