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

build NIFTI fails with zlib.h not found (1.0.08) #40

Open
mcvaneede opened this issue Aug 26, 2016 · 3 comments
Open

build NIFTI fails with zlib.h not found (1.0.08) #40

mcvaneede opened this issue Aug 26, 2016 · 3 comments

Comments

@mcvaneede
Copy link

I'm trying to build version 1.0.08 on Ubuntu 16.04. During the installation procedure, ZLIB is build, but when NIFTI is being compiled, the following error occurs:

[  3%] Performing build step for 'NIFTI'
-- Configuring done
-- Generating done
-- Build files have been written to: /axiom2/projects/software/arch/linux-xenial-xerus/src/minc-toolkit-build/NIFTI-build
[  6%] Building C object znzlib/CMakeFiles/znz.dir/znzlib.c.o
In file included from /axiom2/projects/software/arch/linux-xenial-xerus/src/minc-toolkit-build/NIFTI/znzlib/znzlib.c:24:0:
/axiom2/projects/software/arch/linux-xenial-xerus/src/minc-toolkit-build/NIFTI/znzlib/znzlib.h:62:18: fatal error: zlib.h: No such file or directory
 #include "zlib.h"
                  ^
compilation terminated.

Somehow the proper include directories to compile NIFTI are not added in its CMakeLists.txt file. Any clue why that it?

Some sytem information:
Ubuntu 16.04
cmake 3.5.1
g++ 4.9.3
gcc 4.9.3

@gdevenyi
Copy link

Resurrecting a long dead issue, with #54 and #53 solved, I now run into this.

Given the error and how broken the cmake is in NIFTILIB 2.0 was, I suspect this is the fix:
https://github.com/BIC-MNI/minc-toolkit-v2/blob/develop-1.9.17/cmake-modules/BuildNIFTI.cmake#L62-L63

But perhaps we can just pull over the whole BuildNIFTI.cmake from minc-toolkit-v2?

What do you think @vfonov ?

@vfonov
Copy link
Member

vfonov commented Mar 13, 2019

yes, you can backport it

@gdevenyi
Copy link

Fixed by #55

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

3 participants