交叉编译gtk
ubuntu12.04 64位arm-linux-gcc 4.3.2安装 pkgconfig 下载:http://download.chinaunix.net/download/0009000/8174.shtml#tar xvf pkgconfig-0.17.2.tar.bz2 #cd pkgconfig-0.17.2/./configure make
ubuntu12.04 64位
arm-linux-gcc 4.3.2
未整理,等我编好了再整理
安装 pkgconfig
下载:http://download.chinaunix.net/download/0009000/8174.shtml
#tar xvf pkgconfig-0.17.2.tar.bz2
#cd pkgconfig-0.17.2/
./configure
make
make install
1.安装libffi
下载:http://download.chinaunix.net/download/0006000/5819.shtml
#tar xvf libffi-3.0.11-rc2.tar.gz
#cd libffi-3.0.11-rc2
#./configure --prefix=/usr/local/arm/4.3.2 --host=arm-linux --target=arm-linux --disable-debug --disable-static --enable-shared
#make
#make install
# 2.交叉编译glib, 依赖的库: 无
下载:ftp://ftp.gtk.org/pub/gtk/v2.6/
tar xjf ${SOURCE_PATH}/glib-2.6.6.tar.bz2
cd glib-2.6.6.
//arm-linux.cache
ac_cv_type_long_long=yes
glib_cv_stack_grows=no
glib_cv_uscore=no
ac_cv_func_posix_getpwuid_r=yes
./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2 --cache-file=./arm-linux.cache
#make
#make install
出现问题:
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
解决:下载gettext(ubuntu平台上安装)
下载:http://www.gnu.org/software/gettext/gettext.html
./configure
Make
Make install
# 3.交叉编译atk, 依赖的库: glib
下载:http://ftp.acc.umu.se/pub/gnome/sources/atk/1.9/
tar xjf ${SOURCE_PATH}/atk-1.9.0.tar.bz2””
cd atk-1.9.0
CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2
make
make install
出现问题:
make all-recursive
make[1]: Entering directory `/home/opencv4mini2440/gtk/atk-1.9.0'
Making all in atk
make[2]: Entering directory `/home/opencv4mini2440/gtk/atk-1.9.0/atk'
glib-genmarshal --prefix=atk_marshal ./atkmarshal.list --header >> xgen-gmh \
&& (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~\
&& echo timestamp > stamp-atkmarshal.h
/bin/sh: /usr/local/arm/4.3.2/bin/glib-genmarshal: cannot execute binary file
make[2]: *** [stamp-atkmarshal.h] Error 126
make[2]: Leaving directory `/home/opencv4mini2440/gtk/atk-1.9.0/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/opencv4mini2440/gtk/atk-1.9.0'
make: *** [all] Error 2
root@ubuntu:/home/opencv4mini2440/gtk/atk-1.9.0# make
make all-recursive
make[1]: Entering directory `/home/opencv4mini2440/gtk/atk-1.9.0'
Making all in atk
make[2]: Entering directory `/home/opencv4mini2440/gtk/atk-1.9.0/atk'
glib-genmarshal --prefix=atk_marshal ./atkmarshal.list --header >> xgen-gmh \
&& (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~\
&& echo timestamp > stamp-atkmarshal.h
/bin/sh: /usr/local/arm/4.3.2/bin/glib-genmarshal: cannot execute binary file
make[2]: *** [stamp-atkmarshal.h] Error 126
make[2]: Leaving directory `/home/opencv4mini2440/gtk/atk-1.9.0/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/opencv4mini2440/gtk/atk-1.9.0'
make: *** [all] Error 2
解决方法:
编译一个电脑版的glib-genmarshal 然后COPY到交叉工具BIN目录下
# 5.交叉编译zlib, 依赖的库: 无
下载:http://download.csdn.net/download/b404587/3750737
cd ${BUILDDIR}
tar xjf ${SOURCE_PATH}/zlib-1.2.3.tar.bz2
cd zlib-1.2.3
CC=/usr/local/arm/4.3.2/bin/arm-linux-gcc CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --prefix=/usr/local/arm/4.3.2 --shared
make
make install
# 6.交叉编译libpng, 依赖的库: zlib
下载:http://download.csdn.net/download/kgw1681682009/3105391
cd ${BUILDDIR}
tar xjf ${SOURCE_PATH}/libpng-1.2.24.tar.tar
cd libpng-1.2.24
CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2
make
make install
8.交叉编译freetype, 依赖的库: zlib libpng
下载:http://download.savannah.gnu.org/releases/freetype/
#tar xjf ${SOURCE_PATH}/freetype-2.5.0.tar.gz
#cd freetype-2.5.0.
#LDFLAGS=-L/usr/local/arm/4.3.2/lib ./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2
#make
#make install
4.交叉编译 expat 依赖的库: 无
下载:http://downloads.sourceforge.net/expat/expat-2.0.0.tar.gz
#tar xvf expat-2.0.0.tar.gz
#cd expat-2.0.0.
#CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --prefix=/usr/local/arm/4.3.2 --host=arm-linux
#make
#make install
4.交叉编译 xml2 依赖的库: 无
下载:http://xmlsoft.org/sources/
#tar xvf libxml2-2.7.2.tar.gz
#cd libxml2-2.7.2
#CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --prefix=/usr/local/arm/4.3.2 --host=arm-linux
#make
#make install
4.交叉编译fontconfig 依赖的库:expat xml2
下载:http://download.csdn.net/download/zhuying_linux/3026189
#tar xvf fontconfig-2.4.2.tar.gz
#cd fontconfig-2.4.2
#LIBXML2_CFLAGS="-I/usr/local/arm/4.3.2/include/libxml2" LIBXML2_LIBS="-L/usr/local/arm/4.3.2/lib -lxml2" CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2 --with-freetype-config=/usr/local/arm/4.3.2/bin/freetype-config --with-arch=arm
#make
#make install
4.交叉编译cairo, 依赖的库: freetype,zlib
下载:http://www.linuxfromscratch.org/blfs/view/6.2.0/x/cairo.html
> tar zxvf cairo-1.2.4.tar.gz
> cd /root/ cairo-1.2.4
>CFLAGS="-I/usr/local/arm/4.3.2/include" LDFLAGS="-L/usr/local/arm/4.3.2/lib" ./configure --host=arm-linux --prefix=/usr/local/arm/4.3.2 --with-x --enable-win32=no
>make
>make install
未完。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
http://linux.chinaunix.net/techdoc/develop/2009/02/06/1060878.shtml
更多推荐
所有评论(0)