Skip to content

Commit 5f02ffc

Browse files
DOC: Remove Qt var from main linux build instructions
It's only needed on ubuntu 20.04 pretty much so it should not be there in the main instruction.
1 parent 427fca2 commit 5f02ffc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

{{cookiecutter.project_name}}/BUILD_LINUX.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ Install the prerequisites as described in the [Slicer documentation for building
2020

2121
Note: The build process can take hours.
2222

23-
Assuming that Qt 5.15.2 was installed to `/opt/qt/` (if not then adjust the command accordingly):
23+
Build:
2424

2525
```sh
2626
cmake \
2727
-DCMAKE_BUILD_TYPE:STRING=Release \
2828
-DQt5_DIR:PATH=/opt/qt/5.15.2/gcc_64/lib/cmake/Qt5 \
2929
-S {{cookiecutter.github_project}} \
3030
-B {{cookiecutter.github_project}}-SuperBuild-Release
31-
31+
cd {{cookiecutter.github_project}}-SuperBuild-Release
3232
make -j<N>
3333
```
3434

3535
where `<N>` is the number of parallel builds. As a rule of thumb, many use the `number of CPU threads - 1` as the number of parallel builds.
36+
On Ubuntu 20.04, the default Qt5 packages are too old and so the Slicer documentation linked above should have suggested a method of installing Qt 5.15.2;
37+
if you installed it to `/opt/qt`, for example, then an extra option like `-DQt5_DIR:PATH=/opt/qt/5.15.2/gcc_64/lib/cmake/Qt5` would be needed in the `cmake` command above.
3638

3739
Once the application is built, there will be an _inner build_ inside the _superbuild_ folder, located at `{{cookiecutter.app_name}}-SuperBuild-Release/Slicer-build`. The application executable is contained in this _inner build_ folder.
3840

0 commit comments

Comments
 (0)