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

相关推荐
让子弹飞027 小时前
36.2Linux单总线驱动DS18B20实验(详细讲解代码)_csdn
linux·ubuntu·驱动的分离和分层
朱自清的诗.10 小时前
使用虚拟机Ubuntu搭建mosquito服务器 使esp32、上位机通信
ubuntu·esp32·mosquito
虎头金猫10 小时前
如何在Linux上使用Docker在本地部署开源PDF工具Stirling PDF:StirlingPDF+cpolar让专业操作像在线文档一样简单
linux·运维·ubuntu·docker·pdf·开源·centos
空灵之海11 小时前
Ubuntu系统安全合规配置
linux·ubuntu·系统安全·1024程序员节
笨鸟贤妃15 小时前
Ubuntu 22.04 安装 Docker & Compose 最新最简单完整指南
ubuntu·docker·compose
leo__52015 小时前
在Ubuntu 22.04系统中无需重启设置静态IP地址
tcp/ip·ubuntu·php
对你无可奈何17 小时前
关于Ubuntu的 update造成的内核升级
运维·服务器·ubuntu
夜无霄19 小时前
安卓逆向(一)Ubuntu环境配置
linux·运维·爬虫·ubuntu
抠脚学代码1 天前
Ubuntu Qt x64平台搭建 arm64 编译套件
数据库·qt·ubuntu
Ribou1 天前
Ubuntu 24.04.2安装k8s 1.33.4 配置cilium
linux·ubuntu·kubernetes