diff --git a/HPC/3dslicer/README.md b/HPC/3dslicer/README.md index d849ee39d750ddd3d4237700d910df3c31d6d657..f8b406027a99beb5b3307ff81827b6685ba3645d 100644 --- a/HPC/3dslicer/README.md +++ b/HPC/3dslicer/README.md @@ -32,14 +32,13 @@ The tag of each 3dslicer container image is consist of the version of 3dslicer a ``` Now, you can use 3dslicer according to [User Guide](https://slicer.readthedocs.io/en/latest/developer_guide/index.html) as ``` - cd Slicer-install/ + cd /opt/Slicer-Release/Slicer-build + # To avoid UI errors + export QT_XCB_FORCE_SOFTWARE_OPENGL=1 + export LIBGL_ALWAYS_SOFTWARE=1 + export QT_QPA_PLATFORM=xcb ./Slicer ``` - or run tests - ``` - cd Slicer-install/ - ctest -j4 - ``` # Question and answering If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/HPC/3dslicer/doc/image-info.yml b/HPC/3dslicer/doc/image-info.yml index e2f3a33026d283928e9c7a4d9deb90558f84643e..c2788ed7ea82eccc7b20d69319d01e28c5773918 100644 --- a/HPC/3dslicer/doc/image-info.yml +++ b/HPC/3dslicer/doc/image-info.yml @@ -7,7 +7,7 @@ environment: | yum install -y docker ``` tags: | - lumpy-sv镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + 3dslicer镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 | Tags | Currently | Architectures| |------|-----------|---------------| @@ -28,20 +28,22 @@ usage: | - 运行容器 + **注意:** 不建议直接在linux终端运行该容器,当前容器在没有显示设备的机器上运行时存在显示错误问题,建议用户使用该容器镜像的构建方式直接在带有显示设备的宿主机上安装并使用3D Slicer。 ``` docker run -it --name my-3dslicer openeuler/3dslicer:{Tag} ``` + 进入容器后, 可以按照3D Slicer的 [用户指南](https://slicer.readthedocs.io/en/latest/developer_guide/index.html) 运行程序: ``` # 进入可执行目录 - cd Slicer-install/ + cd /opt/Slicer-Release/Slicer-build + + # 强制使用软件渲染以避免图形化问题 + export QT_XCB_FORCE_SOFTWARE_OPENGL=1 + export LIBGL_ALWAYS_SOFTWARE=1 + export QT_QPA_PLATFORM=xcb ./Slicer ``` - 也可以运行简单的测试用例: - ``` - cd Slicer-install/ - ctest -j4 - ``` license: Security policy similar_packages: