proton:raspi_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
proton:raspi_setup [2016/06/18 09:13] – seth | proton:raspi_setup [2023/12/03 04:44] – seth | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** Experimental | + | ** Compiling Proton |
- | These steps are what I use to compile stuff by copying things from my Windows computer. | + | Test with the latest Raspberry Pi OS and RetroPi as of June 9th, 2023. |
+ | These should run both in the desktop GUI, or directly from bash. (Fullscreen) | ||
- | Step 1: Make OpenGL ES 1/2 work on the Raspberry Pi 2 or 3. Strangely, as of June 18th 2016 the versions | + | First, install some tools/ |
- | I did this with the latest version of Raspbian (Jessie I think). | + | <code bash> |
+ | sudo apt-get install cmake zlib1g-dev | ||
+ | sudo apt-get install libsdl2-2.0-0 libsdl2-dev | ||
+ | </ | ||
- | * Give the video card more memory on the pi. Run raspi-config and give it 128 or 256 (good for the pi3) | ||
- | * Install cmake on the pi (sudo apt-get install cmake) | ||
- | * Do "sudo rpi-update" | ||
- | * Do the following from a shell window to install SDL2 from source: | ||
- | < | + | Don't forget git! |
- | cd ~ | + | |
- | sudo apt-get install | + | < |
- | wget https:// | + | sudo apt-get install |
- | tar zxvf SDL2-2.0.4.tar.gz | + | |
- | cd SDL2-2.0.4 && mkdir build && cd build | + | |
- | ../ | + | |
- | make -j 4 | + | |
- | sudo make install | + | |
</ | </ | ||
- | To test your GL ES, do this with a local shell (not a remote shell window.. although maybe that works, dunno) | + | Next, install Proton. |
- | < | + | |
- | cd ~/SDL2-2.0.4/test | + | < |
- | g++ -o testgles2 | + | cd ~ |
- | ./testgles2 | + | git clone https://github.com/ |
</ | </ | ||
- | If stuff is setup right, you'll see some triangles or something rendering smoothly. | + | Now let's build Proton' |
- | Step 2: Proton stuff | + | <code bash> |
+ | cd ~/ | ||
+ | sh linux_compile.sh | ||
+ | </ | ||
+ | |||
+ | Now let's compile and run RTBareBones: | ||
+ | |||
+ | <code bash> | ||
+ | cd ~/ | ||
+ | sh linux_compile.sh | ||
+ | cd ../bin | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | If that worked, enjoy the spinning triangle and text stretching! | ||
+ | |||
+ | Now let's do RTSimpleApp, | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install libsdl2-mixer-dev | ||
+ | </ | ||
+ | |||
+ | Great. | ||
+ | |||
+ | <code bash> | ||
+ | cd ~/ | ||
+ | sh linux_compile.sh | ||
+ | cd ../media | ||
+ | sh update_media.sh | ||
+ | cd ../bin | ||
+ | ./ | ||
+ | </ | ||
- | * Install linux tools for Windows, rsync and ssh should work from the command line | + | If that worked, enjoy the app. If it didn' |
- | * Setup a ssh key pair so you don' | + | |
- | * Edit SetupVars.bat and edit the IP to the pi | + | |
- | * Run CopyStuffToPi.bat. There should now be a ~/proton tree on the pi | + | |
- | * RTBareBones/ | + | |
+ | === State of Proton on the Pi === | ||
+ | | ||
+ | Hint: Using the RetroPi dist? You can edit the text file **/ | ||
- | If you look at the RTBarebones/linux dir you'll see the CMakeLists.txt file autodetect the pi and sets up GLES 1.1 headers stuff for it. | + | An easy way to replace |
proton/raspi_setup.txt · Last modified: 2023/12/03 06:42 by seth