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

CMake Error at ANTS.cmake:41 (find_package) #1430

Closed
neurosurd opened this issue Oct 14, 2022 · 9 comments · Fixed by #1434
Closed

CMake Error at ANTS.cmake:41 (find_package) #1430

neurosurd opened this issue Oct 14, 2022 · 9 comments · Fixed by #1434
Labels
bug Reproducible bugs

Comments

@neurosurd
Copy link

Hi All,
Im getting the following error during both Superbuild or manual build.

CMake Error at ANTS.cmake:41 (find_package):
  By not providing "FindITK.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ITK", but
  CMake did not find one.

  Could not find a package configuration file provided by "ITK" with any of
  the following names:

    ITKConfig.cmake
    itk-config.cmake

  Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"
  to a directory containing one of the above files.```
I've attached the following files. Please advise.


[CMakeCache.txt](https://github.com/ANTsX/ANTs/files/9790046/CMakeCache.txt)
[cmake.log](https://github.com/ANTsX/ANTs/files/9790047/cmake.log)
[build.log](https://github.com/ANTsX/ANTs/files/9790048/build.log)
[CMakeOutput.log](https://github.com/ANTsX/ANTs/files/9790061/CMakeOutput.log)
[CMakeError.log](https://github.com/ANTsX/ANTs/files/9790062/CMakeError.log)


@gdevenyi
Copy link
Contributor

Please share the exact commands you are running and the complete logs.

@cookpa
Copy link
Member

cookpa commented Oct 15, 2022

And also the system you're trying to build on.

@cookpa
Copy link
Member

cookpa commented Oct 15, 2022

I've compiled 77b8f2a on my Mac, and the CI build has completed successfully (Ubuntu). So I think it's something about this particular system.

@cookpa
Copy link
Member

cookpa commented Oct 15, 2022

Is CMAKE_PREFIX_PATH or ITK_DIR set in the environment? I'm just guessing at why it's not looking in the usual place. It seems to build ITK just fine, but then somehow can't find it. Very odd

@neurosurd
Copy link
Author

Thank you for the response. Im trying to install it on RHEL8. Previously i installed it on a RHEL7 system without any issues. I used the superbuild script and tried the installation without the script as well.
The above paths are not set in the environment. Ive attached all the relevant logs. Is there anything else that i need to attach?

@gdevenyi
Copy link
Contributor

gdevenyi commented Oct 16, 2022

Please provide the complete commands and logs.

@cookpa
Copy link
Member

cookpa commented Oct 18, 2022

The latest release failed to build on CentOS, so I will be looking into this further when I have time https://github.com/ANTsX/ANTs/actions/runs/3269597905

I think it must be something to do with the recent ITK bump, because v2.4.1 built successfully.

@cookpa
Copy link
Member

cookpa commented Oct 18, 2022

I think this should fix it, @neurosurd

@neurosurd
Copy link
Author

Confirmed! Thank you !

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

Successfully merging a pull request may close this issue.

3 participants