proton:linux_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
proton:linux_setup [2018/07/28 09:08] – [Compiling and running RTBareBones] seth | proton:linux_setup [2018/07/28 09:13] – [Compiling and running RTBareBones] seth | ||
---|---|---|---|
Line 52: | Line 52: | ||
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. | ||
Line 58: | Line 58: | ||
====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 | ||
proton/linux_setup.txt · Last modified: 2023/06/08 13:21 by seth