当前位置: 首页 > 工具软件 > Smooth Build > 使用案例 >

配置ssd出现make: *** [.build_release/tools/convert_annoset.bin] Error 1

欧阳乐生
2023-12-01
make过程遇到问题
  1. PROTOC src/caffe/proto/caffe.proto  
  2. CXX src/caffe/syncedmem.cpp  
  3. CXX src/caffe/layer.cpp  
  4. CXX src/caffe/blob.cpp  
  5. CXX src/caffe/common.cpp  
  6. CXX src/caffe/net.cpp  
  7. CXX src/caffe/data_transformer.cpp  
  8. CXX src/caffe/internal_thread.cpp  
  9. CXX src/caffe/parallel.cpp  
  10. CXX src/caffe/layer_factory.cpp  
  11. CXX src/caffe/util/db.cpp  
  12. CXX src/caffe/util/hdf5.cpp  
  13. CXX src/caffe/util/upgrade_proto.cpp  
  14. CXX src/caffe/util/im2col.cpp  
  15. CXX src/caffe/util/blocking_queue.cpp  
  16. CXX src/caffe/util/bbox_util.cpp  
  17. CXX src/caffe/util/db_lmdb.cpp  
  18. CXX src/caffe/util/math_functions.cpp  
  19. CXX src/caffe/util/cudnn.cpp  
  20. CXX src/caffe/util/insert_splits.cpp  
  21. CXX src/caffe/util/db_leveldb.cpp  
  22. CXX src/caffe/util/signal_handler.cpp  
  23. CXX src/caffe/util/sampler.cpp  
  24. CXX src/caffe/util/io.cpp  
  25. CXX src/caffe/util/benchmark.cpp  
  26. CXX src/caffe/util/im_transforms.cpp  
  27. CXX src/caffe/solvers/sgd_solver.cpp  
  28. CXX src/caffe/solvers/adadelta_solver.cpp  
  29. CXX src/caffe/solvers/adam_solver.cpp  
  30. CXX src/caffe/solvers/adagrad_solver.cpp  
  31. CXX src/caffe/solvers/rmsprop_solver.cpp  
  32. CXX src/caffe/solvers/nesterov_solver.cpp  
  33. CXX src/caffe/layers/image_data_layer.cpp  
  34. CXX src/caffe/layers/euclidean_loss_layer.cpp  
  35. CXX src/caffe/layers/rnn_layer.cpp  
  36. CXX src/caffe/layers/mvn_layer.cpp  
  37. CXX src/caffe/layers/dropout_layer.cpp  
  38. CXX src/caffe/layers/permute_layer.cpp  
  39. CXX src/caffe/layers/cudnn_pooling_layer.cpp  
  40. CXX src/caffe/layers/cudnn_relu_layer.cpp  
  41. CXX src/caffe/layers/softmax_layer.cpp  
  42. CXX src/caffe/layers/silence_layer.cpp  
  43. CXX src/caffe/layers/tile_layer.cpp  
  44. CXX src/caffe/layers/input_layer.cpp  
  45. CXX src/caffe/layers/cudnn_softmax_layer.cpp  
  46. CXX src/caffe/layers/argmax_layer.cpp  
  47. CXX src/caffe/layers/scale_layer.cpp  
  48. CXX src/caffe/layers/prelu_layer.cpp  
  49. CXX src/caffe/layers/cudnn_conv_layer.cpp  
  50. CXX src/caffe/layers/lrn_layer.cpp  
  51. CXX src/caffe/layers/split_layer.cpp  
  52. CXX src/caffe/layers/absval_layer.cpp  
  53. CXX src/caffe/layers/cudnn_lrn_layer.cpp  
  54. CXX src/caffe/layers/reduction_layer.cpp  
  55. CXX src/caffe/layers/elu_layer.cpp  
  56. CXX src/caffe/layers/exp_layer.cpp  
  57. CXX src/caffe/layers/crop_layer.cpp  
  58. CXX src/caffe/layers/threshold_layer.cpp  
  59. CXX src/caffe/layers/loss_layer.cpp  
  60. CXX src/caffe/layers/flatten_layer.cpp  
  61. CXX src/caffe/layers/spp_layer.cpp  
  62. CXX src/caffe/layers/relu_layer.cpp  
  63. CXX src/caffe/layers/base_conv_layer.cpp  
  64. CXX src/caffe/layers/dummy_data_layer.cpp  
  65. CXX src/caffe/layers/inner_product_layer.cpp  
  66. CXX src/caffe/layers/video_data_layer.cpp  
  67. CXX src/caffe/layers/detection_evaluate_layer.cpp  
  68. CXX src/caffe/layers/prior_box_layer.cpp  
  69. CXX src/caffe/layers/power_layer.cpp  
  70. CXX src/caffe/layers/bias_layer.cpp  
  71. CXX src/caffe/layers/hdf5_data_layer.cpp  
  72. CXX src/caffe/layers/tanh_layer.cpp  
  73. CXX src/caffe/layers/contrastive_loss_layer.cpp  
  74. CXX src/caffe/layers/deconv_layer.cpp  
  75. CXX src/caffe/layers/cudnn_tanh_layer.cpp  
  76. CXX src/caffe/layers/infogain_loss_layer.cpp  
  77. CXX src/caffe/layers/recurrent_layer.cpp  
  78. CXX src/caffe/layers/batch_reindex_layer.cpp  
  79. CXX src/caffe/layers/eltwise_layer.cpp  
  80. CXX src/caffe/layers/neuron_layer.cpp  
  81. CXX src/caffe/layers/hdf5_output_layer.cpp  
  82. CXX src/caffe/layers/sigmoid_layer.cpp  
  83. CXX src/caffe/layers/window_data_layer.cpp  
  84. CXX src/caffe/layers/memory_data_layer.cpp  
  85. CXX src/caffe/layers/log_layer.cpp  
  86. CXX src/caffe/layers/pooling_layer.cpp  
  87. CXX src/caffe/layers/concat_layer.cpp  
  88. CXX src/caffe/layers/base_data_layer.cpp  
  89. CXX src/caffe/layers/data_layer.cpp  
  90. CXX src/caffe/layers/conv_layer.cpp  
  91. CXX src/caffe/layers/detection_output_layer.cpp  
  92. CXX src/caffe/layers/cudnn_sigmoid_layer.cpp  
  93. CXX src/caffe/layers/batch_norm_layer.cpp  
  94. CXX src/caffe/layers/parameter_layer.cpp  
  95. CXX src/caffe/layers/hinge_loss_layer.cpp  
  96. CXX src/caffe/layers/embed_layer.cpp  
  97. CXX src/caffe/layers/multibox_loss_layer.cpp  
  98. CXX src/caffe/layers/cudnn_lcn_layer.cpp  
  99. CXX src/caffe/layers/bnll_layer.cpp  
  100. CXX src/caffe/layers/slice_layer.cpp  
  101. CXX src/caffe/layers/smooth_L1_loss_layer.cpp  
  102. CXX src/caffe/layers/accuracy_layer.cpp  
  103. CXX src/caffe/layers/softmax_loss_layer.cpp  
  104. CXX src/caffe/layers/normalize_layer.cpp  
  105. CXX src/caffe/layers/filter_layer.cpp  
  106. CXX src/caffe/layers/annotated_data_layer.cpp  
  107. CXX src/caffe/layers/lstm_unit_layer.cpp  
  108. CXX src/caffe/layers/lstm_layer.cpp  
  109. CXX src/caffe/layers/reshape_layer.cpp  
  110. CXX src/caffe/layers/im2col_layer.cpp  
  111. CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp  
  112. CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp  
  113. CXX src/caffe/solver.cpp  
  114. CXX src/caffe/data_reader.cpp  
  115. CXX tools/extract_features.cpp  
  116. CXX tools/convert_imageset.cpp  
  117. CXX tools/compute_image_mean.cpp  
  118. CXX tools/net_speed_benchmark.cpp  
  119. CXX tools/upgrade_solver_proto_text.cpp  
  120. CXX tools/test_net.cpp  
  121. CXX tools/finetune_net.cpp  
  122. CXX tools/upgrade_net_proto_binary.cpp  
  123. CXX tools/upgrade_net_proto_text.cpp  
  124. CXX tools/convert_annoset.cpp  
  125. CXX tools/train_net.cpp  
  126. CXX tools/device_query.cpp  
  127. CXX tools/get_image_size.cpp  
  128. CXX tools/create_label_map.cpp  
  129. CXX tools/caffe.cpp  
  130. CXX examples/mnist/convert_mnist_data.cpp  
  131. CXX examples/ssd/ssd_detect.cpp  
  132. CXX examples/cpp_classification/classification.cpp  
  133. CXX examples/siamese/convert_mnist_siamese_data.cpp  
  134. CXX examples/cifar10/convert_cifar_data.cpp  
  135. CXX .build_release/src/caffe/proto/caffe.pb.cc  
  136. AR -o .build_release/lib/libcaffe.a  
  137. LD -o .build_release/lib/libcaffe.so.1.0.0-rc3  
  138. CXX/LD -o .build_release/tools/extract_features.bin  
  139. CXX/LD -o .build_release/tools/convert_imageset.bin  
  140. CXX/LD -o .build_release/tools/compute_image_mean.bin  
  141. CXX/LD -o .build_release/tools/finetune_net.bin  
  142. CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin  
  143. CXX/LD -o .build_release/tools/net_speed_benchmark.bin  
  144. CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin  
  145. CXX/LD -o .build_release/tools/test_net.bin  
  146. CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin  
  147. CXX/LD -o .build_release/tools/convert_annoset.bin  
  148. CXX/LD -o .build_release/tools/train_net.bin  
  149. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  150. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  151. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  152. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  153. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  154. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  155. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  156. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  157. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  158. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  159. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  160. collect2: error: ld returned 1 exit status  
  161. Makefile:621: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed  
  162. make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1  
  163. make: *** 正在等待未完成的任务....  
  164. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  165. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  166. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  167. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  168. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  169. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  170. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  171. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  172. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  173. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  174. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  175. collect2: error: ld returned 1 exit status  
  176. Makefile:621: recipe for target '.build_release/tools/convert_imageset.bin' failed  
  177. make: *** [.build_release/tools/convert_imageset.bin] Error 1  
  178. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  179. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  180. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  181. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  182. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  183. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  184. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  185. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  186. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  187. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  188. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  189. collect2: error: ld returned 1 exit status  
  190. Makefile:621: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed  
  191. make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1  
  192. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  193. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  194. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  195. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  196. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  197. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  198. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  199. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  200. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  201. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  202. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  203. collect2: error: ld returned 1 exit status  
  204. Makefile:621: recipe for target '.build_release/tools/extract_features.bin' failed  
  205. make: *** [.build_release/tools/extract_features.bin] Error 1  
  206. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  207. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  208. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  209. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  210. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  211. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  212. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  213. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  214. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  215. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  216. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  217. collect2: error: ld returned 1 exit status  
  218. Makefile:621: recipe for target '.build_release/tools/compute_image_mean.bin' failed  
  219. make: *** [.build_release/tools/compute_image_mean.bin] Error 1  
  220. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  221. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  222. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  223. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  224. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  225. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  226. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  227. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  228. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  229. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  230. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  231. collect2: error: ld returned 1 exit status  
  232. Makefile:621: recipe for target '.build_release/tools/convert_annoset.bin' failed  
  233. make: *** [.build_release/tools/convert_annoset.bin] Error 1  
  234. .build_release/lib/libcaffe.so:对‘boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)’未定义的引用  
  235. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const’未定义的引用  
  236. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_mem_block()’未定义的引用  
  237. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用  
  238. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::put_mem_block(void*)’未定义的引用  
  239. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::verify_options(unsigned int, boost::regex_constants::_match_flags)’未定义的引用  
  240. .build_release/lib/libcaffe.so:对‘boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)’未定义的引用  
  241. .build_release/lib/libcaffe.so:对‘boost::cpp_regex_traits<char>::toi(char const*&, char const*, int) const’未定义的引用  
  242. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)’未定义的引用  
  243. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::raise_runtime_error(std::runtime_error const&)’未定义的引用  
  244. .build_release/lib/libcaffe.so:对‘boost::re_detail_106300::get_default_error_string(boost::regex_constants::error_type)’未定义的引用  
  245. collect2: error: ld returned 1 exit status  
  246. Makefile:621: recipe for target '.build_release/tools/upgrade_net_proto_text.bin' failed  
  247. make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1  

解决办法:添加boost_regex到Makefile

Makefile第260行左右添加boost_regex

 LIBRARIES += boost_thread stdc++后,如下

 LIBRARIES += boost_thread stdc++ boost_regex

Finish
 类似资料: