You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building 3D Slicer, the qt_root_dir resolution in CMake is incorrect on Ubuntu 22.04 LTS due to the presence of the architecture-specific subdirectory x86_64-linux-gnu. This causes issues when building Slicer, as Qt tools like lconvert are not found in the expected location.
Steps to reproduce
Attempt to build Slicer on Ubuntu 22.04 LTS with the Qt distributed by the package manager.
Observe the following error during the CMake configuration step:
The error occurs because the qt_root_dir is incorrectly resolved as /usr/lib/../, leading to an invalid path for lconvert. The actual path can be found as follows:
The qt_root_dir resolves to /usr/lib/../ on Ubuntu 22.04 LTS, which evaluates to /usr/lib/ instead of /usr. As a result, the path to Qt tools such as lconvert is incorrect, and the build fails.
Expected behavior
The qt_root_dir should resolve to /usr regardless of the presence of architecture-specific subdirectories like x86_64-linux-gnu. This would ensure that Qt tools are located correctly, and the build proceeds without errors.
Suggested Solution
Modify the CMake code to account for architecture-specific subdirectories by adding a check for x86_64-linux-gnu.
Environment
Slicer version: N/A (CMake configuration issue)
Operating system: Ubuntu 22.04 LTS
System details:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
Summary
When building 3D Slicer, the
qt_root_dir
resolution in CMake is incorrect on Ubuntu 22.04 LTS due to the presence of the architecture-specific subdirectoryx86_64-linux-gnu
. This causes issues when building Slicer, as Qt tools likelconvert
are not found in the expected location.Steps to reproduce
Attempt to build Slicer on Ubuntu 22.04 LTS with the Qt distributed by the package manager.
Observe the following error during the CMake configuration step:
The error occurs because the
qt_root_dir
is incorrectly resolved as/usr/lib/../
, leading to an invalid path forlconvert
. The actual path can be found as follows:Actual behavior
The
qt_root_dir
resolves to/usr/lib/../
on Ubuntu 22.04 LTS, which evaluates to/usr/lib/
instead of/usr
. As a result, the path to Qt tools such aslconvert
is incorrect, and the build fails.Expected behavior
The
qt_root_dir
should resolve to/usr
regardless of the presence of architecture-specific subdirectories likex86_64-linux-gnu
. This would ensure that Qt tools are located correctly, and the build proceeds without errors.Suggested Solution
Modify the CMake code to account for architecture-specific subdirectories by adding a check for
x86_64-linux-gnu
.Environment
The text was updated successfully, but these errors were encountered: