MhLiao / TextBoxes_plusplus

TextBoxes++: A Single-Shot Oriented Scene Text Detector
Other
956 stars 281 forks source link

Caffe error when building on centos7 #98

Open XuLiangFRDC opened 6 years ago

XuLiangFRDC commented 6 years ago

I'm trying to build custom caffe on Textboxes++ on CentOS 7.2 but I'm getting an error. Please help!

[root@A02-R05-I67-66-0921423 TextBoxes_plusplus]# make -j8 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/data_transformer.cpp CXX src/caffe/internal_thread.cpp CXX src/caffe/layer.cpp CXX src/caffe/layer_factory.cpp CXX src/caffe/layers/absval_layer.cpp CXX src/caffe/layers/accuracy_layer.cpp CXX src/caffe/layers/annotated_data_layer.cpp CXX src/caffe/layers/argmax_layer.cpp CXX src/caffe/layers/base_conv_layer.cpp CXX src/caffe/layers/base_data_layer.cpp CXX src/caffe/layers/batch_norm_layer.cpp CXX src/caffe/layers/batch_reindex_layer.cpp CXX src/caffe/layers/bias_layer.cpp CXX src/caffe/layers/bnll_layer.cpp CXX src/caffe/layers/concat_layer.cpp CXX src/caffe/layers/contrastive_loss_layer.cpp CXX src/caffe/layers/conv_layer.cpp CXX src/caffe/layers/crop_layer.cpp CXX src/caffe/layers/ctc_decoder_layer.cpp CXX src/caffe/layers/ctc_loss_layer.cpp CXX src/caffe/layers/cudnn_conv_layer.cpp CXX src/caffe/layers/cudnn_lcn_layer.cpp CXX src/caffe/layers/cudnn_lrn_layer.cpp CXX src/caffe/layers/cudnn_pooling_layer.cpp CXX src/caffe/layers/cudnn_relu_layer.cpp CXX src/caffe/layers/cudnn_sigmoid_layer.cpp CXX src/caffe/layers/cudnn_softmax_layer.cpp CXX src/caffe/layers/cudnn_tanh_layer.cpp CXX src/caffe/layers/data_layer.cpp CXX src/caffe/layers/deconv_layer.cpp CXX src/caffe/layers/detection_evaluate_layer.cpp CXX src/caffe/layers/detection_output_layer.cpp CXX src/caffe/layers/dropout_layer.cpp CXX src/caffe/layers/dummy_data_layer.cpp CXX src/caffe/layers/eltwise_layer.cpp CXX src/caffe/layers/elu_layer.cpp CXX src/caffe/layers/embed_layer.cpp CXX src/caffe/layers/euclidean_loss_layer.cpp CXX src/caffe/layers/exp_layer.cpp CXX src/caffe/layers/filter_layer.cpp CXX src/caffe/layers/flatten_layer.cpp CXX src/caffe/layers/hdf5_data_layer.cpp CXX src/caffe/layers/hdf5_output_layer.cpp CXX src/caffe/layers/hinge_loss_layer.cpp CXX src/caffe/layers/im2col_layer.cpp CXX src/caffe/layers/image_data_layer.cpp CXX src/caffe/layers/infogain_loss_layer.cpp CXX src/caffe/layers/inner_product_layer.cpp CXX src/caffe/layers/input_layer.cpp CXX src/caffe/layers/log_layer.cpp CXX src/caffe/layers/loss_layer.cpp CXX src/caffe/layers/lrn_layer.cpp CXX src/caffe/layers/lstm_layer.cpp CXX src/caffe/layers/lstm_unit_layer.cpp CXX src/caffe/layers/memory_data_layer.cpp CXX src/caffe/layers/multibox_loss_layer.cpp CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp CXX src/caffe/layers/mvn_layer.cpp CXX src/caffe/layers/neuron_layer.cpp CXX src/caffe/layers/normalize_layer.cpp CXX src/caffe/layers/parameter_layer.cpp CXX src/caffe/layers/permute_layer.cpp CXX src/caffe/layers/pooling_layer.cpp CXX src/caffe/layers/power_layer.cpp CXX src/caffe/layers/prelu_layer.cpp CXX src/caffe/layers/prior_box_layer.cpp CXX src/caffe/layers/recurrent_layer.cpp CXX src/caffe/layers/reduction_layer.cpp CXX src/caffe/layers/relu_layer.cpp CXX src/caffe/layers/reshape_layer.cpp CXX src/caffe/layers/reverse_layer.cpp CXX src/caffe/layers/rnn_layer.cpp CXX src/caffe/layers/roi_pooling_layer.cpp CXX src/caffe/layers/scale_layer.cpp CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp CXX src/caffe/layers/sigmoid_layer.cpp CXX src/caffe/layers/silence_layer.cpp CXX src/caffe/layers/slice_layer.cpp CXX src/caffe/layers/smooth_L1_loss_layer.cpp CXX src/caffe/layers/softmax_layer.cpp CXX src/caffe/layers/softmax_loss_layer.cpp CXX src/caffe/layers/split_layer.cpp CXX src/caffe/layers/spp_layer.cpp CXX src/caffe/layers/tanh_layer.cpp CXX src/caffe/layers/threshold_layer.cpp CXX src/caffe/layers/tile_layer.cpp CXX src/caffe/layers/video_data_layer.cpp CXX src/caffe/layers/window_data_layer.cpp CXX src/caffe/net.cpp CXX src/caffe/parallel.cpp CXX src/caffe/solver.cpp CXX src/caffe/solvers/adadelta_solver.cpp CXX src/caffe/solvers/adagrad_solver.cpp CXX src/caffe/solvers/adam_solver.cpp CXX src/caffe/solvers/nesterov_solver.cpp CXX src/caffe/solvers/rmsprop_solver.cpp CXX src/caffe/solvers/sgd_solver.cpp CXX src/caffe/syncedmem.cpp CXX src/caffe/util/bbox_util.cpp CXX src/caffe/util/benchmark.cpp CXX src/caffe/util/blocking_queue.cpp CXX src/caffe/util/cudnn.cpp CXX src/caffe/util/db.cpp CXX src/caffe/util/db_leveldb.cpp CXX src/caffe/util/db_lmdb.cpp CXX src/caffe/util/hdf5.cpp CXX src/caffe/util/im2col.cpp CXX src/caffe/util/im_transforms.cpp CXX src/caffe/util/insert_splits.cpp CXX src/caffe/util/io.cpp CXX src/caffe/util/math_functions.cpp CXX src/caffe/util/sampler.cpp CXX src/caffe/util/signal_handler.cpp CXX src/caffe/util/upgrade_proto.cpp NVCC src/caffe/layers/absval_layer.cu NVCC src/caffe/layers/base_data_layer.cu NVCC src/caffe/layers/batch_norm_layer.cu NVCC src/caffe/layers/batch_reindex_layer.cu NVCC src/caffe/layers/bias_layer.cu NVCC src/caffe/layers/bnll_layer.cu NVCC src/caffe/layers/concat_layer.cu NVCC src/caffe/layers/contrastive_loss_layer.cu In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .build_release/src/caffe/proto/caffe.pb.h: In function ‘void caffe::DecodeBBoxPolygon(const caffe::NormalizedBBox&, const std::vector&, caffe::CodeType, bool, bool, const caffe::NormalizedBBox&, const caffe::NormalizedPolygon&, caffe::NormalizedBBox, caffe::NormalizedPolygon)’: .buildrelease/src/caffe/proto/caffe.pb.h:17051:14: warning: ‘y4’ may be used uninitialized in this function [-Wmaybe-uninitialized] y4 = value; ^ src/caffe/util/bbox_util.cpp:1297:39: note: ‘y4’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:17029:14: warning: ‘x4’ may be used uninitialized in this function [-Wmaybe-uninitialized] x4 = value; ^ src/caffe/util/bbox_util.cpp:1297:35: note: ‘x4’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:17007:14: warning: ‘y3’ may be used uninitialized in this function [-Wmaybe-uninitialized] y3 = value; ^ src/caffe/util/bbox_util.cpp:1297:31: note: ‘y3’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16985:14: warning: ‘x3’ may be used uninitialized in this function [-Wmaybe-uninitialized] x3 = value; ^ src/caffe/util/bbox_util.cpp:1297:27: note: ‘x3’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16963:14: warning: ‘y2’ may be used uninitialized in this function [-Wmaybe-uninitialized] y2 = value; ^ src/caffe/util/bbox_util.cpp:1297:23: note: ‘y2’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16941:14: warning: ‘x2’ may be used uninitialized in this function [-Wmaybe-uninitialized] x2 = value; ^ src/caffe/util/bbox_util.cpp:1297:19: note: ‘x2’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16919:14: warning: ‘y1’ may be used uninitialized in this function [-Wmaybe-uninitialized] y1 = value; ^ src/caffe/util/bbox_util.cpp:1297:15: note: ‘y1’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16897:14: warning: ‘x1’ may be used uninitialized in this function [-Wmaybe-uninitialized] x1 = value; ^ src/caffe/util/bbox_util.cpp:1297:11: note: ‘x1’ was declared here float x1, y1, x2, y2, x3, y3, x4, y4; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .build_release/src/caffe/proto/caffe.pb.h: In function ‘void caffe::DecodeBBoxRBox(const caffe::NormalizedBBox&, const std::vector&, caffe::CodeType, bool, bool, const caffe::NormalizedBBox&, const caffe::NormalizedRBox&, caffe::NormalizedBBox, caffe::NormalizedRBox)’: .buildrelease/src/caffe/proto/caffe.pb.h:16805:13: warning: ‘h’ may be used uninitialized in this function [-Wmaybe-uninitialized] h = value; ^ src/caffe/util/bbox_util.cpp:1449:27: note: ‘h’ was declared here float x1, y1, x2, y2, h; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16783:14: warning: ‘y2’ may be used uninitialized in this function [-Wmaybe-uninitialized] y2 = value; ^ src/caffe/util/bbox_util.cpp:1449:23: note: ‘y2’ was declared here float x1, y1, x2, y2, h; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16761:14: warning: ‘x2’ may be used uninitialized in this function [-Wmaybe-uninitialized] x2 = value; ^ src/caffe/util/bbox_util.cpp:1449:19: note: ‘x2’ was declared here float x1, y1, x2, y2, h; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16739:14: warning: ‘y1’ may be used uninitialized in this function [-Wmaybe-uninitialized] y1 = value; ^ src/caffe/util/bbox_util.cpp:1449:15: note: ‘y1’ was declared here float x1, y1, x2, y2, h; ^ In file included from ./include/caffe/util/cudnn.hpp:8:0, from ./include/caffe/util/device_alternate.hpp:40, from ./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from ./include/caffe/caffe.hpp:7, from ./include/caffe/util/bbox_util.hpp:25, from src/caffe/util/bbox_util.cpp:22: .buildrelease/src/caffe/proto/caffe.pb.h:16717:14: warning: ‘x1’ may be used uninitialized in this function [-Wmaybe-uninitialized] x1 = value; ^ src/caffe/util/bbox_util.cpp:1449:11: note: ‘x1’ was declared here float x1, y1, x2, y2, h; ^ NVCC src/caffe/layers/conv_layer.cu NVCC src/caffe/layers/crop_layer.cu NVCC src/caffe/layers/cudnn_conv_layer.cu NVCC src/caffe/layers/cudnn_lcn_layer.cu NVCC src/caffe/layers/cudnn_lrn_layer.cu NVCC src/caffe/layers/cudnn_pooling_layer.cu NVCC src/caffe/layers/cudnn_relu_layer.cu NVCC src/caffe/layers/cudnn_sigmoid_layer.cu NVCC src/caffe/layers/cudnn_softmax_layer.cu NVCC src/caffe/layers/cudnn_tanh_layer.cu NVCC src/caffe/layers/deconv_layer.cu NVCC src/caffe/layers/detection_output_layer.cu NVCC src/caffe/layers/dropout_layer.cu NVCC src/caffe/layers/eltwise_layer.cu NVCC src/caffe/layers/elu_layer.cu NVCC src/caffe/layers/embed_layer.cu NVCC src/caffe/layers/euclidean_loss_layer.cu NVCC src/caffe/layers/exp_layer.cu NVCC src/caffe/layers/filter_layer.cu NVCC src/caffe/layers/hdf5_data_layer.cu NVCC src/caffe/layers/hdf5_output_layer.cu NVCC src/caffe/layers/im2col_layer.cu NVCC src/caffe/layers/inner_product_layer.cu NVCC src/caffe/layers/log_layer.cu NVCC src/caffe/layers/lrn_layer.cu NVCC src/caffe/layers/lstm_unit_layer.cu NVCC src/caffe/layers/mvn_layer.cu NVCC src/caffe/layers/normalize_layer.cu NVCC src/caffe/layers/permute_layer.cu NVCC src/caffe/layers/pooling_layer.cu NVCC src/caffe/layers/power_layer.cu NVCC src/caffe/layers/prelu_layer.cu NVCC src/caffe/layers/recurrent_layer.cu NVCC src/caffe/layers/reduction_layer.cu NVCC src/caffe/layers/relu_layer.cu NVCC src/caffe/layers/reverse_layer.cu NVCC src/caffe/layers/roi_pooling_layer.cu NVCC src/caffe/layers/scale_layer.cu NVCC src/caffe/layers/sigmoid_cross_entropy_loss_layer.cu NVCC src/caffe/layers/sigmoid_layer.cu NVCC src/caffe/layers/silence_layer.cu NVCC src/caffe/layers/slice_layer.cu NVCC src/caffe/layers/smooth_L1_loss_layer.cu NVCC src/caffe/layers/softmax_layer.cu NVCC src/caffe/layers/softmax_loss_layer.cu NVCC src/caffe/layers/split_layer.cu NVCC src/caffe/layers/tanh_layer.cu NVCC src/caffe/layers/threshold_layer.cu NVCC src/caffe/layers/tile_layer.cu NVCC src/caffe/solvers/adadelta_solver.cu NVCC src/caffe/solvers/adagrad_solver.cu NVCC src/caffe/solvers/adam_solver.cu NVCC src/caffe/solvers/nesterov_solver.cu NVCC src/caffe/solvers/rmsprop_solver.cu NVCC src/caffe/solvers/sgd_solver.cu NVCC src/caffe/util/bbox_util.cu NVCC src/caffe/util/im2col.cu NVCC src/caffe/util/math_functions.cu CXX tools/caffe.cpp CXX tools/compute_image_mean.cpp CXX tools/convert_annoset.cpp CXX tools/convert_imageset.cpp CXX tools/create_label_map.cpp CXX tools/device_query.cpp CXX tools/extract_features.cpp CXX tools/finetune_net.cpp CXX tools/get_image_size.cpp CXX tools/net_speed_benchmark.cpp CXX tools/test_net.cpp CXX tools/train_net.cpp CXX tools/upgrade_net_proto_binary.cpp CXX tools/upgrade_net_proto_text.cpp CXX tools/upgrade_solver_proto_text.cpp CXX .build_release/src/caffe/proto/caffe.pb.cc AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0-rc3 /usr/bin/ld: cannot find -lhdf5_serial_hl /usr/bin/ld: cannot find -lhdf5_serial collect2: error: ld returned 1 exit status make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1

It seems that hdf5_serial.so is only on Ubuntu linux system. Install hdf5 on CentOS7 can not solve this error. Any other solutions?

shyamala-methy commented 5 years ago

@XuLiangFRDC Are you solved this problem.....?

MhLiao commented 5 years ago

Ubuntu is suggested. I have no experience with CentOS.

basaltzhang commented 5 years ago

i changed the linked library in Makefile, line 181, _hdf5_serial_hl hdf5serial into _hdf5hl hdf5