Page 1 of 1

Can't Find OpenGL

Posted: Wed May 10, 2023 1:32 pm
by chris319
I'm trying to use OpenGL with a project. I have specified OpenGL in Compiler Options and PureBasic says it can't find it.

I have updated my Nvidia graphics drivers to the very latest.

Windows 10 64 bit.

:?:

Re: Can't Find OpenGL

Posted: Wed May 10, 2023 1:58 pm
by mk-soft
OpenGL is now default. DirectX9 and DirectX11 is subsystem

Re: Can't Find OpenGL

Posted: Wed May 10, 2023 2:08 pm
by StarBootics
We need more intel,

Do you want to use OpenGL API directly under Windows OS ? If so you will need to use GLEW in order to get the OpenGL functionality supported by your driver.

Since I don't use Windows OS on any of my computers I can't help you more than that.

Best regards
StarBootics

Re: Can't Find OpenGL

Posted: Wed May 10, 2023 3:33 pm
by mk-soft
Nothing needs to be installed afterwards ...

Re: Can't Find OpenGL

Posted: Fri Aug 18, 2023 6:35 pm
by Al_the_dutch
I got the same problem. An old project with openGL now opened with PureBasic 6.02 for Windows, x64. PureBasic syntax check/compiler says it cannot find the subsystem and does not compile. If I remove openGL in the compileroptions (libs), it does compile without warning or errors, but the executable gives a Warning: Please compile With OpenGL subsystem. Then the exe stops, so it is not only a warning. What can I do about it? Any help much appreciated.

Re: Can't Find OpenGL

Posted: Sat Aug 19, 2023 7:19 am
by Al_the_dutch
With PureBasic 5.73 LTS x64 no problems, so for a short time solution that's ok. :?

Re: Can't Find OpenGL

Posted: Sat Aug 19, 2023 8:19 am
by Caronte3D
Maybe it needs a proper bug report

Re: Can't Find OpenGL

Posted: Sat Aug 19, 2023 9:28 am
by Al_the_dutch
Thx. I did in Bugs - Windows\openGL subsystem not found.

Re: Can't Find OpenGL

Posted: Sat Aug 19, 2023 10:22 am
by Fred
The OpenGL subsystem has been made by default, so it's removed (the DirectX9 subsystem appeared). You just need to find in your code where is the check for the OpenGL subsystem and remove it.

Re: Can't Find OpenGL

Posted: Sat Aug 19, 2023 11:11 am
by Al_the_dutch
Thx so much Fred. Indeed the check was build into my code. That was in 2015, so I forgot it. :oops: :lol: