You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Ubuntu 15.05 compilation failure due to "hdf5.h" instead of "hdf5/serial/hdf5.h" and similarly "hdf5_hl.h"[/-][+]Ubuntu 15.04 compilation failure due to "hdf5.h" instead of "hdf5/serial/hdf5.h" and similarly "hdf5_hl.h"[/+]on Jul 4, 2015
diff --git a/Makefile.config.example b/Makefile.config.example
index a873502..88828cc 100644
--- a/Makefile.config.example+++ b/Makefile.config.example@@ -69,8 +69,8 @@ PYTHON_LIB := /usr/lib
# WITH_PYTHON_LAYER := 1
# Whatever else you find you need goes here.
-INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include-LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib+INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/+LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/
# If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
# INCLUDE_DIRS += $(shell brew --prefix)/include
AndrewChiyz, zuoxingdong, Lyken17, TheOpenSourceNinja, wrwrwr and 57 moredlnorman, BoPang1996, btjhjeon and ikhannCristinaCaneroIcar, jiexunsee, yinsua, tsenghungchen, kivi-wong and 6 moreIAmUnbounded, panovr, btjhjeon, GeneralUltra758 and razekmaiden
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_serial_h
collect2: error: ld returned 1 exit status
Makefile:573: fallo en las instrucciones para el objetivo '.build_release/lib/libcaffe.so.1.0.0'
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
@GonzaBCCC did you install the libhdf5-dev package? on Ubuntu 17.04, this actually contains hdf5-serial and development headers even though there is a package named libhdf5-serial-dev (it contains just copyright info and such)
Activity
[-]Ubuntu 15.05 compilation failure due to "hdf5.h" instead of "hdf5/serial/hdf5.h" and similarly "hdf5_hl.h"[/-][+]Ubuntu 15.04 compilation failure due to "hdf5.h" instead of "hdf5/serial/hdf5.h" and similarly "hdf5_hl.h"[/+]robertsdionne commentedon Jul 4, 2015
Similarly, unable to find libhdf5 or libhdf5_hl, which are located at /usr/lib/x86_64-linux-gnu/hdf5/serial/
robertsdionne commentedon Jul 4, 2015
TheOpenSourceNinja commentedon Jul 4, 2015
A slightly simpler solution:
robertsdionne commentedon Jul 5, 2015
Ah, thanks! As this goes in Makefile.config and is platform-specific, I'll close this report.
byshen commentedon Nov 2, 2015
just modify the Makefile.config works for me !
Thanks a lot 😄
datahack-ru commentedon Nov 26, 2015
It works!
cuongduc commentedon Feb 4, 2016
Thanks! It works for me
minarc commentedon Feb 5, 2016
I am on ubuntu 16.04 and it Works!
hustc12 commentedon Feb 28, 2016
@byshen, it works for me, thanks!
vatsal12117 commentedon Apr 27, 2016
how to solve this issue on ubuntu 16.04?
machisuke commentedon Jun 10, 2016
It works for me too. Thanks.
Version is ubuntu 15.10
han-qiu commentedon Jun 28, 2016
Thank you!
It works for me.
Ubuntu 16.04
oggata commentedon Dec 7, 2016
Thank you, it worked! Ubuntu 15.04
dweekly commentedon Dec 20, 2016
Can I suggest we add a commented out version of the above with a note "uncomment these to install on Ubuntu"?
olypros commentedon Feb 3, 2017
Its WORKS !!!!!
manpowre commentedon Jun 11, 2017
adding these in ubuntu 16.04 works:
+INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
+LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/
I first verified the path exists before adding it.
GonzaBCCC commentedon Jun 14, 2017
did not work for me (Ubuntu 16.04)
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_serial_h
collect2: error: ld returned 1 exit status
Makefile:573: fallo en las instrucciones para el objetivo '.build_release/lib/libcaffe.so.1.0.0'
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
ysangkok commentedon Jul 14, 2017
@GonzaBCCC did you install the
libhdf5-dev
package? on Ubuntu 17.04, this actually contains hdf5-serial and development headers even though there is a package named libhdf5-serial-dev (it contains just copyright info and such)yangyanglisjtu commentedon Dec 26, 2017
@byshen it works