開發平台:ubuntu11.04
此庫被一些程式用於解析命令列選項。
交叉編譯popt-1.7.tar.gz:
$ tar zvxf popt-1.7.tar.gz
$ cd popt-1.7/
$ ./configure cc=arm-linux-gnu-gcc --host=arm-linux --prefix=$pwd/_install
如果在配置過程中出現「checkingfor gnu xgettext… configure: error:」這樣的錯誤提示,請安裝gettext後,繼續執行configure命令進行配置,然後編譯和安裝。
$ sudo apt-get install gettext
$ ./configure cc=arm-linux-gnu-gcc --host=arm-linux --prefix=$pwd/_install
$ make && make install
$ tar zvxf popt-1.14.tar.gz
$ cd popt-1.14/
$ ./configure cc=arm-linux-gnu-gcc --prefix=$pwd/_install --host=arm-linux
配置過程中會出現以下錯誤:
checking for va_copy() function... configure: error: cannot run test program while cross compiling
根據錯誤資訊在configure文中查詢錯誤發生處:
if test "$" = set; then
echo $echo_n "(cached) $echo_c" >&6
從中可知變數ac_cv_va_copy無法被自動配置上,所以:
$ echo ac_cv_va_copy=yes > arm-linux.cache
$ ./configure cc=arm-linux-gnu-gcc --prefix=$pwd/_install --host=arm-linux --cache-file=arm-linux.cache
$ make && make install
以後碰到類似的錯誤也可以按照這樣的方法處理。 常用庫之五 libtiff的交叉編譯
開發平台 ubuntu11.04 標籤影象檔案格式 taggedimage file format,簡寫為tiff 是一種主要用來儲存包括 和藝術圖在內的影象的檔案格式。tiff格式是文件影象和文件管理系統中的標準格式,此原始碼包含了tiff檔案操作的所有函式。交叉編譯tiff 3.8.2.tar....
boost庫的交叉編譯
1.首先執行boost解壓目錄下的 bootstrap.sh 2.修改生成的project config.jam檔案 修改 using gcc opt poky linux gcc sysroot opt poky 2.4.2 sysroots aarch64 poky linux 注 1.gcc ...
(八)boost庫之異常處理
今天使用boost庫,將輕鬆的解決這個問題。先看看使用stl中的異常類的一般做法 使用stl定義自己的異常 class myexception public std exception myexception const char const msg,int errcode exception ms...