Blame
|
1 | # Building Pointcaster |
||||||
| 2 | ||||||||
|
3 | Source code for Pointcaster is available [on Github](https://github.com/eidetic-av/pointcaster). |
||||||
| 4 | ||||||||
| 5 | Start by cloning the repository. |
|||||||
| 6 | ||||||||
|
7 | ## Linux |
||||||
| 8 | ||||||||
|
9 | Builds on Linux use a containerised environment created using the [Dockerfile](https://github.com/eidetic-av/pointcaster/blob/qt/Dockerfile) in the root of the repository. This handles download, installation and configuration of all dependencies. |
||||||
|
10 | |||||||
| 11 | The Pointcaster AppImage can be built using Docker or Podman from the repository root like so: |
|||||||
| 12 | ```sh |
|||||||
| 13 | docker build -t pointcaster . |
|||||||
| 14 | docker run --rm -it -v ./:/pointcaster:Z -w/pointcaster pointcaster ./scripts/build-linux-release.sh |
|||||||
| 15 | ``` |
|||||||
| 16 | ||||||||
| 17 | The `docker run` command arguments ensure that the repository is mounted inside the container and set as the working directory. |
|||||||
| 18 | ||||||||
| 19 | For a development shell, invoke `bash` or `fish`, where you can configure and build using `cmake`: |
|||||||
| 20 | ``` |
|||||||
| 21 | docker run --rm -it -v ./:/pointcaster:Z -w/pointcaster pointcaster bash |
|||||||
| 22 | # then inside the dev shell: |
|||||||
| 23 | > cmake --preset linux-release |
|||||||
| 24 | > cmake --build build/linux-release --target install |
|||||||
| 25 | ``` |
|||||||
| 26 | ||||||||
| 27 | This places a portable build at `build/linux-release/install/bin/pointcaster` which can be run outside the container. |
|||||||
| 28 | ||||||||
|
29 | ## Windows |
||||||
