Open Le-Brut opened 4 years ago
Nuklear renderer uses certain OpenGL version. Do you have video driver installed and configured? What that reports:
glxinfo | grep OpenGL
glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics (ILK)
OpenGL version string: 2.1 Mesa 20.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
BTW I am able to compile and run Nuklear/demo/sdl_opengl2 and Nuklear/demo/glfw_opengl2.
Try to change :opengl-version
from (3 3)
to (2 1)
in src/example.lisp
On the second thought, this is unlikely to work, because native renderer used in the example is using OpenGL 3.
@borodust Changed it, recompiled, but, yeah, same error indeed.
If you want to see how Nukear might look like in Common Lisp, instead of running example from this library, check out https://github.com/borodust/bodge-ui-window
;; Add cl-bodge distribution into quicklisp
(ql-dist:install-dist "http://bodge.borodust.org/dist/org.borodust.bodge.txt" :replace t :prompt nil)
;; Update main dist just in case
(ql:update-dist "quicklisp")
;; Eenable OpenGL 2 renderer
(cl:pushnew :bodge-gl2 cl:*features*)
;; Load the example
(ql:quickload :bodge-ui-window/examples)
;; And run it!
(bodge-ui-window.example.basic:run)
bodge-ui-window
indirectly uses this library to display UI. It employs a different renderer though and supports both OpenGL2 and OpenGL3.
@borodust this one works! Thank you!
Hi! I am trying to run the example
but I get this error:
Interestingly enough, running the bodge-glfw example
works just fine (opens an empty hello world window).
Here are the versions of both bodge-glfw and bodge-nuklear, as found in ~/quicklisp:
I am running on Arch Linux.
What could be the problem here?