hszhao / PSPNet

Pyramid Scene Parsing Network, CVPR2017.
https://hszhao.github.io/projects/pspnet
Other
1.59k stars 545 forks source link

make ERROR:undefined reference to ‘H5Rdereference’ #79

Closed imjiangjun closed 6 years ago

imjiangjun commented 6 years ago

I have installed hdf5-1.8.20 and matio-1.5.2 following their user guide, however I meet this error when using make -j8.

Could you please give some advice? Thanks a lot! @hszhao PS:

  1. 未定义的引用 means undefined reference to
  2. My path to matio:/home/jiangjun/matio
  3. My path to hdf5:/home/jiangjun/hdf5
  4. My path to matlab2016:/home/jiangjun/matlab2016
  5. My path to your PSPNet:/home/jiangjun/PSPNet
  6. I cannot use sudo because of my limitted permission. Please avoid suggesting using sudo.
  7. I uesd ./configure --prefix=/home/jiangjun/matio --enable-mat73=yes --with-hdf5=/home/jiangjun/hdf5 to install matio successfully.

Here is the information. ...... AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0-rc3 CXX/LD -o .build_release/tools/test_net.bin CXX/LD -o .build_release/tools/extract_features.bin CXX/LD -o .build_release/tools/compute_image_mean.bin CXX/LD -o .build_release/tools/device_query.bin CXX/LD -o .build_release/tools/convert_imageset.bin CXX/LD -o .build_release/tools/caffe.bin CXX/LD -o .build_release/tools/finetune_net.bin CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin CXX/LD -o .build_release/tools/train_net.bin CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin CXX/LD -o .build_release/tools/net_speed_benchmark.bin /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status CXX/LD -o .build_release/examples/cpp_classification/classification.bin Makefile:619: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1 make: *** 正在等待未完成的任务.... /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/extract_features.bin' failed make: *** [.build_release/tools/extract_features.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/compute_image_mean.bin' failed make: *** [.build_release/tools/compute_image_mean.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/convert_imageset.bin' failed make: *** [.build_release/tools/convert_imageset.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/caffe.bin' failed make: *** [.build_release/tools/caffe.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/upgrade_net_proto_text.bin' failed make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:619: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1 /home/jiangjun/matio/lib/../lib/libmatio.so:对‘H5Rdereference’未定义的引用 collect2: error: ld returned 1 exit status Makefile:624: recipe for target '.build_release/examples/cpp_classification/classification.bin' failed make: *** [.build_release/examples/cpp_classification/classification.bin] Error 1

imjiangjun commented 6 years ago

I have fixed it. Thank you all the same.