These are chat archives for beniz/deepdetect

26th
Jan 2017
Ardalan
@ArdalanM
Jan 26 2017 10:23 UTC

Hello @beniz

I am trying to install deepdetect by pull the lastest version from master branch and doing cmake .. then make
got the following error:

CXX src/caffe/layers/image_data_layer.cpp
CXX src/caffe/layers/softmax_infogain_loss_layer.cpp
CXX src/caffe/layers/silence_layer.cpp
CXX src/caffe/layers/loss_layer.cpp
In file included from ./include/caffe/layers/sigmoid_cross_entropy_loss_layer.hpp:6:0,
                 from src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:4:
./include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory
 #include "caffe/proto/caffe.pb.h"
                                  ^
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [.build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ./include/caffe/layers/slice_layer.hpp:6:0,
                 from src/caffe/layers/slice_layer.cpp:4:
./include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory
 #include "caffe/proto/caffe.pb.h"
                                  ^
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [.build_release/src/caffe/layers/slice_layer.o] Error 1
src/caffe/layers/loss_layer.cpp: In member function ‘Dtype caffe::LossLayer<Dtype>::GetNormalizer(caffe::LossParameter_NormalizationMode, int, int, int) [with Dtype = float]’:
src/caffe/layers/loss_layer.cpp:54:41: warning: ‘normalizer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return std::max(Dtype(1.0), normalizer);
                                         ^
src/caffe/layers/loss_layer.cpp: In member function ‘Dtype caffe::LossLayer<Dtype>::GetNormalizer(caffe::LossParameter_NormalizationMode, int, int, int) [with Dtype = double]’:
src/caffe/layers/loss_layer.cpp:54:41: warning: ‘normalizer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
src/caffe/layers/softmax_infogain_loss_layer.cpp: In member function ‘Dtype caffe::SoftmaxWithInfogainLossLayer<Dtype>::get_normalizer(caffe::LossParameter_NormalizationMode, int) [with Dtype = float]’:
src/caffe/layers/softmax_infogain_loss_layer.cpp:111:43: warning: ‘normalizer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     return std::max(Dtype(1.0), normalizer);
                                           ^
src/caffe/layers/softmax_infogain_loss_layer.cpp: In member function ‘Dtype caffe::SoftmaxWithInfogainLossLayer<Dtype>::get_normalizer(caffe::LossParameter_NormalizationMode, int) [with Dtype = double]’:
src/caffe/layers/softmax_infogain_loss_layer.cpp:111:43: warning: ‘normalizer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
make[2]: *** [caffe_dd/src/caffe_dd-stamp/caffe_dd-configure] Error 2
make[1]: *** [CMakeFiles/caffe_dd.dir/all] Error 2
make: *** [all] Error 2
Emmanuel Benazera
@beniz
Jan 26 2017 10:44 UTC
cd caffe_dd/src/caffe_dd
make
Ardalan
@ArdalanM
Jan 26 2017 10:47 UTC
and then I re-do make in deepdetect/build/ folder ?
Emmanuel Benazera
@beniz
Jan 26 2017 10:49 UTC
yes
Ardalan
@ArdalanM
Jan 26 2017 13:20 UTC

Now I get a different error (which I think you already heard about):

Linking CXX static library libddetect.a
[ 95%] Built target ddetect
Scanning dependencies of target dede
[100%] Building CXX object main/CMakeFiles/dede.dir/dede.cc.o
Linking CXX executable dede
/usr/bin/ld: warning: libprotobuf.so.11, needed by /data/ardalan.mehrani/deepdetect/build/caffe_dd/src/c$ffe_dd/build/lib/libcaffe.so, may conflict with libprotobuf.so.8
/usr/bin/ld: ../src/libddetect.a(caffelib.cc.o): undefined reference to symbol '_ZN6google8protobuf5Aren$11AddListNodeEPvPFvS2_E'
//usr/local/lib/libprotobuf.so.11: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [main/dede] Error 1
make[1]: *** [main/CMakeFiles/dede.dir/all] Error 2
make: *** [all] Error 2

but when I do ``LIBRARY_PATH="/lib:/usr/local/lib:/usr/lib" make it works !

Emmanuel Benazera
@beniz
Jan 26 2017 13:46 UTC
it's because somehow you have multiple version of libprotobuf on your system, which you shouldn't.