We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://archlinuxstudio.github.io/LinuxNetworkProgrammingAndEncryption/#/libmbedtls/basic
Linux 网络编程与加密
The text was updated successfully, but these errors were encountered:
参考:https://www.cnblogs.com/sky-heaven/p/13884689.html
$ git clone https://github.com/ARMmbed/mbedtls.git $ make SHARED=1 $ sudo make install # 设置MBEDTLS_CONFIG_FILE宏,指向config-ccm-psk-tls1_2.h $ CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<config-ccm-psk-tls1_2.h>'" # 重新编译 $ make
cmake
/usr/local/lib
libmbedtls.so
libmbedcrypto.so
libmbedx509.so
/usr/local/include/mbedtls
/usr/local/bin
此时如果编译base64.c文件会报 error while loading shared libraries: libmbedcrypto.so.10: cannot open shared object file: No such file or directory
base64.c
error while loading shared libraries: libmbedcrypto.so.10: cannot open shared object file: No such file or directory
解决方案:
$ sudo echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf $ sudo /sbin/ldconfig
如果编译ciphersuite_list.c又会报 /usr/bin/ld: /usr/local/lib/libmbedx509.so: undefined reference to .....
ciphersuite_list.c
/usr/bin/ld: /usr/local/lib/libmbedx509.so: undefined reference to .....
解决方案
$ gcc ciphersuite_list.c -lmbedtls -lmbedx509 -lmbedcrypto -lmbedtls -lmbedx509 -lmbedcrypto
Sorry, something went wrong.
@JamesLiuwenliang 感谢回复
No branches or pull requests
https://archlinuxstudio.github.io/LinuxNetworkProgrammingAndEncryption/#/libmbedtls/basic
Linux 网络编程与加密
The text was updated successfully, but these errors were encountered: