补充一下关于 pkg-config 在交叉编译中的使用
来源:互联网 发布:抓绒手套知乎 编辑:程序博客网 时间:2024/04/24 07:38
这是pkgconfig 官方, 给出的使用pkg-config 配置交叉编译环境的方法.
http://pkgconfig.freedesktop.org/wiki/CrossCompileProposal
1.
现阶段还不能直接通过 --host 参数控制交叉编译过程中链接的package路径.
只能通过$PKG_CONFIG_PATH 或 $PKG_CONFIG_LIBDIR.
1.1
Note that when specifying PKG_CONFIG_LIBDIR, pkg-config will completely ignore the content in PKG_CONFIG_PATH, even if the documentation states different things.
我的做法是在交叉编译的时候使用
export PKG_CONFIG_LIBDIR=/nfsroot/arm-xscale-linux-gnu/steven_root/pkgconfig
1.2.
In a cross compile situation, some .pc files on the system will be for the build machine and some will be for the target machine. In order to make sure that the build machine's .pc files are not found, both the $PKG_CONFIG_PATH and $PKG_CONFIG_PATH environment variables must be set to directories containing only target machine `.pc files.
2.
pkgconfig 官方给出将来可能采用的一种方法就是通过auto-config 的参数 --host 来自动判断用户交叉编译环境.
In order for pkg-config to be smart about picking what .pc files to use, it needs to know the what it is targetting. The proposed solution to this is to add a --host option to the program
关注pkgconfig 此功能的实现.
That's all!
Steven.
- 补充一下关于 pkg-config 在交叉编译中的使用
- Linux configure关于交叉编译的参数设置 (转)+补充一下关于 pkg-config 在交叉编译中的使用(转) + 动态.so库的环境设置, 使用 ld.so.conf(转)
- 3、交叉编译pkg-config
- pkg-config工具包程序编译中的使用
- Linux中的pkg-config使用
- 交叉编译中pkg-config和libtool设置
- 交叉编译中pkg-config和libtool设置
- 交叉编译时,禁止pkg-config搜索默认目录
- 使用GCC和pkg-config编译
- 关于pkg-config的使用示例
- GiNaC在windows下的编译-----MSYS下如何使用pkg-config?
- ubuntu 中的 pkg-config
- pkg-config使用
- pkg-config的使用
- pkg-config使用
- pkg-config的使用
- pkg-config的使用
- pkg-config的使用
- 四色原型
- 关于struts的标签
- 关于个人简历中如何书写技能介绍的建议
- 2008中国商业得意榜与失意榜
- 高性能网站建设之减少Http连接数
- 补充一下关于 pkg-config 在交叉编译中的使用
- Rails源代码分析(26):ActionController::HttpAuthentication::Basic::ControllerMethods
- JAVA中的正则表达式
- SystemParametersInfo详说
- 谁知道治疗肝内结石的好方法呢!
- java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
- 什么是扇入和扇出
- Eclipse中常用的快捷键
- 深入浅出C# 中文版 图文皆译 第三章 page101