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

相关推荐
等风来不如迎风去12 分钟前
用你本地已有的私钥(private key)去 SSH 登录远程 Ubuntu 服务器
服务器·ubuntu·ssh
lijunjun41 分钟前
当ubuntu 系统的IP地址修改之后,gitlab服务应该如何修改?
tcp/ip·ubuntu·gitlab
星源~1 小时前
Linux-Ubuntu系统安装特别指导
linux·qt·ubuntu·嵌入式开发·物联网设备
读书读傻了哟1 小时前
Windows 10 使用 VMware Workstation 搭建 Ubuntu 虚拟机
linux·windows·ubuntu
小锋学长生活大爆炸4 小时前
【知识】Linux将多条指令合并为一条执行
linux·运维·ubuntu
Mr. Cao code17 小时前
Dockerfile 指令详解与实战指南
linux·运维·ubuntu·docker·容器
DrugOne19 小时前
GAMESS 在 Ubuntu 24.04 平台上的编译与配置
linux·python·ubuntu·drugone
Crazy_diamonds20 小时前
ubuntu下桌面应用启动图标的内容文件
linux·ubuntu·intellij-idea
想学全栈的菜鸟阿董1 天前
Ubuntu Linux 入门指南
linux·运维·ubuntu
洛克大航海1 天前
Ubuntu安装JDK与Maven和IntelliJ IDEA
ubuntu·jdk·maven·intellij idea