在Linux/Deepin下配置Slicer

1. sudo apt update && sudo apt install git subversion build-essential cmake cmake-curses-gui cmake-qt-gui   qt5-default qtmultimedia5-dev qttools5-dev libqt5xmlpatterns5-dev libqt5svg5-dev qtwebengine5-dev qtscript5-dev   qtbase5-private-dev libqt5x11extras5-dev libxt-dev


2. cd Slicer-5.2.2/Utilities
  ./SetupForDevelopment.sh

3. cd Slicer-5.3.2/CMake
  vim ./SlicerCheckCMakeHTTPS.cmake


#
# slicer_check_cmake_https
#
# Check if CMake supports downloading files using the HTTPS protocol. Fail if
# HTTPS is unsupported.
#
# CMake should support HTTPS when compiled with CMAKE_USE_OPENSSL enabled.
#
# Based on the script created by Jean-Christophe Fillion-Robin:
# https://gist.github.com/jcfr/e88a2a7cbc4ddd235186
#

function(slicer_check_cmake_https)
  set(url "https://www.baidu.com") #<--
  set(dest "${CMAKE_CURRENT_BINARY_DIR}/slicer_check_cmake_https_output")

  set(msg "Checking if CMake supports https")
  message(STATUS "${msg}")

  if(NOT Slicer_CMake_HTTPS_Supported)
    file(DOWNLOAD ${url} ${dest} STATUS status)
    list(GET status 0 error_code)
    file(REMOVE ${dest})
    if(error_code)
      list(GET status 1 error_msg)
      #
      # A failure to download the file over https may indicate that the CMake executable
      # used to configure the project does not support the HTTPS protocol.
      #
      # If you built your own version of CMake, ensure that CMake is compiled with
      # CMAKE_USE_OPENSSL build option enabled.
      #
      #message(FATAL_ERROR "error: ${error_msg}")   #<--
    else()
      # Save result of check, this way there will be no need for a working network connection when reconfiguring
      set(Slicer_CMake_HTTPS_Supported TRUE CACHE INTERNAL "CMake supports HTTPS protocol")
    endif()
  endif()

  message(STATUS "${msg} - ok")
endfunction()

slicer_check_cmake_https()


4. CMake

在Linux/Deepin下配置Slicer_第1张图片

5. 编译

make -j8

make -j8

make -j8

make -j8

make -j8

sudo make

sudo make

sudo make

你可能感兴趣的:(linux,VTK,ITK,CTK)