|
ubuntu 2.6.22-14下,使用eldk交叉编译工具编译gstreamer,交叉编译工具安装在/home/lele/下。编译gstreamer的时候报找不到libxml2和glib,所以分别交叉编译了一下,步骤如下:
libxml2:
su
228 echo $PATH
229 PATH=$PATH:/home/lele/eldk/usr/bin
230 echo $PATH
231 CC=ppc_4xx-gcc ./configure --host=powerpc-be-elf --prefix=/home/lele/eldk/ppc_4xx
232 make install
glib:
echo ac_cv_type_long_long=yes>>powerpc-be-elf.cache
echo glib_cv_stack_grows=no>>powerpc-be-elf.cache
echo glib_cv_uscore=no>>powerpc-be-elf.cache
echo ac_cv_func_posix_getpwuid_r=yes>>powerpc-be-elf.cache
echo ac_cv_func_posix_getgrgid_r=yes>>powerpc-be-elf.cache
CC=ppc_4xx-gcc ./configure --prefix=/home/lele/eldk/ppc_4xx --host=powerpc-be-elf --cache-file=powerpc-be-elf.cache --disable-tests
make install
在编译gstreamer:
CC=ppc_4xx-gcc LDFLAGS=-L/home/lele/eldk/ppc_4xx/lib CPPFLAGS=-I/home/lele/eldk/ppc_4xx/include ./configure --host=powerpc-be-elf --prefix=/home/lele/eldk/ppc_4xx --disable-examples --disable-tests --disable-failing-tests--disable-docbook --disable-gtk-doc --disable-net --disable-debug
错误如下哈
checking for GLIB... yes
checking for GLIB_ONLY... yes
checking for XML... no
checking for libxml-2.0 >= 2.4.9... configure: error: Need libxml2 for glib2 builds -- you should be able to do without it -- this needs fixing
实在不知道如何是好,老板天天催,请问各位有什么高见阿?各种改不好,也不像在本机那样可以下一个libxml2-dev解决。 |
|