proton:raspi_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
proton:raspi_setup [2016/06/18 09:39] – seth | proton:raspi_setup [2019/02/06 02:56] – seth | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** Experimental | + | ** Compiling Proton |
- | These steps are what I use to compile stuff by copying things from my Windows computer. | + | As a base, I started with a [[https:// |
+ | If you REALLY want to use a standard Raspbian stretch install you can, just do these commands first to get ready: | ||
- | Step 1: Make OpenGL ES 1/2 work on the Raspberry Pi 2 or 3. Strangely, as of June 18th 2016 the versions you can get with apt-get | + | <code bash> |
+ | sudo apt-get install cmake | ||
+ | sudo apt-get install | ||
+ | </ | ||
- | I did this with the latest version of Raspbian (Jessie | + | Also, I think the GL driver needs to be set to " |
- | * Give the video card more memory on the pi. Run raspi-config and give it 128 or 256 (good for the pi3) | + | ---- End Raspbian stretch part ---- |
- | * 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: | + | |
- | < | + | First, make sure you gave git installed. SSH into your PI and: |
- | cd ~ | + | |
- | sudo apt-get install libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile1-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake | + | |
- | wget https:// | + | |
- | tar zxvf SDL2-2.0.4.tar.gz | + | |
- | cd SDL2-2.0.4 && mkdir build && cd build | + | |
- | ../ | + | |
- | make -j 5 | + | <code bash> |
- | sudo make install | + | sudo apt-get |
</ | </ | ||
- | To test your GL ES, do this with a local shell (not a remote shell window.. although maybe that works, dunno) | + | Next, install Proton and compile its RTPack utility: |
- | < | + | |
- | 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' |
+ | |||
+ | <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 | ||
+ | ./ | ||
+ | </ | ||
- | Step 2: Proton stuff | + | If that worked, enjoy the app. If it didn' |
- | * Install linux tools for Windows, rsync and ssh should work from the command line | + | === State of Proton on the Pi === |
- | | + | |
- | | + | - If SDL isn't compiled |
- | | + | |
- | * RTBareBones/ | + | |
+ | 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