On Windows, I played with putty and xming and it works. Also Mac XQuartz works. Now I want to have my own program exhibit locally just like xclock.
Here I am stuck. XOpenDisplay(null) in my program should connect to putty and xming without me doing anything. I either get seg faults or I get null.
Another way would be to not use putty for x forwarding and rely on my settings. I play directly with DISPLAY and set it to local IP address but never is my program get connected. Either it breaks on the XOpenDisplayor null is returned.
Yet another way to test this would be to call XOpenDisplay("192.168.1.50:0.0") and expect xming to pop my own window, but I get segmentation fault.
What is preventing the connection to the extent that XOpenDisplay crashes?
If you know the precise cook book recipe for Ubuntu 19 that will show what to do, it would be awesome. I am sure millions have had to deal with this issue.