warning: libnghttp2.so.14, needed by usr/lib/libcurl.so, not found (try using -rpath or -rpath-link)

问题描述

在配置 makefile 的时候,发现报找不到库的错误; 但是查看 makefile 和对应路径 libcurl.so 都已经添加并且存在;
这里注意是 “needed by”, 是 libcurl.so 需要 libnghttp2.so,不要搞混了

/linux64/bin/../lib/gcc/arm/8.4.0/../../../../arm/bin/ld: 
warning: libnghttp2.so.14, needed by /usr/lib/libcurl.so, not found (try using -rpath or -rpath-link)
/linux64/bin/../lib/gcc/arm/8.4.0/../../../../arm/bin/ld: /usr/lib/libcurl.so: 
undefined reference to `nghttp2_pack_settings_payload'
/linux64/bin/../lib/gcc/arm/8.4.0/../../../../arm/bin/ld: /usr/lib/libcurl.so: 
undefined reference to `nghttp2_http2_strerror'

解决方法

在对应路径和makefile中添加 libnghttp2.so 即可

LIBS            = -L${SDK_LIBS_PATH}/lib ... -lwolfssl -lcurl ...

你可能感兴趣的:(服务器,linux,运维)