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/01/28 06:58] – seth | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** Experimental | + | ** Compiling Proton |
- | These steps are what I use to compile stuff by copying things | + | As a base, I started with RetroPi (the image from 7/28/2018) on a Raspberry 3 B. |
+ | Update on Jan 28th 2019: I did try this with Raspbian Stretch 4.14, you need to run these commands first to get it working: | ||
- | 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 git | ||
+ | sudo apt-get install | ||
+ | sudo apt-get install libsdl2-2.0-0 libsdl2-dev | ||
+ | </ | ||
- | 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: | + | |
- | < | ||
- | 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 | + | First install |
- | sudo make install | + | |
+ | I ssh'ed in and did: | ||
+ | |||
+ | <code bash> | ||
+ | cd ~ | ||
+ | git clone https:// | ||
</ | </ | ||
- | To test your GL ES, do this with a local shell (not a remote shell window.. although maybe that works, dunno) | + | Now let's build Proton' |
- | < | + | |
- | cd ~/SDL2-2.0.4/test | + | < |
- | g++ -o testgles2 | + | cd ~/proton/RTPack/ |
- | ./testgles2 | + | sh linux_compile.sh |
</ | </ | ||
- | If stuff is setup right, you'll see some triangles or something rendering smoothly. | + | Now let's compile and run RTBareBones: |
- | Step 2: Proton stuff | + | <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 === | ||
+ | - It runs fullscreen only both in or out of the desktop environment | ||
+ | - No mouse or keyboard input (SDL isn't doing its job, see below) | ||
+ | - Video acceleration works, audio works (see my [[https:// | ||
- | 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. | + | SDL apparently can be tweaked to actually work with mouse and keyboard input but it requires some tricky stuff [[https://hg.libsdl.org/ |
proton/raspi_setup.txt · Last modified: 2023/12/03 06:42 by seth