Skip to content

Commit

Permalink
Instructions for PPA (#47)
Browse files Browse the repository at this point in the history
* add glim ppa

* trigger on push to master
  • Loading branch information
koide3 authored Jul 26, 2024
1 parent 3d65b3b commit 59251e1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 47 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/gendoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: gendoc

on:
push:
tags:
- '*'
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
101 changes: 56 additions & 45 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

GLIM is tested on Ubuntu 22.04 / 24.04 with CUDA 12.2, and NVIDIA Jetson Orin (JetPack 6.0).
GLIM is tested on Ubuntu 22.04 / 24.04 with CUDA 12.2 / 12.5, and NVIDIA Jetson Orin (JetPack 6.0).

You can build and install GLIM from source code, or install pre-built binaries from PPA.

## Install from source

### Common dependencies

#### From source

```bash
# Install dependencies
sudo apt install libomp-dev libboost-all-dev libmetis-dev \
Expand Down Expand Up @@ -46,48 +46,6 @@ sudo make install
sudo ldconfig
```

#### From [PPA](https://koide3.github.io/ppa/) [Ubuntu 24.04 , 22.04, 20.04 / AMD64, ARM64]

##### Prequiresite

```bash
sudo apt install curl gpg
```

##### Setup PPA for Ubuntu 24.04

```bash
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2404/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2404 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list
```

##### Setup PPA for Ubuntu 22.04

```bash
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2204/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2204 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list
```

##### Setup PPA for Ubuntu 20.04

```bash
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2004/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2004 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list
```

##### Install dependencies

```bash
sudo apt update
sudo apt install -y libiridescence-dev libboost-all-dev libglfw3-dev libmetis-dev

# Choose one of the follows
sudo apt install -y libgtsam-points-dev # without CUDA
sudo apt install -y libgtsam-points-cuda-12.2-dev # with CUDA 12.2
sudo apt install -y libgtsam-points-cuda-12.5-dev # with CUDA 12.5
```


### Install GLIM for ROS1

```bash
Expand Down Expand Up @@ -123,3 +81,56 @@ colcon build

!!! note
While AVX intrinsics can be enabled to speed up the mapping process by setting ```BUILD_WITH_MARCH_NATIVE=ON```, it sometimes causes segfaults unless ```march=native``` is properly set for *every* involved library. We recommend keeping it disabled if you are not sure.



## Install from [PPA](https://koide3.github.io/ppa/) [Ubuntu 24.04 , 22.04, 20.04 / AMD64, ARM64]

### Prequiresite

```bash
sudo apt install curl gpg
```

### Setup PPA

```bash
# Choose one of the follows

# Automatically select ubuntu version via online script
curl -s https://koide3.github.io/ppa/setup_ppa.sh | sudo bash

# Manually setup PPA for Ubuntu 24.04
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2404/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2404 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list

# Manually setup PPA for Ubuntu 22.04
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2204/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2204 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list

# Manually setup PPA for Ubuntu 20.04
curl -s --compressed "https://koide3.github.io/ppa/ubuntu2004/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/koide3_ppa.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/koide3_ppa.gpg] https://koide3.github.io/ppa/ubuntu2004 ./" | sudo tee /etc/apt/sources.list.d/koide3_ppa.list
```

### Install dependencies

```bash
sudo apt update
sudo apt install -y libiridescence-dev libboost-all-dev libglfw3-dev libmetis-dev

# Choose one of the follows
sudo apt install -y libgtsam-points-dev # without CUDA
sudo apt install -y libgtsam-points-cuda-12.2-dev # with CUDA 12.2
sudo apt install -y libgtsam-points-cuda-12.5-dev # with CUDA 12.5
```

### Install GLIM for ROS2

```bash
# Choose one of the follows
sudo apt install -y ros-humble-glim-ros # Without CUDA
sudo apt install -y ros-humble-glim-ros-cuda12.2 # With CUDA 12.2
sudo apt install -y ros-humble-glim-ros-cuda12.5 # With CUDA 12.5
```

0 comments on commit 59251e1

Please sign in to comment.