我如何指出 make 在构建中使用特定的系统库?
我尝试将其放入本地 Makefile 中:
INCLUDE += -I/opt/local/include
并尝试将其放入 mozconfig 中:
export CFLAGS="-I/opt/local/include" export CXXFLAGS="-I/opt/local/include"
但我仍然得到:
error: portaudio.h: No such file or directory
如何让 make 找到正确的库?
I've tried putting this in the local Makefile :
INCLUDE += -I/opt/local/include
and tried putting this in the mozconfig:
export CFLAGS="-I/opt/local/include" export CXXFLAGS="-I/opt/local/include"
But i still get :
error: portaudio.h: No such file or directory
How do i get make to find the right libraries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将这些添加到 source//config/myconfig.mk
CFLAGS += -I/path/to/includes -L/path/to/libs -l
CXXFLAGS += -I/path/to/includes -L/path/to/libs -l </code>
Add these to source//config/myconfig.mk
CFLAGS += -I/path/to/includes -L/path/to/libs -l
CXXFLAGS += -I/path/to/includes -L/path/to/libs -l