如何使用我自己的 glext.h 文件来构建我的源代码
我使用的是安装了 NVIDIA 驱动程序的 RHEL 5.7 盒子。但是,我正在使用一些扩展,需要我修改 glext.h 文件。我尝试将它放在 Makefile 的包含路径中,并且尝试将它放在 /usr/local/include/GL 目录中。然而,在构建我正在开发的库时,它始终默认为存储在 /usr/local/include/GL 中的库。我如何让它默认为 /usr/local/include/GL 中的那个?由于公司政策,我无法提供 make 文件。请原谅。
---------------------------------------------------更新--- ------------------------------------------
解决方案是移动 OpenGL 标头从 /usr/include/GL 进入构建树中的目录,然后在标头中设置相对路径。
I am using RHEL 5.7 box with the NVIDIA drivers installed. However, I am using some extensions that require me to modify the glext.h file. I have tried placing it in my include path in my Makefile, and I have tried placing it in /usr/local/include/GL directory. However when building the library I am working on it keeps defaulting to the one stored in /usr/local/include/GL. How would I get it to default to the one in /usr/local/include/GL? I cannot provide the make file due to company policy. Please forgive.
---------------------------------------UPDATE---------------------------------------------
The resolve was to move the OpenGL headers from /usr/include/GL into a directory in the build tree, and then to set relative paths in the headers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
gcc -c file.c -I /usr/local/include/GL
gcc
-I
选项的文档:gcc -c file.c -I /usr/local/include/GL
gcc
documentation for the-I
option: