proton:linux_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proton:linux_setup [2023/06/08 09:08] – [Compiling and running RTBareBones] seth | proton:linux_setup [2023/06/08 13:21] (current) – [IDEs] seth | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Compiling the examples for Linux ==== | ==== Compiling the examples for Linux ==== | ||
- | In order to build the examples | + | This page will tell you how to get some examples |
- | The build scripts available for Linux use [[http:// | + | The examples may have weird window sizes and in non-desktop environments things like mouse cursor movement won' |
==== Grabbing Proton SDK ==== | ==== Grabbing Proton SDK ==== | ||
- | Ok, this was tested on a Raspberry Pi with Stretch, but normal linux distributions should be roughly the same. | + | First, let's install some tools and libraries we need in case you don't have them. |
- | + | ||
- | First, let's install some tools in case you don't have them. | + | |
<code bash> | <code bash> | ||
sudo apt install git build-essential libffi-dev zlib1g-dev libssl-dev | sudo apt install git build-essential libffi-dev zlib1g-dev libssl-dev | ||
Line 120: | Line 118: | ||
You basically only have to run cmake manually once per build directory. After that you can just run make. If the CMakeLists.txt file has been changed it is noticed by the build scripts and cmake is run automatically with the same parameters as it was run the first time. | You basically only have to run cmake manually once per build directory. After that you can just run make. If the CMakeLists.txt file has been changed it is noticed by the build scripts and cmake is run automatically with the same parameters as it was run the first time. | ||
- | ==== 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, | ||
- | |||
- | <code bash> | ||
- | [user@localhost]$ ./ | ||
- | Available video modes: | ||
- | |||
- | Windows | ||
- | Windows Wide | ||
- | OSX | ||
- | OSX Wide | ||
- | Linux | ||
- | Linux Wide | ||
- | iPhone | ||
- | iPhone Landscape | ||
- | [...] | ||
- | </ | ||
- | |||
- | You can choose any of these modes by giving the name of it as an argument to the program. For example testing how an application might look on an iPad you can command: | ||
- | |||
- | <code bash> | ||
- | ./ | ||
- | </ | ||
- | |||
- | Note that you need to enclose modes with spaces between quotes. | ||
==== IDEs ==== | ==== IDEs ==== | ||
- | All of the tools mentioned | + | I've gotten things to work ok with VScode, I use it remotely |
- | + | ||
- | As a personal preference | + | |
- | You can set multiple run configurations so you can run the applications | + | The only problem is I can't get breakpoints in ../ |
proton/linux_setup.1686215315.txt.gz · Last modified: 2023/06/08 09:08 by seth