Odin Programming Language Tutorial : Set Up with SDL2 on Windows
Handmade Games
This short tutorial covers how to set up the Odin Programming Language Compiler on Windows, and how to include the SDL2 library in a project.
There are 4 simple things you need to do if you want to use Odin with SDL2 on Windows:
- Install Visual Studio.
Visual Studio gives us the libraries we need to compile Odin ourselves, or even just to run the pre-built compiler that is available for download on GitHub.
2a. Download the pre-built compiler from the GitHup repo released page: https://github.com/odin-lang/Odin/releases
or
2b. Clone the Odin repo, checkout the latest release, and then build the compiler yourself.
Update your PATH so you can use the 'odin' command from the command line.
Include necessary SDL2 .dll files in your project root folder.
00:00 - In this video... 00:06 - 4 Steps to Set Up Odin and SDL2 on Windows 00:09 - Download Visual Studio Community Edition 00:32 - 2 Options for the Compiler Code 00:46 - Option 1: Pre-Built Compiler 01:16 - Update Your Path With the Odin Command 02:17 - Option 2: Build Odin Yourself 04:00 - Update Your Path : Review 04:24 - Building with SDL2 05:43 - Where to get help. ... https://www.youtube.com/watch?v=_PfYX4vvJhI
41988272 Bytes