From 46927a4d48d5ad13221886615f613a804d69a908 Mon Sep 17 00:00:00 2001 From: Ebrahim Ebrahim Date: Tue, 20 Aug 2024 13:15:05 -0400 Subject: [PATCH] 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. --- {{cookiecutter.project_name}}/BUILD_LINUX.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_name}}/BUILD_LINUX.md b/{{cookiecutter.project_name}}/BUILD_LINUX.md index 6af1235..ca715ad 100644 --- a/{{cookiecutter.project_name}}/BUILD_LINUX.md +++ b/{{cookiecutter.project_name}}/BUILD_LINUX.md @@ -20,7 +20,7 @@ Install the prerequisites as described in the [Slicer documentation for building Note: The build process can take hours. -Assuming that Qt 5.15.2 was installed to `/opt/qt/` (if not then adjust the command accordingly): +Build: ```sh cmake \ @@ -28,11 +28,13 @@ cmake \ -DQt5_DIR:PATH=/opt/qt/5.15.2/gcc_64/lib/cmake/Qt5 \ -S {{cookiecutter.github_project}} \ -B {{cookiecutter.github_project}}-SuperBuild-Release - +cd {{cookiecutter.github_project}}-SuperBuild-Release make -j ``` where `` 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. +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; +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. 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.