You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an issue with the compiled program that refuses to run due to my unsupported OpenGL of my laptop
INFO: Initializing raylib 4.0
WARNING: GLFW: Error: 65542 Description: WGL: The driver does not appear to support OpenGL
WARNING: GLFW: Failed to initialize Window
FATAL: Failed to initialize Graphics Device
is there any way to force customize the OpenGL version?
We use cmake to build raylib, and by default we download a pre-built binary for your platform, that hits the most common usecases, to speed up install, but you can force a build in the directory with npm run compile.
That would look like this:
# (in your project)cd node_modules/raylib
npm run compile
Before you do this, you can set any env-vars, and you can also add any cmake flags after, to build it in some non-standard way.
Here is the option for the OpenGL version, so you should be able to do this instead of npm run compile, above:
npm run compile -- --CDOPENGL_VERSION="ES 2.0"
or whatever version makes sense for you, there. You can even set it to OFF, but it will be missing a lot of features.
You can add as many as you want, if you need to tune it further:
npm run compile -- --CDOPENGL_VERSION="1.1" --CDSUPPORT_MODULE_RMODELS=OFF
Should I PR the README or maybe we should put it in the wiki? (Enable wiki in settings, if you want that.) We could probably move the docs/ folder into the wiki, too, just to tidy up.
Activity
konsumer commentedon Jul 3, 2022
We use cmake to build raylib, and by default we download a pre-built binary for your platform, that hits the most common usecases, to speed up install, but you can force a build in the directory with
npm run compile.That would look like this:
Before you do this, you can set any env-vars, and you can also add any cmake flags after, to build it in some non-standard way.
Here is the option for the OpenGL version, so you should be able to do this instead of
npm run compile, above:npm run compile -- --CDOPENGL_VERSION="ES 2.0"or whatever version makes sense for you, there. You can even set it to
OFF, but it will be missing a lot of features.You can add as many as you want, if you need to tune it further:
npm run compile -- --CDOPENGL_VERSION="1.1" --CDSUPPORT_MODULE_RMODELS=OFFNeiAozora commentedon Jul 14, 2022
Thanks man I appreciated the reply, and now it worked, thanks 👍
RobLoach commentedon Jul 14, 2022
I believe this is worth some documentation! Thanks for the investigation here 👍
konsumer commentedon Jul 14, 2022
Should I PR the README or maybe we should put it in the wiki? (Enable wiki in settings, if you want that.) We could probably move the docs/ folder into the wiki, too, just to tidy up.