参考网址:
https://learnopengl-cn.github.io/01%20Getting%20started/02%20Creating%20a%20window/
https://www.jianshu.com/p/3f59e6cfde97
参考上面两篇文章搭建,编译成功:
![](https://img.haomeiwen.com/i3597041/25f8689e533e494b.png)
但是运行的时候:
![](https://img.haomeiwen.com/i3597041/7c3917e4db45d646.png)
改成x64后运行:
![](https://img.haomeiwen.com/i3597041/3a14ba79fc43b0ba.png)
问题出在这一步,没有选择Win32,选上,重新生成glfw3.lib:
![](https://img.haomeiwen.com/i3597041/4ae753c24fe5c09d.png)
最后运行选择的时候选择x86即可:
![](https://img.haomeiwen.com/i3597041/3cb06d891ad79c45.png)
https://learnopengl-cn.github.io/01%20Getting%20started/02%20Creating%20a%20window/
https://www.jianshu.com/p/3f59e6cfde97
参考上面两篇文章搭建,编译成功:
但是运行的时候:
改成x64后运行:
问题出在这一步,没有选择Win32,选上,重新生成glfw3.lib:
最后运行选择的时候选择x86即可:
本文标题:OpenGL windows下搭建环境踩坑记录
本文链接:https://www.haomeiwen.com/subject/kcrsxrtx.html
网友评论