Raspberry Pi

Raspbian (PIXEL) with SDL2

UPDATE: SDL performance is very slow. I don’t think it has anything to do with the Raspberry Pi 1 that I’m using. It just can’t be that slow. I believe it has more to do with the fact the libsdl-dev package is not using OpenGL. It’s not compiled for that use. I might have to try build it from source….


Here are the ins

  1. Get Raspbian running
  2. Enable VNC and SSH
  3. sudo apt-get update
  4. sudo apt-get install libsdl2-dev
  5. Run your app

To run without desktop manager:

  1. Edit /home/pi/.config/lxsession/LXDE-pi/autostart
  2. Comment out all lines that start with @ with #
  3. Add your app and precede with @

Source: http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/auto-running-programs-gui

To turn off the cursor:

  1. Edit /etc/lightdm/lightdm.conf
  2. Find the line ‘xserver_command’ under [SeatDefaults]
  3. Change it to ‘xserver_command = X -nocursor’

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s