Compile caffe while another caffe exists already
来源:互联网 发布:上海炫踪网络上市 编辑:程序博客网 时间:2024/06/08 16:15
1. Problem
[dashuage caffe-fast-rcnn]$ makeCXX/LD -o .build_release/examples/cifar10/convert_cifar_data.bin/usr/bin/ld: warning: libhdf5_hl.so.100, needed by /usr/lib/libcaffe.so, may conflict with libhdf5_hl.so.10/usr/bin/ld: warning: libhdf5.so.100, needed by /usr/lib/libcaffe.so, may conflict with libhdf5.so.10/usr/bin/ld: .build_release/examples/cifar10/convert_cifar_data.o: undefined reference to symbol '_ZdlPvm'/usr/lib/libtcmalloc.so.4: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusmake: *** [Makefile:613: .build_release/examples/cifar10/convert_cifar_data.bin] Error 1
2. Analysis
When make, it does three things:
- make lib
- make tools
- make examples
This error occured when make the latter two objects.
Since there is another caffe installed already, we don’t really need to rebuild tools and examples. Use ln to link.
3. Solution
- Edit Makefile
#all: lib examples tools
all: lib - make all
- set link
#!/bin/bashcd build/tools/ln -s /usr/bin/caffe caffeln -s /usr/bin/compute_image_mean compute_image_meanln -s /usr/bin/convert_imageset convert_imagesetln -s /usr/bin/device_query device_queryln -s /usr/bin/extract_features extract_featuresln -s /usr/bin/finetune_net finetune_netln -s /usr/bin/net_speed_benchmark net_speed_benchmarkln -s /usr/bin/test_net test_netln -s /usr/bin/train_net train_netln -s /usr/bin/upgrade_net_proto_binary upgrade_net_proto_binaryln -s /usr/bin/upgrade_net_proto_text upgrade_net_proto_textln -s /usr/bin/upgrade_solver_proto_text upgrade_solver_proto_textcd ../examplesln -s /usr/bin/convert_cifar_data ./cifar10/convert_cifar_data.binln -s /usr/bin/classification ./cpp_classification/classification.binln -s /usr/bin/convert_mnist_data ./mnist/convert_mnist_data.binln -s /usr/bin/convert_mnist_siamese_data ./siamese/convert_mnist_siamese_data.bin
0 0
- Compile caffe while another caffe exists already
- Another resource already exists with name
- Caffe
- Caffe
- Caffe
- caffe
- Caffe
- Caffe
- Caffe
- caffe
- caffe
- caffe
- caffe
- Caffe
- Caffe
- caffe
- caffe
- caffe
- 格式化字符串漏洞执行任意代码分析
- 左栏固定,右栏自适应布局
- 服务器开发之订单号生成策略
- 程序员的未来
- A%Bproblem
- Compile caffe while another caffe exists already
- 机房收费系统——上下机
- weblogic下 java.lang.NoSuchMethodError异常
- Roman 字符
- TextView跑马灯效果
- Android之SurfaceView
- 关于腾讯应用管理中心,认领应用
- myBatis主键自增长sql
- 网站数据分析:如何追踪访客初始来源