User Tools

Site Tools


proton:raspi_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proton:raspi_setup [2019/01/28 06:43] sethproton:raspi_setup [2023/12/03 06:42] (current) seth
Line 1: Line 1:
-** Compiling Proton and its examples on the Raspberry Pi with GL ES **+** Compiling Proton and its examples on the Raspberry Pi with OpenGL 2**
  
-As a base, I started with RetroPi (the image from 7/28/2018) on a Raspberry 3 B.  I should try it with a vanilla Raspbian Stretch install and see if that works too.+Test with the latest Raspberry Pi OS and RetroPi as of June 9th, 2023.
  
-Update on Jan 28th 2019:  did try this with Raspbian Stretch 4.14, you need to run these commands first to get it working:+These should run both in the desktop GUI, or directly from bash. (Fullscreen)  guess it's all identical to running on Ubuntu Linux/etc these days, no special stuff is needed. 
 + 
 +Firstinstall some tools/libs you'll need:
  
 <code bash> <code bash>
-sudo apt-get install git +sudo apt-get install cmake zlib1g-dev
-sudo apt-get install cmake+
 sudo apt-get install libsdl2-2.0-0 libsdl2-dev sudo apt-get install libsdl2-2.0-0 libsdl2-dev
 </code> </code>
  
-Also, I think the GL driver needs to be set to "Legacy" to work, which is the default, but worth mentioning if you've changed it using raspi-config. 
  
----- End Raspbian stretch part ----+Don't forget git!
  
 +<code bash>
 +sudo apt-get install git
 +</code>
  
-First install Proton and compile its RTPack utility: +Next, install Proton.
- +
-I ssh'ed in and did:+
  
 <code bash> <code bash>
Line 25: Line 26:
 </code> </code>
  
-Now let's build Proton's RTPack utility, will come in handle later.+Now let's build Proton's RTPack utility, will come in handle later to build and optimize resources.
  
 <code bash> <code bash>
Line 41: Line 42:
 </code> </code>
  
-If that worked, enjoy the spinning triangle and text stretching!+If that worked, enjoy the spinning triangle and text stretching!  It got 300+ fps on my Pi 4. Starting it from an ssh session worked for me as well.
  
 Now let's do RTSimpleApp, same thing but it needs SDL2_mixer for its audio, so let's get that installed: Now let's do RTSimpleApp, same thing but it needs SDL2_mixer for its audio, so let's get that installed:
Line 62: Line 63:
 If that worked, enjoy the app.  If it didn't... off to the forums and yell at Seth! If that worked, enjoy the app.  If it didn't... off to the forums and yell at Seth!
  
-=== Known issues === +=== Note from Dec 3rd, 2023 === 
-- It runs fullscreen only both in or out of the desktop environment + 
-No mouse or keyboard input (SDL2 should be handling this but isn'thaven't yet needed this as my projects use GPIO inputs generally)+I updated things so pulseaudio is used by default instead of alsa when compiling on a pi, this fixes audio on the latest Raspberry Pi OS.  (in AudioManagerSDL.cpp) 
 + 
 +=== State of Proton on the Pi === 
 +   
 +Hint: Using the RetroPi dist? You can edit the text file **/opt/retropie/configs/all/autostart.sh** and comment out where it runs emulationstation and change that to run your own app - or nothing at allso it drops into the shell on boot. 
 + 
 +An easy way to replace the boot splash is replacing **/opt/retropie/supplementary/splashscreen/retropie-default.png**
proton/raspi_setup.1548657791.txt.gz · Last modified: 2019/01/28 06:43 by seth