An example of how to statically link Odin's SDL3 vendor library on MacOS.
  • C 85.5%
  • Odin 9%
  • C++ 5.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-15 12:37:50 -05:00
sdl3 Working example 2025-12-15 12:37:50 -05:00
.gitignore Working example 2025-12-15 12:37:50 -05:00
main.odin Working example 2025-12-15 12:37:50 -05:00
README.md Working example 2025-12-15 12:37:50 -05:00

This is an example for how to statically link Odin's SDL3 vendor library on MacOS.

The sdl3 folder comes directly from Odin's SDL3 vendor directory, with the sdl3__foreign.odin updated to point to the packaged libSDL3.a static archive. That archive was generated by pulling the SDL source code and building it with cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSDL_STATIC=ON && cmake --build build, then copying out the static archive.