Closed mahaidong closed 5 years ago
Please provide more information (post your source code to pastebin, tell us which operating system and which versions of software you're using, etc.).
{
"name": "nuklear",
"version": "4.01.3",
"repo": "vurtun/nuklear",
"description": "A small ANSI C gui toolkit",
"keywords": ["gl", "ui", "toolkit"],
"src": ["nuklear.h"]
}
system: macos 10.15.1 MacBook Pro (Retina, 13-inch, Late 2012)
I can compile the demo code
then i ./bin/demo
in terminal , I got this information:
Error 65543: Requested OpenGL version 4.5, got version 4.1
Thanks. In that case the backend (everything under demo/
are different backends) is not supported on your platform of choice (macOS). Feel free to choose other backends or make sure your systems is compatible with the glfw_opengl4
backend.
Thanks. In that case the backend (everything under
demo/
are different backends) is not supported on your platform of choice (macOS). Feel free to choose other backends or make sure your systems is compatible with theglfw_opengl4
backend.
almost all mac computer only support opengl4.1. https://support.apple.com/en-us/HT202823
Well, that's the point of having backends in Nuklear - you can choose for your project which specific backend you'd like to use (you can of course use different backends in one project and choose at compile time or at run time - this is allowed due to backend agnostic API Nuklear provides).
Nuklear will by no means choose a backend for you - we don't even provide any backends and all of them are user contributions (that's why the directory is called demos/
and not backends/
as those are just show cases how to use Nuklear in some specific cases).
Error 65543: Requested OpenGL version 4.5, got version 4.1