Page 1 of 1

SFML app refuse start through VNC connection

Posted: Wed Dec 17, 2014 7:41 am
by overkiller
Hi there!
I wrote small app using SFML 2.1 for Raspberry Pi. I've compiled it from sources, so all dependencies are met. The app does not want to start when I'm connected through VNC, but when Raspi is connected to external display it works.
I'm running newest Raspian with following kernel:

Code: Select all

Linux ns1 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
The VNC server:

Code: Select all

Tight VNC
Output from app:

Code: Select all

Failed to use the XRandR extension while trying to get desktop video modes. Segmentation Fault
However XRandr is installed, because it's dependency of SFML.
So, where is problem and how to solve it?

Re: SFML app refuse start through VNC connection

Posted: Mon Dec 22, 2014 11:46 am
by topguy
Are you connecting to the same x-server that is showing on the monitor ? Or is is a separate x-server ? Its most likely that the TightVNC server doesnt have XRander support.

You might want to try using "x11vnc" instead to share the standard desktop, it should still have the same XRander support even over VNC,

Re: SFML app refuse start through VNC connection

Posted: Fri Dec 26, 2014 4:21 pm
by overkiller
But I'm not starting xorg separately. It's headless server, also my test poligon.
Is there x11vnc in repo, it seems not.

Re: SFML app refuse start through VNC connection

Posted: Tue Dec 30, 2014 1:14 pm
by topguy

Code: Select all

pi@raspberrypi ~ $ apt-cache search x11vnc
ssvnc - Enhanced TightVNC viewer with SSL/SSH tunnel helper
x11vnc - VNC server to allow remote access to an existing X session
x11vnc-data - data files for x11vnc
Seems to be available to me. But in general if you can compile SFML without XRander then its probably better to do that.