下载

wget https://github.com/ARMmbed/mbedtls/archive/refs/tags/v3.0.0.tar.gz

mv v3.0.0.tar.gz mbedtls-3.0.0.tar.gz
tar xvf mbedtls-3.0.0.tar.gz

cd mbedtls-3.0.0/
mkdir build && cd build

CC=arm-linux-gnueabihf-gcc cmake -D CMAKE_INSTALL_PREFIX=$(pwd)/../../install ..
-- The C compiler identification is GNU 5.5.0
-- Check for working C compiler: /opt/arm/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /opt/arm/bin/arm-linux-gnueabihf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
make -j8
make install
本文链接地址:https://const.net.cn/437.html

标签: none

添加新评论