-
Is there a way to use curv (specifically to export a curv script into a PNG) in a headless server?
Setting
Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I know you can run Curv on Linux without a GPU if you use the LLVMPIPE software gpu driver, but you still need an X server (or a Wayland server). It's ultimately an issue with the GLFW library that I use. Other GLFW users want this feature, but it isn't available. Eg, see glfw/glfw#1882 Maybe you can configure a dummy X server to run on your headless server? I have no experience with this, but there are some mentions on this on the web. Eg, https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/ Background InfoCurv uses the GPU to render a PNG. It accesses the GPU via OpenGL. To create the OpenGL context, it uses the GLFW library. Specifically, this code in
I create an (invisible) window in headless mode because in GLFW, that's the only way to create a context.
|
Beta Was this translation helpful? Give feedback.
I know you can run Curv on Linux without a GPU if you use the LLVMPIPE software gpu driver, but you still need an X server (or a Wayland server). It's ultimately an issue with the GLFW library that I use. Other GLFW users want this feature, but it isn't available. Eg, see glfw/glfw#1882
Maybe you can configure a dummy X server to run on your headless server? I have no experience with this, but there are some mentions on this on the web. Eg, https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/
Background Info
Curv uses the GPU to render a PNG. It accesses the GPU via OpenGL. To create the OpenGL context, it uses the GLFW library. Specific…