cookpa / antsInstallExample

Simple bash script that downloads and installs ANTs in a unix environment
MIT License
13 stars 17 forks source link

NIFTI_SYSTEM_MATH_LIB (ADVANCED) #3

Open lssastar opened 4 months ago

lssastar commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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.