Glew + GLFW Win32没有依赖Visual Studio [英] Glew+GLFW Win32 No Dependencies Visual Studio

查看:304
本文介绍了Glew + GLFW Win32没有依赖Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以构建和链接Glew和GLFW而不复制文件到C:??

Is it possible to build and link Glew and GLFW without copying files to the C:??

我找不到任何文档,显示如何使用这些库不复制DLL到Visual Studio目录上C:。

I can't find any documentation that shows how to use these libraries without copying DLLs to the Visual Studio Directory on the C:.

我只是想包括所有的.dll和.lib文件在我的项目的目录中需要。

I just want to include all the .dll and .lib files needed in the directory of my project.

推荐答案

您不必将DLL放在Visual Studio目录中。您可以删除那些在Debug或Release在您的编译模式)文件夹的VS项目。你必须包括这些DLL。其余的设置是相当简单。右键单击您的项目,选择属性。包括两者的标题在 C / C ++ - > 添加包含目录下的库。然后:链接器 - > 其他库目录,您将包含包含lib文件的文件夹。最后在链接器< >输入 - > 其他依赖关系中添加glew和GLFW库的名称( glew32.lib GLFW.lib )你准备好了。

You don't have to put the DLLs in Visual Studio Directory .You can drop those in the Debug or Release (based on your compile mode) folder of your VS project.And you do have to include those DLLs.The rest of setup is rather simple.Right click your project and select "Properties".Include the headers of both libs under C/C++ --> "Additonal Include Directories" . Then : Linker --> "Additional Library Directories" you include the folders containing the lib files.And lastly under Linker-->Input-->"Additional Dependencies" add the names of glew and GLFW libs (glew32.lib , GLFW.lib)And you are ready to go.

这篇关于Glew + GLFW Win32没有依赖Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆