SFML community forums

Help => General => Topic started by: aabs7 on July 05, 2017, 11:06:01 pm

Title: SFML on Pi showing segmentation error
Post by: aabs7 on July 05, 2017, 11:06:01 pm
when I try to run SFML on Pi ssh server, it shows segmentation error. But when I run it in real VNC pi virtual desktop terminal, it runs.

I want to run SFML program on ssh .
Is there any solution to this problem?
Title: Re: SFML on Pi showing segmentation error
Post by: eXpl0it3r on July 06, 2017, 08:12:17 am
Describe your problem properly. Nobody can help you with "it crashes". Why does it crash? What's the error? What modules are you using?

SFML window needs a running X server.
Title: Re: SFML on Pi showing segmentation error
Post by: aabs7 on July 06, 2017, 01:19:36 pm
Actually, I am running SFML on Raspberry Pi. when I run the code i.e lets say rendering window, it runs well when we run it from the monitor of Raspberry Pi.
But when I make a secure shell for Pi(ssh) on Linux without monitor and run the code through "ssh" of Pi , then it shows "SEGMENTATION FAULT"

For SFML to handle events we have to create window, But in SSH , it cannot open window to handle events. SO it is showing "SEGMENTATION FAULT"

Is there any possible way we can overcome this? i.e Handling events without Rendering window?

Title: Re: SFML on Pi showing segmentation error
Post by: Rosme on July 06, 2017, 04:03:57 pm
You need to forward X through ssh. Google it, you'll find plenty of results.