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

error when running make-j #131

Open
tetlie opened this issue Oct 27, 2017 · 5 comments
Open

error when running make-j #131

tetlie opened this issue Oct 27, 2017 · 5 comments

Comments

@tetlie
Copy link

tetlie commented Oct 27, 2017

In step one, in the deconv-deep-vis-toolbox branch of caffe, when running make -j I get this output:

PROTOC src/caffe/proto/caffe.proto
make: protoc: No such file or directory
CXX src/caffe/common.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/layers/tanh_layer.cpp
make: *** [.build_release/src/caffe/proto/caffe.pb.cc] Error 1
make: *** Waiting for unfinished jobs....
CXX src/caffe/layers/bnll_layer.cpp
src/caffe/common.cpp:1:10: fatal error: 'boost/thread.hpp' file not found
#include <boost/thread.hpp>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/common.o] Error 1
src/caffe/data_transformer.cpp:2:10: fatal error: 'opencv2/core/core.hpp' file not found
#include <opencv2/core/core.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
In file included from src/caffe/layers/tanh_layer.cpp:6:
In file included from ./include/caffe/layers/tanh_layer.hpp:6:
In file included from ./include/caffe/blob.hpp:8:
./include/caffe/common.hpp:4:10: fatal error: 'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/layers/tanh_layer.o] Error 1
In file included from src/caffe/layers/bnll_layer.cpp:4:
In file included from ./include/caffe/layers/bnll_layer.hpp:6:
In file included from ./include/caffe/blob.hpp:8:
./include/caffe/common.hpp:4:10: fatal error: 'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/layers/bnll_layer.o] Error 1

I did change the makefile to CPU_ONLY := 1
Can anyone please help me understand the error message?

@x65han
Copy link

x65han commented Jan 12, 2018

Having the same problem. Any luck?

@LongruiDong
Copy link

LongruiDong commented Apr 18, 2018

Also have same error.Although I have compiled master branch of caffe successfully,which runs okay.....
env: windows10
anyone who have ideas?
detail output:

PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_reader.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/data_transformer.cpp
process_begin: CreateProcess(NULL, protoc --proto_path=src/caffe/proto --cpp_out=.build_release/src/caffe/proto src/caffe/proto/caffe.proto, ...) failed.
make (e=2): ϵͳ▒Ҳ▒▒▒ָ▒▒▒▒▒ļ▒▒▒
make: *** [Makefile:630: .build_release/src/caffe/proto/caffe.pb.cc] Error 2
make: *** Waiting for unfinished jobs....
CXX src/caffe/layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
CXX src/caffe/layers/argmax_layer.cpp
CXX src/caffe/layers/base_conv_layer.cpp
src/caffe/data_reader.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
src/caffe/layer.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
src/caffe/common.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
src/caffe/data_transformer.cpp:2:10: fatal error: opencv2/core/core.hpp: No such file or directory
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:573: .build_release/src/caffe/data_reader.o] Error 1
make: *** [Makefile:573: .build_release/src/caffe/layer.o] Error 1
make: *** [Makefile:573: .build_release/src/caffe/common.o] Error 1
make: *** [Makefile:573: .build_release/src/caffe/data_transformer.o] Error 1
src/caffe/internal_thread.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:573: .build_release/src/caffe/internal_thread.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from src/caffe/blob.cpp:4:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/filler.hpp:10,
from src/caffe/layers/base_conv_layer.cpp:4:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/absval_layer.hpp:6,
from src/caffe/layers/absval_layer.cpp:3:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:573: .build_release/src/caffe/blob.o] Error 1
make: *** [Makefile:573: .build_release/src/caffe/layers/base_conv_layer.o] Error 1
make: *** [Makefile:573: .build_release/src/caffe/layers/absval_layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/argmax_layer.hpp:6,
from src/caffe/layers/argmax_layer.cpp:6:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:573: .build_release/src/caffe/layers/argmax_layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/accuracy_layer.hpp:6,
from src/caffe/layers/accuracy_layer.cpp:5:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:573: .build_release/src/caffe/layers/accuracy_layer.o] Error 1

@aniryou
Copy link

aniryou commented Jun 8, 2018

Try brew install boost.

I further got below error with compiler not able to locate opencv libraries.

Undefined symbols for architecture x86_64:
  "cv::imread(cv::String const&, int)", referenced from:
      caffe::WindowDataLayer<float>::load_batch(caffe::Batch<float>*) in window_data_layer.o

Uncommenting USE_PKG_CONFIG := 1 setting in Makefile.config resolved the issue.

@sliawatimena
Copy link

sliawatimena commented May 24, 2019

To overcome protoc error, I try this:
$ sudo -H sudo apt-get install libprotobuf-dev protobuf-compiler

I do edit Makefile.config and uncommented USE_PKG_CONFIG := 1, still no luck.

My errors:

CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_reader.cpp
CXX src/caffe/data_transformer.cpp
src/caffe/common.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
 #include <boost/thread.hpp>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
src/caffe/data_reader.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
 #include <boost/thread.hpp>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:585: recipe for target '.build_release/src/caffe/common.o' failed
make: *** [.build_release/src/caffe/common.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:585: recipe for target '.build_release/src/caffe/data_reader.o' failed
make: *** [.build_release/src/caffe/data_reader.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
                 from src/caffe/blob.cpp:4:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
 #include <boost/shared_ptr.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:585: recipe for target '.build_release/src/caffe/blob.o' failed
make: *** [.build_release/src/caffe/blob.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
                 from ./include/caffe/data_transformer.hpp:7,
                 from src/caffe/data_transformer.cpp:8:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
 #include <boost/shared_ptr.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:585: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1

@tulaslive2019
Copy link

now fuckoff

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

6 participants