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
182 stars 65 forks source link

Cannot build CaPTk from sources on the cbica cluster #1355

Open ashishsingh18 opened 4 years ago

ashishsingh18 commented 4 years ago

Describe the bug Cannot build CaPTk from sources on the cluster

To Reproduce Steps to reproduce the behavior:

  1. SuperBuild (Dependencies) Completes
  2. CaPTk build cmake step configure completes
  3. Generate gives error as below

CMake Error at CMakeLists.txt:946 (ADD_EXECUTABLE): Target "CaPTk" links to target "Eigen3::Eigen" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

Expected behavior CaPTk should build from sources

Screenshots If applicable, add screenshots to help explain your problem. image

CaPTk Version: 1.8.1

AlexanderGetka-cbica commented 4 years ago

We never ended up solving this issue a couple months back. But since I think it's appropriate to leave a cookie crumb trail for when someones investigates this again...

As part of our superbuild, Eigen is built, but not "installed". This install step typically fills out some templates and places it in a static location somewhere under /usr/ . I don't have the exact path on me... maybe /usr/local/Eigen? I know it's in the CMakeCache.txt file. Anyway, the cluster already has an Eigen installation in that location, and the files & headers from there are being used instead of the ones we create in the superbuild (and naturally are incompatible). As far as I can tell, this issue is rooted in how CMake modules/packages are found: I think the FindEigen3 file is looking for the installed Eigen above all else.