/usr/bin/ld: cannot find -lhdf5_hl..........Makefile:563: recipe for target '.build_release/lib/libc

CXX examples/cifar10/convert_cifar_data.cpp
CXX examples/siamese/convert_mnist_siamese_data.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:563: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1
wangxiao@GTX980:~/Downloads/caffe-master$
-------------------

怎么破?

do as issue 12. Change the Makefile.config: 

# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include   /usr/include/hdf5/serial  
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib  /usr/lib/x86_64-linux-gnu/hdf5/serial

[OHOS ERROR] [860/861] ACTION //device/rockchip/rk2206/sdk_liteos:liteos(//build/lite/toolchain:arm-none-eabi-gcc) [OHOS ERROR] FAILED: obj/device/rockchip/rk2206/sdk_liteos/liteos_build_ext_components.txt [OHOS ERROR] /usr/bin/python3 ../../../build/lite/build_ext_components.py --path=../../../device/rockchip/rk2206/sdk_liteos --command=sh\ ./build.sh\ /home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206 --target_dir=/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/obj/device/rockchip/rk2206/sdk_liteos/build.log --out_dir=/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/error.log [OHOS ERROR] arm-none-eabi-gcc -I/home/openharmony/txsmartropenharmony/device/rockchip/rk2206/sdk_liteos/include -E /home/openharmony/txsmartropenharmony/device/rockchip/rk2206/sdk_liteos/build/link/board.ld.S -o /home/openharmony/txsmartropenharmony/device/rockchip/rk2206/sdk_liteos/board.ld -P [OHOS ERROR] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb --specs=nosys.specs -Tboard.ld -L/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/libs -Wl,--start-group -Wl,--start-group -Wl,--whole-archive -lbootstrap -lbroadcast -lhal_iothardware -lhardware -lgas -lhdf_config -lhdf_core -lhdf_osal_lite -lhdf_platform_lite -lshellcmd -Wl,--no-whole-archive -larch -lcjson_static -ldump_static -lhal_wifiaware -lhuks_3.0_sdk -lnative_file -lsec_static -lwifiaware -lauthmanager -lcmsis -lexchook -lkernel -lpm -lsysparam -lwifiservice -lbacktrace -lcppsupport -lhal_file_static -lhichainsdk -lposix -ltoken_static -lboard -lcpup -lhievent_lite -lmbedtls -lsamgr -ltrans_service -ldiscovery -lhal_sysparam -lhilog_lite -lmusl-c -lsamgr_adapter -lutils -llwip -lhal_token_static -lhiview_lite -lmusl-m -lsamgr_source -lutils_kv_store -lfs_operations -lfatfs -lpahomqtt_static -llzlittlefs -lshell -Wl,--end-group -Wl,--end-group -Wl,-Map=/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/liteos.map,--cref -Wl,--gc-sections -o /home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/liteos.elf [OHOS ERROR] /home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/libs/libgas.a(libgas.gas.o): In function `smart_security_thread': [OHOS ERROR] gas.c:(.text.smart_security_thread+0x178): undefined reference to `lcd(int) __restrict' [OHOS ERROR] collect2: error: ld returned 1 exit status [OHOS ERROR] Makefile:81: recipe for target '/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/liteos.elf' failed [OHOS ERROR] make: *** [/home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/liteos.elf] Error 1 [OHOS ERROR] you can check build log in /home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206/build.log [OHOS ERROR] command: "/home/openharmony/txsmartropenharmony/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/openharmony/txsmartropenharmony/out/rk2206/isoftstone-rk2206" failed [OHOS ERROR] return code: 1 [OHOS ERROR] execution path: /home/openharmony/txsmartropenharmony 分析一下报错原因
06-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值