1.下载glib,libxml2,gstreamer到目录/home/mars/Downloads/
2.mkdir /home/mars/arm-linux/usr
3.解压缩glib:tar zxvf glib-2.22.0.tar.gz
4.cd glib-2.22.0
5.输入:
CC=arm-linux-gcc ./configure --build=i686-linux --host=arm-linux --prefix=/usr
glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_posix_getgrgid_r=yes ac_cv_lib_rt_clock_gettime=no glib_cv_monotonic_clock=yes
解释:用编译器:arm-linux-gcc ,--host:运行环境是arm-linux,--prefix:运行目录是/usr。
后面很多要yes or no的都是必须的,因为arm和pc毕竟不同,所以很多配置要重新配置。
6.顺利成功
7.make
8.恶 编了好久啊 真怀疑在无限循环中。。。尤其这会同时在循环听一首歌 有一种时空混乱,时间重复的
感觉
9.呵呵,太好了,成功。
10.make DESTDIR=/home/mars/arm-linux/usr install
11.成功。
12.解压缩libxml2
13.cd libxml2-2.7.6
14.CC=arm-linux-gcc ./configure --build=i686-linux --host=arm-linux --prefix=/usr
15.成功。5分钟。最后显示了一个:
/bin/rm: cannot remove 'libtoolT': No such file or directory
Done configuring
但是没看到error字样,应该成功了吧。
16.make
17.成功。13分钟 真有得等的
18.make DESTDIR=/home/mars/arm-linux/usr install
19。成功
20.解压缩gstreamer,并进入文件夹cd gstreamer-0.10.29
21.
CC=arm-linux-gcc PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure --build=i686-linux --
host=arm-linux --prefix=/usr CFLAGS=-I/usr/include --disable-registry --disable-loadsave --
disable-gtk-doc ac_cv_func_register_printf_function=no --disable-tests --disable-valgrind --
disable-de
交叉编译gstreamer for arm
最新推荐文章于 2024-06-12 15:14:26 发布