Blame

432b0b Matt Hughes 2026-01-16 04:54:20
add build page
1
# Building Pointcaster
2
59dab0 Matt Hughes 2026-03-19 11:10:03
3
Source code for Pointcaster is available on [Github](https://github.com/matth-av/pointcaster). Start by cloning the repository:
8c8c1b Matt Hughes 2026-01-21 03:50:02
4
```sh
59dab0 Matt Hughes 2026-03-19 11:10:03
5
git clone https://github.com/matth-av/pointcaster.git
8c8c1b Matt Hughes 2026-01-21 03:50:02
6
cd pointcaster
7
```
63a237 Matt Hughes 2026-01-16 05:25:14
8
432b0b Matt Hughes 2026-01-16 04:54:20
add build page
9
## Linux
10
59dab0 Matt Hughes 2026-03-19 11:10:03
11
Builds on Linux use a containerised environment created using the [Dockerfile](https://github.com/matth-av/pointcaster/blob/qt/Dockerfile) in the root of the repository. This handles download and configuration of all dependencies. Either [Docker](https://docs.docker.com/engine/install/) or [Podman](https://podman.io/docs/installation) must be installed and configured on your system to proceed.
e6e300 Matt Hughes 2026-01-16 05:14:27
12
8c8c1b Matt Hughes 2026-01-21 03:50:02
13
The Pointcaster AppImage can be built from the repository root like so:
e6e300 Matt Hughes 2026-01-16 05:14:27
14
```sh
8c8c1b Matt Hughes 2026-01-21 03:50:02
15
docker build -t pointcaster-linux .
2f1644 Matt Hughes 2026-07-19 10:54:42
16
docker run --rm -it -v ./:/pointcaster:Z pointcaster-linux \
9fa572 Matt Hughes 2026-07-18 03:53:02
17
./scripts/build-linux-release.sh
e6e300 Matt Hughes 2026-01-16 05:14:27
18
```
2f1644 Matt Hughes 2026-07-19 10:54:42
19
The `-v` command argument ensures the repository is mounted inside the container.
e6e300 Matt Hughes 2026-01-16 05:14:27
20
21
For a development shell, invoke `bash` or `fish`, where you can configure and build using `cmake`:
8c8c1b Matt Hughes 2026-01-21 03:50:02
22
```sh
9fa572 Matt Hughes 2026-07-18 03:53:02
23
docker run --rm -it \
2f1644 Matt Hughes 2026-07-19 10:54:42
24
-v ./:/pointcaster:Z pointcaster-linux bash
8c8c1b Matt Hughes 2026-01-21 03:50:02
25
```
26
Then from inside:
27
```sh
77dd37 Matt Hughes 2026-01-21 03:38:38
28
cmake --preset linux-release
0e9a71 Matt Hughes 2026-07-19 10:12:59
29
cmake --build build/linux-release
9fa572 Matt Hughes 2026-07-18 03:53:02
30
cmake --install build/linux-release
31
cpack --preset linux-release
e6e300 Matt Hughes 2026-01-16 05:14:27
32
```
33
4ab926 Matt Hughes 2026-01-16 05:30:31
34
The install target places a portable build at `build/linux-release/install/bin/pointcaster`, and the package target creates an AppImage at `build/linux-release/Pointcaster-Linux-<version>.AppImage`, both of which can be run from outside the container.
0e386a Matt Hughes 2026-01-21 03:40:30
35
> [!TIP]
59dab0 Matt Hughes 2026-03-19 11:10:03
36
> The docker image is used as a base for a [Development Container](https://containers.dev/) in IDEs that support it. Visual Studio Code will automatically install extensions needed for C++, CMake and QML. See the [devcontainer.json](https://github.com/matth-av/pointcaster/blob/qt/.devcontainer/devcontainer.json).
77dd37 Matt Hughes 2026-01-21 03:38:38
37
432b0b Matt Hughes 2026-01-16 04:54:20
add build page
38
## Windows
bb906d Matt Hughes 2026-03-16 07:14:26
39
### Windows Builds Using Docker
59dab0 Matt Hughes 2026-03-19 11:10:03
40
Automated Windows builds use [Docker](https://docs.docker.com/engine/install/) to configure the build environment. [`scripts/windows.Dockerfile`](https://github.com/matth-av/pointcaster/blob/qt/scripts/windows.Dockerfile) installs Visual Studio Build Tools and other binary dependencies in a Windows container. This is how release builds are produced, but if you are looking to develop Pointcaster or a Pointcaster plugin you'll most likely want to build and debug using an IDE - in which case you might prefer [installing dependencies manually](#windows-builds-in-an-ide).
964c07 Matt Hughes 2026-03-16 07:22:32
41
b28796 Matt Hughes 2026-03-16 07:35:44
42
The following commands assume you have a working docker installation capable of running Windows containers on the command line.
964c07 Matt Hughes 2026-03-16 07:22:32
43
b28796 Matt Hughes 2026-03-16 07:35:44
44
To build the Windows docker image:
9efa22 Matt Hughes 2026-03-17 10:03:35
45
```sh
bb906d Matt Hughes 2026-03-16 07:14:26
46
docker build -f scripts/windows.Dockerfile -t pointcaster-win .
b28796 Matt Hughes 2026-03-16 07:35:44
47
```
08f6f1 Matt Hughes 2026-07-17 02:45:23
48
To produce a Pointcaster release package:
b28796 Matt Hughes 2026-03-16 07:35:44
49
```
2f1644 Matt Hughes 2026-07-19 10:54:42
50
docker run -v ./:C:\pointcaster pointcaster-win .\scripts-build-windows-release.ps1
3ba8af Matt Hughes 2026-03-15 00:54:49
51
```
52
For a development shell:
53
```
2f1644 Matt Hughes 2026-07-19 10:54:42
54
docker run -it -v ./:C:\pointcaster pointcaster-win powershell
891c5a Matt Hughes 2026-03-14 14:08:46
55
```
9efa22 Matt Hughes 2026-03-17 10:03:35
56
> [!TIP]
57
> You might benefit from passing some docker args to fully utilise available resources, e.g.:
58
> ```sh
59
> docker run --memory=20G --cpus=16 ...
60
> ```
61
62
And from inside the container:
63
```sh
572bbd Matt Hughes 2026-03-16 07:36:58
64
cmake --preset windows-release
0e9a71 Matt Hughes 2026-07-19 10:12:59
65
cmake --build build/windows-release
1937d0 Matt Hughes 2026-07-18 03:42:07
66
cmake --install build/windows-release
67
cpack --preset windows-release
365e08 Matt Hughes 2026-03-16 07:36:43
68
```
e07bf3 Matt Hughes 2026-03-16 07:19:41
69
### Windows Builds in an IDE
991d8c Matt Hughes 2026-03-17 01:08:34
70
#### Development Dependencies
bfbb40 Matt Hughes 2026-04-07 07:59:44
71
To build Pointcaster on Windows using an IDE like Visual Studio, you'll need to install the following libraries on your host:
72
- Qt ~~QtVersion~~, with the 'shadertools', 'quick3d' and 'tasktree' modules
73
- oneAPI Threading Building Blocks (oneTBB) ~~TbbVersion~~
74
- Python ~~PythonVersion~~
75
- Jinja ~~Jinja2Version~~
76
77
Additionally, your environment will need CMake, MSVC from Visual Studio 2022, vcpkg and Ninja.