Skip to content

Commit

Permalink
Add instructions for disabling OpenGL/GLFW
Browse files Browse the repository at this point in the history
  • Loading branch information
oseiskar authored Jan 14, 2022
1 parent e834243 commit da3c5b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ Now the `target` folder should contain the binaries `main` and `run-tests`. Afte

To compile faster, pass `-j` argument to `make`, or use a program like `ccache`. To run faster, check `CMakeLists.txt` for some options.

### Troubleshooting: disabling GPU visualizations and acceleration

If you see error messages related to OpenGL or GLFW, try building without visualizations

```bash
cd 3rdparty/mobile-cv-suite && BUILD_VISUALIZATIONS=OFF ./scripts/build.sh
cd ../..; mkdir -p target; cd target
cmake -DBUILD_VISUALIZATIONS=OFF -DUSE_SLAM=ON ..
```
or without any GPU support

```bash
cd 3rdparty/mobile-cv-suite && WITH_OPENGL=OFF BUILD_VISUALIZATIONS=OFF ./scripts/build.sh
cd ../..; mkdir -p target; cd target
cmake -DBUILD_VISUALIZATIONS=OFF -DBUILD_WITH_GPU=OFF -DUSE_SLAM=ON ..
```

### Arch Linux

List of packages needed: clang, cmake, ffmpeg, glfw, gtk3
Expand Down

0 comments on commit da3c5b3

Please sign in to comment.