overkiller
Posts: 4
Joined: Wed Dec 17, 2014 7:23 am

SFML app refuse start through VNC connection

Wed Dec 17, 2014 7:41 am

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?

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: SFML app refuse start through VNC connection

Mon Dec 22, 2014 11:46 am

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,

overkiller
Posts: 4
Joined: Wed Dec 17, 2014 7:23 am

Re: SFML app refuse start through VNC connection

Fri Dec 26, 2014 4:21 pm

But I'm not starting xorg separately. It's headless server, also my test poligon.
Is there x11vnc in repo, it seems not.

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: SFML app refuse start through VNC connection

Tue Dec 30, 2014 1:14 pm

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.

Return to “C/C++”