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 failure: include path for hdf5 is not passed from cmake to gcc #121

Open
angli232 opened this issue Oct 16, 2016 · 0 comments
Open

Comments

@angli232
Copy link

In Mac OS X, package manager MacPorts installs packages such as hdf5 in the dir of /opt. Although cmake could successfully find it, a typo in CMakeLists.txt prevents the corresponding include path from being passed to gcc. ${HDF5_INCLUDE_DIR} in CMakeLists.txt should be corrected to ${HDF5_INCLUDE_DIRS}.

Error message of the build failure:

...
...
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- Found HDF5: /opt/local/lib/libhdf5_cpp.dylib;/opt/local/lib/libhdf5.dylib;/usr/lib/libz.dylib;/usr/lib/libdl.dylib;/usr/lib/libm.dylib (found version "1.10.0.1")
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/****/kallisto/build

$ make
Scanning dependencies of target kallisto_core
[  5%] Building CXX object src/CMakeFiles/kallisto_core.dir/Bootstrap.cpp.o
In file included from /Users/****/kallisto/src/Bootstrap.cpp:1:
In file included from /Users/****/kallisto/src/Bootstrap.h:12:
In file included from /Users/****/kallisto/src/H5Writer.h:6:
/Users/****/kallisto/src/h5utils.h:13:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
         ^
1 error generated.
make[2]: *** [src/CMakeFiles/kallisto_core.dir/Bootstrap.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/kallisto_core.dir/all] Error 2
make: *** [all] Error 2
pmelsted added a commit that referenced this issue Jan 15, 2018
Fixed build failure on OSX because of bad include path, see #121
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

1 participant