[英]Segmentation fault using pthread and arm-linux-gnueabihf-gcc
[英]How to cross compile libxml2 with arm-linux-gnueabihf-gcc compiler. How to cross compile using third party libraries?
當我嘗試交叉編譯時出現錯誤
/usr/include/libxml2/libxml/encoding.h:31:26:致命錯誤:unicode / ucnv.h:沒有此類文件或目錄的編譯終止。
在最新版本的libxml2中,configure腳本嘗試使用pkg-config檢測ICU。 根據您的設置,這可能會導致在交叉編譯時產生誤報(有關詳細信息,請參見Autotools Mythbuster )。 我建議通過傳遞--without-icu
來禁用ICU支持。 ICU是一個巨大的庫,libxml2僅使用它在字符集之間進行轉換。 它還支持小得多的libiconv。
用arm-linux-gnueabihf-gcc -c -o test test.c -L/path/to/unicode/directory -lucnv.h
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.