简体   繁体   English

如何为Visual Studio 2015永久安装GLUT?

[英]How to permanently install GLUT for visual studio 2015?

Is there anyway to permanently install GLUT for visual studio 2015? 无论如何要为visual studio 2015永久安装GLUT吗? I tried searching for it and it has showed some steps to add the GLUT libs and dlls in the project. 我尝试搜索它,并显示了在项目中添加GLUT库和dll的一些步骤。 Well this way does work but as far as I've noticed I have to do all the steps all over again if I create a new project and do code in that which is definitely not efficient. 那么这种方式确实有效,但据我注意到,如果我创建一个新项目并且在那些绝对无效的代码中执行代码,我必须重新执行所有步骤。 So is there anyway to permanently include GLUT files in visual studio 2015? 那么无论如何在Visual Studio 2015中永久包含GLUT文件?

也许你可以在你的vs中创建一个属性表,然后填写libs,dll和include路径并保存它,你可以在下次创建一个新项目时导入它。

This might be a bit late but I'm going to share what worked for me. 这可能有点晚了,但我将分享对我有用的东西。

  1. Download the pre-compiled GLUT binaries from here and extract it anywhere you want 此处下载预编译的GLUT二进制文件,并将其解压缩到您想要的任何位置
  2. Find and cd into your VS 2015 path, for me it was C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC 查找和cd到你的VS 2015年的路径,对我来说是C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC
  3. From extracted GLUT folder copy all *.lib files to lib folder on your path, all *.h files to your include folder and *.dll to bin folder 从提取的GLUT文件夹中将所有* .lib文件复制到路径上的lib文件夹,将所有* .h文件复制到include文件夹和* .dll到bin文件夹

Now your Visual Studio 2015 project should recognize when you add GLUT include s. 现在,您的Visual Studio 2015项目应该识别何时添加GLUT include s。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM