【问题标题】:Installing libraries for arm-gcc-compiler为 arm-gcc-compiler 安装库
【发布时间】:2015-05-29 09:26:41
【问题描述】:

我有一个可以与 arm-linux-gnueabi-gcc 命令一起使用的功能性 arm 交叉编译器。

这适用于简单程序,但是当我必须编译需要 x11、opengl 等库的较大程序时遇到问题,因为所需的头文件/文件不在 arm-linux-gnuebi 目录中,但在普通 gcc 编译器中。

我想知道,有没有什么简单的方法可以为 arm-gcc 安装此类库。

使用简单的 apt-get 不起作用。例如,如果我需要 freeglut3-dev 来交叉编译应用程序,我该怎么做。

我可以为 arm-gcc 配置 apt-get do install 库吗?或者我可以使用 gdebi 在我自己的主机上安装 .deb(支持 arm 的)吗?

问候

【问题讨论】:

    标签: linux gcc arm cross-compiling embedded-linux


    【解决方案1】:

    看看这个页面,在 apt 中有一个选项来指定包架构: https://unix.stackexchange.com/questions/115272/download-package-via-apt-for-another-architecture

    beagleboard 上的架构“:armhf”示例如下: 请参阅“使用 X 构建 Qt”部分 https://wiki.mozilla.org/Embedding/IPCLiteAPI_BeagleBoardHF

    另一种方法是创建一个用于开发的 VM: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Virtual_ARM_Linux_environment

    希望对你有帮助 ssinfod

    【讨论】:

      猜你喜欢
      • 2014-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-31
      • 2019-10-06
      • 2017-05-11
      • 2020-05-08
      • 1970-01-01
      相关资源
      最近更新 更多