Sclang on a system without x?

Is it possible to run sclang without x? I am working on a Debian 11 system without x installed.

albert@t61:~$ sclang
compiling class library...
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
terminate called without an active exception
Aborted

I have tried scvim and get a similar error regarding x.

Is it possible to run sclang without x? I am working on a Debian 11 system without x installed.
Have you tried to run it from within (neo)vim?

That looks like a Qt error. You might need to compile sc, disabling Qt, although, having never done it, I might be wrong.

1 Like
1 Like

Ok yes! Setting the environment variable below worked! :slight_smile: Excellent. Thank you both!

export QT_QPA_PLATFORM=offscreen
1 Like