在編譯好curl和openssl庫後,在I-MX287A板子上運行測試工具curl時出現問題:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
經過查看More details here: https://curl.haxx.se/docs/sslcerts.html這個網站的提示內容,在執行./curl 命令行工具時進行如下操作:
-k,--insecure使用SSL時允許不安全的服務器連接
--interface <name>使用網絡接口(或地址)
運行時允許加載不安全的服務連接,就可測試通過了。
測試步驟是把編好的ARM版本的動態庫複製到板子的/lib/目錄下,並建立好庫的軟連接如圖:
然後把編譯arm版curl庫的安裝路徑下的bin文件夾下的curl可執行文件拷貝到板子的隨便路徑下,運行
./curl -k "https://www.baidu.com"
在板子上運行通過即代表編譯的動態庫沒大問題,可以開始使用庫來寫程序了,當然可以直接在交叉編譯應用程序的時候使用靜態庫編譯。