Setting OpenGl in plain C project
-
I am trying to set up OpenGl Project in QtCreator but as plain C project. I am using Qt application and its OpenGl capabilities normally but I wanted to try qtcreator as a C ide. So far I like it but I could not setup OpenGl. For some reason, I can't make it see glu.h.
I am using MSVC 2012 kit on Windows and I wrote a quick just-open-window with SDL application. I was able to run it on Linux. Here is relevant portion of my .pro file regarding this;INCLUDEPATH += $$WINDOWSSDKDIR/../8.1/include/um/gl DEPENDPATH += $$WINDOWSSDKDIR/../8.1/include/um/gl
Windows ships with glu.h in this directory. Also in my local include directory, I have GL folder that contains glew.h. This is how I always work with Visual Studio but Visual Studio just sees GL and glu since it's part of Windows SDK. What should I do to make this work on plain C project?
-
Hi and welcome to devnet,
Are you sure that WINDOWSSDKDIR is containing the right path ?
-
-
What errors did you had ?