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

NIFTI_SYSTEM_MATH_LIB (ADVANCED) #3

Open
lssastar opened this issue Apr 28, 2024 · 3 comments
Open

NIFTI_SYSTEM_MATH_LIB (ADVANCED) #3

lssastar opened this issue Apr 28, 2024 · 3 comments

Comments

@lssastar
Copy link

Dear all,

I meet the same question as 1514 mentioned when I try to install ANTs using this example sh file.

`CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:

NIFTI_SYSTEM_MATH_LIB (ADVANCED)
linked by target "ITKniftiio" in directory /home/user/Downloads/antsInstallExample-master/build/ITKv5/Modules/ThirdParty/NIFTI/src/nifti/niftilib`

Here are the files required to be attached:
build.log
cmake.log
CMakeCache.txt
CMakeError.log
CMakeOutput.log

I have tried the methods in comments of 1514. But it doesn't work for this install sh file.

My cmake vision is 3.16.3.

Could you please give me some ideas?

Thanks

@cookpa
Copy link
Owner

cookpa commented Apr 28, 2024

What exactly did you try?

If you don't need to build from source, you can download binaries for Linux from the releases page.

@lssastar
Copy link
Author

Thank you for your reply.

I have tried to add comment "-D NIFTI_SYSTEM_MATH_LIB=OFF " in this example sh file's 54th line. But another problem occur. I think it is because NIFTI_SYSTEM_MATH_LIB is needed in following install.

And I have tried to install ccmake of another version(3.12), but it does's work for this script. The install command line is listed below.

`wget https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.sh

sh cmake-3.12.1-Linux-x86_64.sh

sudo apt-get install cmake-curses-gui`

Maybe these command lines don't install the ccmake I want for me?

Using binaries worked for me. Thank you!

@cookpa
Copy link
Owner

cookpa commented Apr 28, 2024

Cmake below 3.16.3 won't work, that's the minimum.

As with #1514, you appear to be building inside a conda environment. Deactivating that may help.

I'm glad the binaries work for you.

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