Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML on Pi showing segmentation error  (Read 1396 times)

0 Members and 1 Guest are viewing this topic.

aabs7

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
SFML on Pi showing segmentation error
« 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?
« Last Edit: July 06, 2017, 07:58:00 am by Laurent »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10150
    • View Profile
    • development blog
    • Email
Re: SFML on Pi showing segmentation error
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

aabs7

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: SFML on Pi showing segmentation error
« Reply #2 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?


Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
Re: SFML on Pi showing segmentation error
« Reply #3 on: July 06, 2017, 04:03:57 pm »
You need to forward X through ssh. Google it, you'll find plenty of results.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord