博客專欄

        EEPW首頁 > 博客 > 如何交叉編譯curl?

        如何交叉編譯curl?

        發布人:電子禪石 時間:2020-01-16 來源:工程師 發布文章

        如何交叉編譯curl?

        1. 先準備一下openssl庫

          編譯openssl庫的方法在此

        2. 獲取curl源碼

          wget https://curl.haxx.se/download/curl-7.65.3.tar.gz

        2. 解壓

          tar xvf curl-7.65.3.tar.gz -C ~/

          cd ~/curl-7.65.3

        3. 配置

          CPPFLAGS="-I/home/jello/openssl/ -I/home/jello/openssl/include" LDFLAGS="-L/home/jello/openssl/lib" LIBS="-ldl" ./configure --host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g++ --with-ssl --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/jello/curl

         

        4. 編譯

          make -j4

        5. 安裝

          make install

        注意:configure  是由另一個buildconf 文件生成的。注意LIBS 要鏈接具體的三個庫,否則鏈接時候會出錯。

        CPPFLAGS="-I/home/gerry01/imx6q/openssl -I/home/gerry01/imx6q/openssl/include" LDFLAGS="-L/home/gerry01/imx6q/openssl/lib" LIBS="-ldl -lssl -lcrypto" ./configure --host=arm-linux CC=/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ --with-ssl --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/gerry01/imx6q/curl

        10.png

        *博客內容為網友個人發布,僅代表博主個人觀點,如有侵權請聯系工作人員刪除。

        DIY機械鍵盤相關社區:機械鍵盤DIY




        關鍵詞: curl

        技術專區

        關閉
        主站蜘蛛池模板: 宣威市| 桦甸市| 海原县| 太保市| 西宁市| 洮南市| 黔西| 翁源县| 古交市| 定远县| 仙桃市| 兴山县| 开封县| 开化县| 县级市| 宁晋县| 松桃| 丰镇市| 承德市| 若羌县| 秦安县| 团风县| 渝北区| 定兴县| 九龙县| 扶余县| 宁明县| 泊头市| 双流县| 区。| 胶南市| 九龙城区| 内黄县| 乐亭县| 龙海市| 安陆市| 全州县| 铜梁县| 阳朔县| 宜君县| 高要市|