帶openssl交叉編譯curl庫

2021-10-10 20:52:22 字數 1216 閱讀 6257

參考:

注意: 交叉編譯時通過--prefix= 指定openssl的安裝路徑(絕對路徑)。

此處我的openssl安裝路徑為:/home/fangye/setup/openssl-1.1.1h/build_arm

編譯完成後可以看到,安裝目錄有如下幾個資料夾:

配置命令如下

./configure --host=aarch64-linux-gnu cc=aarch64-linux-gnu-gcc  --with-ssl=/home/fangye/setup/openssl-1.1.1h/build_arm  --enable-shared --enable-static --disable-dict --disable-ftp  --disable-imap --disable-ldap --disable-ldaps --disable-pop3  --disable-proxy --disable-rtsp --disable-smtp --disable-telnet  --disable-tftp --disable-zlib --without-ca-bundle --without-gnutls  --without-libidn --without-librtmp --without-libssh2 --without-nss  --without-zlib --prefix=/home/fangye/setup/curl-7.63.0/build_arm
配置完成結果如,則表示配置成功

看到這個後就是make 、make install 就可以了,在指定的安裝目錄下即可看到交叉編譯的curl庫檔案,標頭檔案。

如果遇到 ../lib/.libs/libcurl.so: undefined reference to `engine_get_next@openssl_1_1_0 問題,如下圖所示。不要慌,其實庫檔案已經編譯出來了,在資料夾名為.lib的隱藏目錄下。

使用如下命令即可找到:

find ./ -name *.so

交叉編譯openssl

tar xvf openssl 1.1.1f.orig.tar.gz2.配置configure 用指令碼檔案myconfigure.sh配置 vi myconfigure.s配置如下 cc arm linux gcc config no asm shared no async prefix pwd ...

openssl交叉編譯arm

1 交叉編譯arm環境的openssl 修改config檔案 因為晶元架構為armv7,所以新增 guessos armv7 generic linux2 對應位置 除了修改config檔案也可以在.config的時候新增 march armv7 a 引數 2 使用過程中遇到的問題 我使用的虛擬機器...

openssl的編譯與交叉編譯

1 交叉編譯openssl1.1.1a 3 關於openssl的交叉編譯 2 ubuntu編譯與安裝openssl config配置生成makefile,shared 表示生成動態庫,也可通過引數 prefix 自行指定安裝目錄,如下不配置則為預設安裝路徑。tar zxvf openssl 1.0....