Building Caffe: Failed to see hdf5.h
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common_layers.hpp:10:0,
from ./include/caffe/vision_layers.hpp:10,
from src/caffe/layer_factory.cpp:6:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
#include "hdf5.h"
^
compilation terminated.
Makefile:512: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
The building failure seems to be Ubuntu specific. I have checked the different dependencies. I tried different workaround: writing the path of hdf5.h directly in the Makefile.config, building hdf5 from source...
Thanks for advices
compiling opencv makefile image-processing caffe
add a comment |
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common_layers.hpp:10:0,
from ./include/caffe/vision_layers.hpp:10,
from src/caffe/layer_factory.cpp:6:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
#include "hdf5.h"
^
compilation terminated.
Makefile:512: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
The building failure seems to be Ubuntu specific. I have checked the different dependencies. I tried different workaround: writing the path of hdf5.h directly in the Makefile.config, building hdf5 from source...
Thanks for advices
compiling opencv makefile image-processing caffe
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
1
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46
add a comment |
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common_layers.hpp:10:0,
from ./include/caffe/vision_layers.hpp:10,
from src/caffe/layer_factory.cpp:6:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
#include "hdf5.h"
^
compilation terminated.
Makefile:512: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
The building failure seems to be Ubuntu specific. I have checked the different dependencies. I tried different workaround: writing the path of hdf5.h directly in the Makefile.config, building hdf5 from source...
Thanks for advices
compiling opencv makefile image-processing caffe
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common_layers.hpp:10:0,
from ./include/caffe/vision_layers.hpp:10,
from src/caffe/layer_factory.cpp:6:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
#include "hdf5.h"
^
compilation terminated.
Makefile:512: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
The building failure seems to be Ubuntu specific. I have checked the different dependencies. I tried different workaround: writing the path of hdf5.h directly in the Makefile.config, building hdf5 from source...
Thanks for advices
compiling opencv makefile image-processing caffe
compiling opencv makefile image-processing caffe
edited Nov 29 '17 at 11:04
karel
61k13132155
61k13132155
asked May 29 '15 at 7:02
Jean-PatJean-Pat
126115
126115
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
1
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46
add a comment |
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
1
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
1
1
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46
add a comment |
2 Answers
2
active
oldest
votes
install libhdf5-dev
add patch to libhdf5
in Makefile.config
.
example: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in theMakefile.config
fixed my issue:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
add a comment |
You would also want to
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include **/usr/include/hdf5/serial**
for it to find your header files
New contributor
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f629654%2fbuilding-caffe-failed-to-see-hdf5-h%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
install libhdf5-dev
add patch to libhdf5
in Makefile.config
.
example: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in theMakefile.config
fixed my issue:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
add a comment |
install libhdf5-dev
add patch to libhdf5
in Makefile.config
.
example: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in theMakefile.config
fixed my issue:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
add a comment |
install libhdf5-dev
add patch to libhdf5
in Makefile.config
.
example: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
install libhdf5-dev
add patch to libhdf5
in Makefile.config
.
example: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
edited Jul 6 '15 at 14:54
user284234
answered Jul 6 '15 at 13:58
Максим РумянцевМаксим Румянцев
34113
34113
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in theMakefile.config
fixed my issue:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
add a comment |
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in theMakefile.config
fixed my issue:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
+1 Found this searching and it fixed the issue. @Jean-Pat, please consider accepting this answer if it solved your problem.
– David Etler
Jul 11 '15 at 13:54
1
1
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
This fixes the missing include but the compile just fails later because it can't find the libs.
– Alistair Buxton
Jul 19 '15 at 11:33
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
@Alistair Buxton: I have made an addition to the answer, in order to show how to fix this issue, if it persists, even after updating the Makefile.config.
– Codetoffel
Oct 2 '16 at 8:37
To me, this leads to another error:
AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
To me, this leads to another error:
AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
– skyuuka
Aug 23 '18 at 22:17
This change in the
Makefile.config
fixed my issue: LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
This change in the
Makefile.config
fixed my issue: LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
– skyuuka
Aug 23 '18 at 22:29
add a comment |
You would also want to
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include **/usr/include/hdf5/serial**
for it to find your header files
New contributor
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
add a comment |
You would also want to
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include **/usr/include/hdf5/serial**
for it to find your header files
New contributor
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
add a comment |
You would also want to
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include **/usr/include/hdf5/serial**
for it to find your header files
New contributor
You would also want to
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include **/usr/include/hdf5/serial**
for it to find your header files
New contributor
edited yesterday
Jeff
844819
844819
New contributor
answered yesterday
Arindam SenguptaArindam Sengupta
1
1
New contributor
New contributor
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
add a comment |
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
Welcome to Ask Ubuntu! :-) As far as I can see, this is identical to the already existing answer. Please leave a comment if I failed to see the difference as I just voted for this answer to be deleted as a duplicate.
– Fabby
21 hours ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f629654%2fbuilding-caffe-failed-to-see-hdf5-h%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please edit you question to actually contain the entire question, thanks.
– Seth♦
Jun 1 '15 at 2:38
1
For those seeking an answer to this problem, the parallel discussion on the Caffe mailing list has solutions: groups.google.com/forum/#!topic/caffe-users/cdyqjNpoFRY
– Ibrahim
Jul 1 '15 at 23:46