Odin Setup
10/29/2023
Getting Started
Clone Odin Repo to your machine
For Linux
Note: I switched to windows because graphics programming not supported on WSL as of 8/6/2022, meaning I couldn’t use the core:vendor
packages.
Install LLVM and Clang stuff if not already installed
LLVM Setup (may not be required for you)
Building Odin
Add Odin to Path
For Windows
Install Visual Studio if you do not already have it.
Open the x64 Native Tools Command Prompt for VS 2022
as it has the correct environment variables set to build odin.
Navigate to the cloned Odin repo using the x64 Native Tools Command Prompt
and run build.bat
.
Add this Odin
directory to your Windows path if you want to use the executable at any directory. Do so by editing system environment variables, double clicking PATH, and adding the full pathname to the Odin directory.
Visit http://odin-lang.org/docs/overview/ to see what’s next
Odin Language Server (ols)
Clone the ols repo and setup
Install the VS Code Extension
In VS Code add an ols.json
at the root directory of your project. Example below. Installing ols plugin may add this automatically.
If you want auto completion on things like the core
collection or the vendor
collection, ols.json will need to be updated to point to point to the directory where those collections are.