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

ITK make error: fatal: reference is not a tree #18

Open
arovai opened this issue Sep 13, 2022 · 4 comments
Open

ITK make error: fatal: reference is not a tree #18

arovai opened this issue Sep 13, 2022 · 4 comments

Comments

@arovai
Copy link

arovai commented Sep 13, 2022

Using Ubuntu 20.04, matlab R2022a.
Got the following error message at the make -j2 step in the ITK build instructions:

Cloning into 'ITK'...
fatal: reference is not a tree: 89581d46a00d680e5544c870f4328a1a5d64e798
CMake Error at ITK-prefix/tmp/ITK-gitclone.cmake:40 (message):
  Failed to checkout tag: '89581d46a00d680e5544c870f4328a1a5d64e798'

Any guess?

@richardbeare
Copy link
Contributor

Hi,
There is a fix in progress - can you try the following:

  1. Check out the "Bump" branch:
    cd mantis
    git checkout Bump
  2. remove the contents of the Build directory, rerun from the cmake step

Let. me know how you go

@arovai
Copy link
Author

arovai commented Sep 13, 2022

Build successful, I'll now go on and try to run. Thanks!

@arovai
Copy link
Author

arovai commented Sep 14, 2022

The toolbox worked nicely on a T2 from a infant.
Could you please give me some background on the Bump branch? In case this may affect interpretation of the outputs.
Thanks

@richardbeare
Copy link
Contributor

richardbeare commented Sep 14, 2022

The version bump related to two things, one relating to newer compilers being available and the other relating to a change in source repo for ITK. Neither will have any effect on results.

  1. Newer compilers and toolchains on systems like ubuntu 22 were not recognised by cmake configurations in ITK and thus needed to be updated.
  2. The mantis configuration was pointing to my own copy of ITK on github (dating from a time when I was integrating the parabolicMorphology module into ITK). I removed and recreated the repo because it wasn't recognised as a fork of ITK and the tag that was referenced by mantis didn't exist. However it is no longer required because the parabolicMorpholgy module is now part of ITK.
  3. Code changes in mantis are limited to supporting a modification in how the algorithm for implementing erosion/dilation by flat structuring elements was specified. The same algorithm is used, but the name enumeration has changed.

I think that covers everything

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