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

相关推荐
爱就是恒久忍耐8 小时前
老Ubuntu安装podman 5.x版本
linux·ubuntu·podman
奋斗的好青年9 小时前
Ubuntu 修复 GRUB 引导并找回 Windows 双系统启动项(NVMe + MBR 环境)
linux·windows·ubuntu
森森-曦9 小时前
在windows系统上制作启动ubuntu_22.04.5_desktop_amd64.iso启动盘
windows·ubuntu·启动盘
开发者联盟league9 小时前
在ubuntu上安装harbor
linux·运维·ubuntu
MIXLLRED10 小时前
Ubuntu22.04 + ROS2 Humble 安装部署 PCT Planner
ubuntu·ros2·三维路径规划·pct
我先去打把游戏先13 小时前
VMware NAT 模式 Ubuntu 虚拟机「宿主机能上网、虚拟机 ping 不通外网 + apt 更新卡死」全故障复盘
linux·运维·vscode·单片机·嵌入式硬件·ubuntu·keil5
zizle_lin14 小时前
WSL初始化Ubuntu的使用
linux·运维·ubuntu·wsl
溜达的大象14 小时前
Ubuntu服务器之间校时
linux·ubuntu·excel
鹏大师运维14 小时前
Ubuntu 26.04 Linux 7.0内核安装VMware实战
linux·ubuntu·vmware·虚拟机·麒麟·统信uos·linux7.0
Bruce_kaizy14 小时前
c++网络编程——解析主机字节序、网络字节序以及深入剖析tcp编程中万恶的结构体(爆肝)
linux·服务器·网络·tcp/ip·ubuntu