GameShell

如何透過UART執行GUI程式


如果要在UART介面下執行GUI程式,需要如下步驟,不然程式會Crash

cpi@clockworkpi:~$ retroarch
  [INFO] Available input drivers are:
  [INFO]  sdl2
  [INFO]  x
  [INFO]  udev
  [INFO]  linuxraw
  [INFO]  null
  error: XDG_RUNTIME_DIR not set in the environment.
  error: XDG_RUNTIME_DIR not set in the environment.
  Segmentation fault

cpi@clockworkpi:~$ export DISPLAY=:0.0
cpi@clockworkpi:~$ export SDL_NOMOUSE=1
cpi@clockworkpi:~$ xhost +localhost
  localhost being added to access control list
cpi@clockworkpi:~$ retroarch
  [INFO] Available input drivers are:
  [INFO]  sdl2
  [INFO]  x
  [INFO]  udev
  [INFO]  linuxraw
  [INFO]  null
  sh: 1: xdg-screensaver: not found
  Failed to open /home/cpi/.config/retroarch/assets/xmb/monochrome/font.ttf: No such file or directory
  Failed to open /home/cpi/.config/retroarch/assets/xmb/monochrome/font.ttf: No such file or directory

P.S. 請不要使用root權限執行GUI程式。


返回上一頁