Can I program/compile OpenGL 4.0 code on my computer without a graphics card or MESA?

不打扰是莪最后的温柔 提交于 2019-12-12 18:26:42

问题


I recently began working with Open GL 4.0 using the Redbook 8th edition. From the start of the morning until now I wasn't able to compile the 'HelloWorld' of OpenGL programs.

I configured the dependencies, transferred file contents of freeGlut/GLEW/GLSL to the respective VC folder for my VS 2013 C++ IDE. I eventually became convinced that the catalyst for this breakdown of events happened because VS was referencing multiple lib files in different locations and the linker couldn't make heads- to tails of what it was referencing.

However I realized another issue that I was naive/ignorant about. Could I be having compiling issues not because of my dependency configuration but because I only have a built in chipset instead of a card and no MESA?

I don't know if my built-in chipset supports openGL 4.0

Intel(R) HD Graphics 4000

EDIT: My compiltation errors within VS 2013 give no 'clue' that its a hardware issue. All of them are LNK2005 issues.


回答1:


You can compile GL4 programs all day long. Totally independent of what graphics hardware you may or may not have. Hell, you can cross-compile Win32 OpenGL programs from a headless Linux box using MinGW if you really wanted to!

Whether or not you can run those programs is a function of your GL implementation.

Wiki claims you can do GL 4.0 with your HD 4000 on Windows.



来源:https://stackoverflow.com/questions/20864454/can-i-program-compile-opengl-4-0-code-on-my-computer-without-a-graphics-card-or

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!