SFML community forums
Help => General => Topic started 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?
-
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.
-
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?
-
You need to forward X through ssh. Google it, you'll find plenty of results.