如何在 OS X 上轻松安装arm-elf-gcc?

发布于 2024-08-21 00:18:51 字数 533 浏览 9 评论 0原文

请告诉我这是否应该是服务器故障...

我有一些需要编译的代码,需要arm-elf-gcc。我不是嵌入式程序员,所以这一切对我来说都是新的。我的开发机器是 Mac,我经常使用 fink,所以我希望能够以这种方式安装它。然而,fink 不知道有任何具有该名称的包。我看到 gnuarm.org 有一些适用于 OS X 的二进制文件,但他们的软件包似乎还包含一堆东西(例如海湾合作委员会)我已经有了。我是否正确地相信我需要安装 binutilsnewlib 和一个名为 t-arm-elf 的文件

Please let me know if this should be on Server Fault...

I've got some code I want to compile which requires arm-elf-gcc. I'm not an embedded programmer, so all this is new to me. My development machine is a Mac and I use fink pretty often, so I'd love to be able to install it that way. However, fink doesn't know of any package with that name. I see that gnuarm.org has some binaries for OS X but their packages seem to also include a bunch of stuff (e.g. gcc) I already have. Am I correct in believing that I need to install binutils, newlib and a file called t-arm-elf?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

混浊又暗下来 2024-08-28 00:18:51

MacPorts 支持arm-elf-gcc。

$ port search arm-elf
arm-elf-binutils @2.20.51.0.2 (cross, devel)
    FSF Binutils for arm-elf cross development

arm-elf-gcc @4.3.2 (cross, devel)
    gcc cross-compilers for arm-elf, with newlib runtime library.

arm-elf-gcc3 @3.4.6 (cross, devel)
    gcc 3.x cross-compilers for arm-elf, with newlib runtime library.

Found 3 ports.

安装 MacPorts 后,所需要做的就是:

$ sudo port install arm-elf-gcc

MacPorts supports arm-elf-gcc.

$ port search arm-elf
arm-elf-binutils @2.20.51.0.2 (cross, devel)
    FSF Binutils for arm-elf cross development

arm-elf-gcc @4.3.2 (cross, devel)
    gcc cross-compilers for arm-elf, with newlib runtime library.

arm-elf-gcc3 @3.4.6 (cross, devel)
    gcc 3.x cross-compilers for arm-elf, with newlib runtime library.

Found 3 ports.

Once you install MacPorts, all it would take is:

$ sudo port install arm-elf-gcc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文