WindowGLFW: Failed create window

Hi @sparth21,

I think getting “no protocol specified” error is when running gui application on remote with sudo (root privileges).

when the DISPLAY variable is set to localhost:10.0 it means you are still trying to enable X11 port forwarding(like using mobaXterm) and that would not work. you must have a display physically connected to your computer to have graphic windowing support on Ubuntu.

using port forwarding of X11 enables support of opengl <=1.5 while the DW samples require a higher version (>4.3). (that is why you were able to run the simple window and not a more complex app like the DW sample)
to test the correct requirements please consider this attached updated sample code for glfw.helloWindow.cpp.txt (1.3 KB)
compile command: g++ helloWindow.cpp -lglfw -lGL -o helloWindow

the recommended way to run the samples is directly on a host computer(no ssh or using ssh while setting the DISPLAY variable to the id of the display that is physically connected) or on the Drive platform.
please try that first and then other alternatives.
otherwise, I’d recommend you post your question to the relevant forum.

good luck.

1 Like