|
| 1 | +--- |
| 2 | +id: linux |
| 3 | +title: Building from Linux |
| 4 | +--- |
| 5 | + |
| 6 | +:::warning |
| 7 | +Linux support is experimental and may have extra issues. |
| 8 | +::: |
| 9 | +:::note |
| 10 | +It is not recommended to build a Windows or Android build from Linux currently as they will likely be missing features or not function at all. |
| 11 | +::: |
| 12 | + |
| 13 | +This page assumes you have gone through [Getting Started](/docs/getting-started) first. |
| 14 | + |
| 15 | +# Linux prerequisites |
| 16 | +:::danger |
| 17 | +**Do not commit the removal of the Utilites listed on this doc page!** |
| 18 | +They are required for building Windows and Android clients! |
| 19 | +::: |
| 20 | + |
| 21 | +In order to build anything Basis under Linux you need to remove `com.meta.xr.sdk.core` "Meta XR Core SDK" and `com.unity.xr.openxr` "OpenXR Plugin" via the [Unity Package Manager](https://docs.unity3d.com/6000.0/Documentation/Manual/upm-ui.html),<br /> |
| 22 | +You may need to install `com.unity.toolchain.linux-x86_64` "Toolchain Linux x64" but Unity should install that for you. |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +# Building .BEE files from Linux |
| 29 | +For building .bee files for Windows and Android from a Linux Editor you will need to delete the `Assets/Basis/Profiles/HTCViveTrackerProfile.cs` file and set the "Scripting Backend" to `Mono` under `Edit > Project Settings > Player > Configuration > Scripting Backend`. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +# Building a native Linux client from Linux |
| 35 | +:::tip |
| 36 | +It is recommended to change your "Scripting Backend" to `IL2CPP` for better performance. |
| 37 | + |
| 38 | + |
| 39 | +::: |
| 40 | + |
| 41 | +- Make sure you have [removed the unsupported packages](/docs/linux#linux-prerequisites) first. |
| 42 | +- Make sure you *do not* have `Use Scene Provided Here` checked from [World Testing](/docs/worlds#test-the-scene). |
| 43 | + |
| 44 | +Then build Basis as you would normally. |
| 45 | + |
| 46 | +# Basis VR on Linux |
| 47 | +You may need to launch Basis with the `OXR_PARALLEL_VIEWS=1` environment variable and `--force-OpenVRLoader` flag for it to function properly in VR:<br /> |
| 48 | +`OXR_PARALLEL_VIEWS=1 ./basis.x86_64 --force-OpenVRLoader` |
| 49 | + |
| 50 | +You do not use these when launching for Desktop. |
| 51 | + |
| 52 | +# Other Info |
| 53 | +- Last tested working on branch `#developer` commit `70a695d11082a2806f0933145d448143207c72e4`<br /> |
| 54 | +https://github.com/BasisVR/Basis/commit/70a695d11082a2806f0933145d448143207c72e4 |
0 commit comments