proton:linux_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:linux_setup [2018/07/28 09:07] – [Compiling and running RTBareBones] seth | proton:linux_setup [2023/06/08 07:42] – [Grabbing Proton SDK] seth | ||
---|---|---|---|
Line 10: | Line 10: | ||
<code bash> | <code bash> | ||
+ | sudo apt install git | ||
cd ~ | cd ~ | ||
git clone https:// | git clone https:// | ||
Line 52: | Line 53: | ||
cd ../bin | cd ../bin | ||
./ | ./ | ||
- | </bash> | + | </code> |
On my Raspberry Pi I see a spinning triangle fullscreen. | On my Raspberry Pi I see a spinning triangle fullscreen. | ||
- | ==== Compiling and running the other examples ==== | + | ====Compiling and running the other examples==== |
- | The compilation process for the other examples is exactly the same that what was explained for RTBareBones above. But in addition the other examples than RTBareBones need resources to be built as explained here: [[proton: | + | The compilation process for the other examples is exactly the same that what was explained for RTBareBones above. |
- | For instructions how to compile RTPack | + | But in addition the other examples than RTBareBones need resources to be built as explained here: [[proton:win_setup2|Compiling RTSimpleApp]]. |
- | The resulting binary called '' | + | To do this in linux using RTPack, you need to move into your projects media directory and run build_media.sh, which itself runs RTPack/ |
- | Now let's build RTSimpleApp | + | Let's build RTSimpleApp, then build its media: |
<code bash> | <code bash> | ||
cd RTSimpleApp/ | cd RTSimpleApp/ | ||
- | mkdir build | + | sh linux_compile.sh |
- | cd build | + | cd ../media |
- | cmake .. | + | sh build_media.sh |
- | make | + | |
- | </ | + | |
- | + | ||
- | Next we'll build the resources. There is a helper script available that can be used in Linux to do this. There are similar helper scripts for Windows as well. The difference is that while there is a separate Windows script called update_media.bat for each example there is only one script for Linux that tries to take care of all the examples. | + | |
- | + | ||
- | Run the script and see it do its job: | + | |
- | + | ||
- | <code bash> | + | |
- | cd ../../media | + | |
- | ../ | + | |
- | </ | + | |
- | + | ||
- | This will convert the fonts and images to correct format and copy the converted resources to the '' | + | |
- | + | ||
- | <code bash> | + | |
cd ../bin | cd ../bin | ||
- | ../linux/ | + | ./RTSimpleApp |
</ | </ | ||
- | The rest of the examples can be compiled | + | If that worked, |
- | === How update_media.sh works === | + | ===How update_media.sh works=== |
The resource building script goes to the subdirectories of the '' | The resource building script goes to the subdirectories of the '' | ||
- | |||
==== Debug builds | ==== Debug builds | ||
Line 117: | Line 102: | ||
==== Command line arguments ==== | ==== Command line arguments ==== | ||
+ | |||
+ | **Note 7/ | ||
The Linux versions of the examples accept a few command line arguments. You can choose the video mode and emulated environment (e.g. iOS, Android, | The Linux versions of the examples accept a few command line arguments. You can choose the video mode and emulated environment (e.g. iOS, Android, | ||
<code bash> | <code bash> | ||
- | [user@localhost]$ ./rtsimpleapp | + | [user@localhost]$ ./RTSimpleApp |
Available video modes: | Available video modes: | ||
Line 138: | Line 125: | ||
<code bash> | <code bash> | ||
- | ./rtsimpleapp | + | ./RTSimpleApp |
</ | </ | ||
proton/linux_setup.txt · Last modified: 2023/06/08 13:21 by seth