【发布时间】:2016-02-06 05:55:48
【问题描述】:
当从命令行调用sdl2-config --cflags 时,我得到了我期望的结果。这也适用于在 makefile 中使用它并从命令行调用它。
当我在 netbeans 中使用相同的 makefile 时,我得到 make: sdl2-config: Command not found
netbeans 是否缺少某些环境设置?
这是makefile中的相关行:
SDL := $(shell sdl2-config --cflags)
我在 Mac 上使用通过 homebrew 安装的 SDL2
[编辑] 添加可执行文件的路径似乎可行:
SDL := $(shell /usr/local/bin/sdl2-config --cflags)
如何设置环境以包含路径而不将其硬编码到 makefile 中?
【问题讨论】:
标签: c++ c netbeans makefile sdl