mips交叉编译相关库文件,主要做以后参考

1.mips交叉编译paho-mqtt3as
cmake -DCMAKE_INSTALL_PREFIX=${pwd}/install -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_SAMPLES=TRUE 
-DCMAKE_C_COMPILER=/opt/mips-linux-gnueabihf/bin/mips-linux-gnu-gcc
-DPAHO_BUILD_DOCUMENTATION=TRUE
-DOPENSSL_LIB_SEARCH_PATH=/usr/mips/lib
-DOPENSSL_SSL_LIBRARY=/usr/mips/lib/libssl.so
-DOPENSSL_CRYPTO_LIBRARY=/usr/mips/lib/libcrypto.so
-DOPENSSL_INCLUDE_DIR=/usr/mips/include/
-DCMAKE_CXX_COMPILER=/opt/mips-linux-gnueabihf/bin/mips-linux-gnu-g++ ./

2.mips交叉编译zlib

CC=/opt/mips-linux-gnueabihf/bin/mips-linux-gnu-gcc ./configure --prefix=/root/projects/zlib-1.2.11/install

 

3.mips交叉编译sqlite3

wget https://www.sqlite.org/2024/sqlite-autoconf-3450000.tar.gz
./configure CC=/opt/mips-linux-gnueabihf/bin/mips-linux-gnu-gcc --host=mipsel-linux --prefix=/root/projects/sqlite/install

  

posted @ 2024-01-30 09:44  流逝的轻风  阅读(44)  评论(0编辑  收藏  举报