[mlpack-git] [mlpack] Building mlpack through homebrew | Errors (#403)

Dominique notifications at github.com
Wed Mar 4 15:57:16 EST 2015


This is how Homebrew builds Armadillo with HDF5 support:
````
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/armadillo/4.600.2 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DDETECT_HDF5=ON
````
so we do use `-DDETECT_HDF5=ON`. The log suggests that the HDF5 lib is correctly detected:
````
-- HDF5_FOUND = TRUE
-- Set ARMA_HDF5_INCLUDE_DIR to /usr/local/include
...
-- *** ARMA_LIBS = -framework Accelerate;/usr/local/lib/libhdf5.dylib;/usr/local/lib/libsz.dylib;/usr/lib/libz.dylib;/usr/lib/libdl.dylib;/usr/lib/libm.dylib;/usr/local/lib/libarpack.dylib
````
The Armadillo dynamic lib also indicates that it is correctly linked against the HDF5 lib:
````
$ otool -L /usr/local/Cellar/armadillo/4.600.2/lib/libarmadillo.dylib
/usr/local/Cellar/armadillo/4.600.2/lib/libarmadillo.dylib:
	/usr/local/lib/libarmadillo.4.dylib (compatibility version 4.0.0, current version 4.60.2)
	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
	/usr/local/lib/libhdf5.9.dylib (compatibility version 10.0.0, current version 10.0.0)
	/usr/local/lib/libsz.2.dylib (compatibility version 3.0.0, current version 3.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
	/usr/local/opt/arpack/libexec/lib/libarpack.2.dylib (compatibility version 3.0.0, current version 3.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
````

So as far as I can tell, Armadillo is built correctly against HDF5. But every time I build MLPack and run the tests I get
````
[WARN ] Cannot determine type of file 'noextension'; no extension is present.  Load failed.
[WARN ] No extension given with filename 'noextension'; type unknown.  Save failed.
[WARN ] Cannot open file 'nonexistentfile_______________.csv'; load failed.
[WARN ] Loading 'test_file.bin' as raw binary formatted data; but this may not be the actual filetype!
Mat::load(): unsupported file type
Mat::load(): couldn't load from the given stream
[WARN ] Loading from 'test_file.h5' failed.
/tmp/mlpack-iTRtWh/mlpack-mlpack-1.0.12/src/mlpack/tests/load_save_test.cpp:411: fatal error in "LoadHDF5Test": critical check data::Load("test_file.h5", test) == true failed
[WARN ] Save to 'test_file.h5' failed.
/tmp/mlpack-iTRtWh/mlpack-mlpack-1.0.12/src/mlpack/tests/load_save_test.cpp:459: fatal error in "SaveHDF5Test": critical check data::Save("test_file.h5", test) == true failed
````

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/403#issuecomment-77245513
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150304/1275ffc3/attachment.html>


More information about the mlpack-git mailing list