編譯 porting gtk + environement to omap35 8 十二月, 2009
Posted by leterboy in Uncategorized.add a comment
glib
configure: error: cannot run test program while cross compiling
我是这样解决的第一步:记录下错误的地方如:checking abstract socket namespace… configure: error: cannot run test program while cross compiling
注意到abstract socket namespace在configure中查找abstract socket可以看到类似这样的结构
echo “$as_me:$LINENO: checking abstract socket namespace" >&5
echo $ECHO_N “checking abstract socket namespace… $ECHO_C" >&6
if test “${ac_cv_have_abstract_sockets+set}" = set; then
echo $ECHO_N “(cached) $ECHO_C" >&6
其中ac_cv_have_abstract_sockets是我们要查找的变量
使用echo ac_cv_have_abstract_sockets=yes>arm-linux.cache
然后
./configure –host=arm-linux –cache-file=arm-linux.cache
缺 glib-genmarshal
需用 sudo apt-get install libglib2.0-dev
- 編譯 atk-
下載 http://www.icewalkers.com/Linux/Software/514330/ATK.html
configure 之後,make之後,由於 glib-genmarshal為elf無法執行,因此暫時改掉命名,並以 ln -s /usr/bin/glib-genmarshal 連結過來使用
- 編譯 fontconfig 需先安裝 apt-get install libtool 與autoconf ,然後再下 sh autogen.sh –sysconfdir=/etc –prefix=/usr –mandir=/usr/share/man –localstatedir=/var 產生出 configure
- 編譯 cairo
需先安裝 pixman ,安裝 pixman-0.17.2 在make時,會有undefined reference , 改為安裝 pixman-0.16.0,即可解決
- pango
![](https://i0.wp.com/img.zemanta.com/pixy.gif)