在代码块中设置GLUT项目(Ubuntu 12.04) [英] Setup up GLUT projects in Codeblocks (Ubuntu 12.04)
问题描述
我通过apt-get安装了freeglut3和freeglut3-dev.我想在代码块中创建一个OPENGL GLUT项目.当我被问到GLUT的位置时,我输入了在教程中发现的"/usr". 但是我收到了错误消息:
I installed the freeglut3 and freeglut3-dev by apt-get. I want to create a OPENGL GLUT Project in Codeblocks. I was asked the GLUT's location and I entered "/usr" as I found in a tutorial. But I got the error message:
您输入的路径似乎有效,但是此向导 无法找到以下GLUT的库文件: 里面有很多食物."
"The path you entered seems valid, but this wizard can't locate the following GLUT's library file: glut in it."
我设置了正确的位置吗?建立这样一个过剩项目的正确方法是什么?
Did I set the right location? What is the right way to setup up such a glut project?
推荐答案
我也遇到了同样的问题.但是,我无需创建项目并运行GLUT程序即可解决问题.为此,转到编译器和调试器设置,然后在链接器选项卡和链接库libGL.so,libGLU.so和libglut.so中,通过按添加按钮形成目录usr/lib. 现在,您可以包含glut.h标头并运行该项目.
I have also faced the same problem. But I solve the problem Without creating the project and run the GLUT program. For that go to compiler and debugger setting and in linker tab and link library libGL.so , libGLU.so, libglut.so form directory usr/lib by pressing add button. Now you can include glut.h header and run the project.
这篇关于在代码块中设置GLUT项目(Ubuntu 12.04)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!