Installation
Requirements
- Operating System: Windows 10 or later, or Mac 13 or later (Linux is not yet supported)
- Compiler: Clang version 11.0 or newer
- Windows users:
clangcan be installed via the Visual Studio installer. Search for "C++ Clang Compiler". - Mac users: Apple's built-in
clangdoes not support WebAssembly. We recommend installingclangvia Homebrew withbrew install llvm.
- Windows users:
- Clang runtime builtins: When targeting WebAssembly,
clangrelies on builtins found inlibclang_rt.builtins-wasm32, but most distributions ofclangdon't ship with this file. To know whereclangexpects to find this file, you can runclang --target=wasm32 -print-libgcc-file-name. If this file doesn't exist you will need to download it from https://github.com/WebAssembly/wasi-sdk/releases.
Installation Instructions
The Orca command-line tools and SDK must be installed to your system in order to use them in your own projects. Download Orca from https://github.com/orca-app/orca/releases/latest, and extract it where you want orca to be installed.
-
Windows:
- Download
orca-windows.tar.gz - Extract:
tar -xzf orca-windows.tar.gz
- Download
-
ARM Mac:
- Download
orca-mac-arm64.tar.gz - Extract:
tar -xzf orca-mac-arm64.tar.gz
- Download
-
Intel Mac:
- Download
orca-mac-x64.tar.gz - Extract:
tar -xzf orca-mac-x64.tar.gz
- Download
Add the orca executable directory to your PATH environment variable:
-
Windows: add the path of the extracted
orcafolder to you PATH environment variable. See these instructions on how to do that: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14) -
Mac: the orca executable is located inside the
Orca.appbundle. To use the executable from the command line, add(...)/Orca.app/Contents/MacOS/orcato your PATH environment variable (replace(...)with the path of the directory in which you putOrca.app!). See these instructions on how to modify your PATH: https://support.apple.com/guide/terminal/use-environment-variables-apd382cc5fa-4f58-4449-b20a-41c53c006f8f/mac
Finally, verify that Orca is successfully installed by running the orca version command.
orca version
If you encounter any errors, see the FAQ.
Once the orca tools are installed and on your PATH, you can use them from anywhere.
Building the sample apps
The samples directory contains several sample apps that demonstrate various Orca features. To build one, cd to a sample project's directory and run its build script. For example, for the breakout sample:
cd samples/breakout
# Windows
build.bat
# Mac
./build.sh
On Windows this creates a Breakout directory in samples/breakout. You can launch the app by running orca run breakout.orca.