Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling CaPTk 1.9.0 on Ubuntu 20.04 #1503

Open
emedernach opened this issue Sep 1, 2022 · 1 comment
Open

Error compiling CaPTk 1.9.0 on Ubuntu 20.04 #1503

emedernach opened this issue Sep 1, 2022 · 1 comment

Comments

@emedernach
Copy link

emedernach commented Sep 1, 2022

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:/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):

  • OS: Our machines OS are under Ubuntu 20.04 and GUIX
@Lucas-rbnt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants