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

相关推荐
Denzel张7 小时前
ubuntu_dpkg_dep_list
linux·运维·ubuntu
kfepiza8 小时前
lubuntu24.04使用vm-tools
linux·ubuntu
PaLu-LI8 小时前
ORB-SLAM2源码学习:Frame.cc: Frame::isInFrustum 判断地图点是否在当前帧的视野范围内
c++·人工智能·opencv·学习·算法·ubuntu·计算机视觉
doreaming19 小时前
ubuntu colmap 安装2024.11最新
linux·ubuntu·colmap·3dgs
YRr YRr19 小时前
为什么在Ubuntu下使用VScode开发C++程序时需要手动配置链接库
c++·vscode·ubuntu
南棱笑笑生1 天前
20241107给野火LubanCat1-BTB刷Ubuntu的预编译固件并点亮USB接口的热像仪AT600
linux·运维·ubuntu
大飞飞鱼1 天前
Ubuntu 20.04禁用或者移除 cloud-init
运维·服务器·ubuntu
Learning改变世界1 天前
Ubuntu24.04网络异常与应对方案记录
linux·运维·ubuntu
快乐飞奔的小菜鸡1 天前
ThinkBook 14+ 2024 Ubuntu 触控板失效 驱动缺失问题解决
linux·运维·ubuntu
Tfly__1 天前
Ubuntu 20.04 安装 QGC v4.3 开发环境
linux·c++·qt·ubuntu·github·嵌入式·无人机