这是我的编译过程
sudo ./configure --prefix=/opt/crosstool/ --host=arm-linux --build=i686-linux CC=arm-linux-gcc RANLIB=arm-linux-ranlib LD=arm-linux-ld --cache-file=arm-linux.cache
但在configure的过程中出现了以下的ERROE
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的源码包自己来编
sudo ./configure --prefix=/opt/crosstool --host=arm-linux --disable-csharp
sudo make
sudo make install
编好之后再次编译GLIB
sudo ./configure --prefix=/opt/crosstool/ --host=arm-linux --build=i686-linux CC=arm-linux-gcc RANLIB=arm-linux-ranlib LD=arm-linux-ld --cache-file=arm-linux.cache LDFLAGS="-L/opt/crosstool/lib" CFLAGS="-I/opt/crosstool/include"
增加LDFLAGS和CFLAGS指明gettext在那里
但在configure时还是出现
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)
网上也沒有相关的资料,请各位大俠指教一下怎样做,不勝感激
GLIB 文叉编译
- wangdu2002
- 帖子: 13284
- 注册时间: 2008-12-13 19:39
- 来自: 物华天宝人杰地灵