Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Eclipse 中的特定编译器构建一个项目,并且我正在使用 Makefile 来完成这项肮脏的工作——唯一的问题是 Eclipse 似乎与我的 bash 会话不共享相同的路径。我已经设置了 .bash_profile 和 .profile(显然 Mac 喜欢 .profile 和 .bash_profile 一样多),但是我所包含的导出都没有被拾取。我是否需要在我的 /usr/bin 或类似的东西中手动设置一些符号链接?或者有没有办法在eclipse中手动设置路径?
这是因为.bash_profile和在会话开始时.profile被读取。bash因此,您需要将构建命令更改为bash -l -c "make".
.bash_profile
.profile
bash
bash -l -c "make"
编辑 Makefile 并添加绝对路径:
PATH = /Users/me/yagarto/yagarto-4.6.2/bin/ TRGT = $(PATH)arm-none-eabi-