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:03] – [Compiling and running RTBareBones] seth | proton:linux_setup [2018/07/28 09:15] – [Command line arguments] seth | ||
---|---|---|---|
Line 27: | Line 27: | ||
Hopefully that worked. | Hopefully that worked. | ||
- | **Note:** By default, RTPack is compiled with the RT_NO_PVR flag, so support for a weird texture format called PVRTC isn't included. | + | **Note:** By default, RTPack is compiled with the RT_NO_PVR flag, so support for a weird texture format called PVRTC isn't included. |
Line 46: | Line 46: | ||
If the build finishes without errors you'll end up with a binary called '' | If the build finishes without errors you'll end up with a binary called '' | ||
- | ==== 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: | + | To try it: |
- | For instructions how to compile RTPack in Linux see [[proton: | + | <code bash> |
+ | cd ../bin | ||
+ | ./ | ||
+ | </ | ||
- | The resulting binary called '' | + | On my Raspberry Pi I see a spinning triangle fullscreen. |
- | Now let's build RTSimpleApp just like RTBareBones: | + | ====Compiling and running the other examples==== |
- | <code bash> | + | The compilation process for the other examples is exactly the same that what was explained for RTBareBones above. |
- | cd RTSimpleApp/ | + | |
- | mkdir build | + | |
- | cd build | + | |
- | cmake .. | + | |
- | 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 | + | But in addition |
- | Run the script and see it do its job: | + | To do this in linux using RTPack, you need to move into your projects |
- | + | ||
- | <code bash> | + | |
- | cd ../../media | + | |
- | ../../tools/linux/update_media.sh | + | |
- | </ | + | |
- | This will convert the fonts and images to correct format and copy the converted resources to the '' | + | Let's build RTSimpleApp, |
<code bash> | <code bash> | ||
+ | cd RTSimpleApp/ | ||
+ | sh linux_compile.sh | ||
+ | cd ../media | ||
+ | sh build_media.sh | ||
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 107: | Line 101: | ||
==== 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 128: | Line 124: | ||
<code bash> | <code bash> | ||
- | ./rtsimpleapp | + | ./RTSimpleApp |
</ | </ | ||
proton/linux_setup.txt · Last modified: 2023/06/08 13:21 by seth