交叉编译 glib
来源:互联网 发布:java 类似于w3c的网站 编辑:程序博客网 时间:2024/06/05 20:34
首先创建文件 arm-linux.cache,内容如下:
$ cat arm-linux.cache ac_cv_type_long_long=yesglib_cv_stack_grows=noglib_cv_uscore=noac_cv_func_posix_getpwuid_r=yes
然后去掉 write属性:
chmod a-w arm-linux.cache
之后,执行 configure:
./configure --host=arm-linux-gnueabi --prefix=/home/charles/code/build_systemd/_install --cache-file=arm-linux.cache CFLAGS=-I/home/charles/code/build_systemd/_install/include LDFLAGS=-L/home/charles/code/build_systemd/_install/lib
参考:
http://blog.csdn.net/absurd/article/details/646993
为了解决对于 libffi的依赖,在配置的时候,需要加上
LIBFFI_CFLAGS="-I/home/charles/code/build_systemd/_install/lib/libffi-3.2.1/include" LIBFFI_LIBS="-I/home/charles/code/build_systemd/_install/lib -lffi"
最后 link的时候报错:
/toolchain/armv7-gcc-6.3/bin/../lib/gcc/arm-linux-gnueabi/6.3.0/../../../../arm-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)
./.libs/libgio-2.0.so: undefined reference to `g_module_close'
./.libs/libgio-2.0.so: undefined reference to `g_module_symbol'
./.libs/libgio-2.0.so: undefined reference to `g_module_supported'
./.libs/libgio-2.0.so: undefined reference to `g_module_open'
./.libs/libgio-2.0.so: undefined reference to `g_module_error'
解决方法是,在 gio/Makefile 里找到 LDFLAGS, 在最后加 -lgmodule-2.0
但之后还有这样的错误:
GEN glib-compile-schemas.1
Error: no ID for constraint linkend: "GSettings".
Error: no ID for constraint linkend: "GSettings".
GEN glib-compile-resources.1
Error: no ID for constraint linkend: "GResource".
Error: no ID for constraint linkend: "GResource".
Error: no ID for constraint linkend: "G-GNUC-INTERNAL:CAPS".
还没搞懂这个是什么意思。。
- glib 交叉编译
- glib交叉编译过程
- 2、交叉编译glib
- glib交叉编译错误
- glib交叉编译
- glib交叉编译说明
- glib交叉编译
- glib交叉编译
- glib交叉编译
- 交叉编译 glib
- glib 交叉编译步骤
- 交叉编译glib 2.18.3
- 交叉编译glib-2.35.4
- 学习笔记:MIPS 交叉编译GLIB
- arm下交叉编译glib-2.28.8
- QNX系统glib-2.44交叉编译
- 交叉编译场景分析(arm-linux)(八)--编译glib
- 交叉编译场景分析(arm-linux)(八)--编译glib
- python基础_总结
- POJ
- Eclipse中Spring环境配置以及跑个Helloworld
- 使用Gradle构建EhCache3的Eclipse环境
- Android studio 类显示为方框不是圆圈
- 交叉编译 glib
- win 10 Ubuntu 子系统小记录
- 每天一个Linux命令:rm
- [py]list- 名片管理小程序
- 【CodeForces 804B】Minimum number of steps(思维+数学)
- html段落缩进效果
- 【正一专栏】放牛
- html添加水平线
- Dagger2入门