CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
178 stars 64 forks source link

Error compiling CaPTk 1.9.0 on Ubuntu 20.04 #1503

Open emedernach opened 2 years ago

emedernach commented 2 years ago

Describe the bug We are trying to compile CaPTk 1.9.0 on Ubuntu 20.04. We obtain these errors:

-- Extracting pre-compiled hausdorff
-- Extracting pre-compiled external applications
CMake Error: Problem with archive_read_open_file(): Unrecognized archive format
CMake Error: Problem extracting tar: /home/ubuntu/CaPTk/build-01-September-2022.07h18/binaries_linux.zip
...
CMake Error at cmake_modules/CaPTk_macros.cmake:19 (ADD_EXECUTABLE):
  Target "DirectionalityEstimate" links to target "GTest::GTest" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:668 (CAPTK_ADD_EXECUTABLE)
...
CMake Generate step failed.  Build files cannot be regenerated correctly.

To Reproduce Steps to reproduce the behavior:

  1. git clone --depth 1 --branch 1.9.0 https://github.com/CBICA/CaPTk
  2. mkdir build; cd build
  3. cmake ../CaPTk

CaPTk Version We use git branch 1.9.0 because we got this error with the 1.9.0 archive:

fatal: not a git repository (or any of the parent directories): .git
CCMake Error: File ..../src/applications/Preprocessing/greedy/src/GreedyVersion.cxx.in does not exist.
CMake Error at src/applications/Preprocessing/CMakeLists.txt:33 (CONFIGURE_FILE):
  CONFIGURE_FILE Problem configuring file

We also use CAPTK_PACKAGE_PROJECT=ON and modified the CMakeLists.txt to avoid this error:

-- Downloading all the sample data using following link: ftp://www.nitrc.org/home/groups/captk/downloads/SampleData/TestData.zip
CMake Error at testing/CMakeLists.txt:34 (MESSAGE):
  Failed to download TestData.  Status=9;"Access denied to remote resource"

Desktop (please complete the following information):

Lucas-rbnt commented 1 year ago

Same here, I create a Ubuntu 16.04 VM as a workaround !