2023-11-29 12:31:27 -05:00
|
|
|
# To compile and install SDL:
|
|
|
|
|
|
|
|
|
|
## Windows with Visual Studio:
|
|
|
|
|
|
2025-01-12 16:56:04 -08:00
|
|
|
Read [README-visualc.md](docs/README-visualc.md)
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
## Windows building with mingw-w64 for x86:
|
|
|
|
|
|
2025-01-03 21:07:38 -08:00
|
|
|
Read [README-windows.md](docs/README-windows.md) for more information on building with MinGW64.
|
|
|
|
|
|
2023-11-29 12:31:27 -05:00
|
|
|
Run: `cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=build-scripts/cmake-toolchain-mingw64-i686.cmake && cmake --build build && cmake --install build`
|
|
|
|
|
|
|
|
|
|
## Windows building with mingw-w64 for x64:
|
|
|
|
|
|
2025-01-03 21:07:38 -08:00
|
|
|
Read [README-windows.md](docs/README-windows.md).
|
|
|
|
|
|
2023-11-29 12:31:27 -05:00
|
|
|
Run: `cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=build-scripts/cmake-toolchain-mingw64-x86_64.cmake && cmake --build build && cmake --install build`
|
|
|
|
|
|
|
|
|
|
## macOS with Xcode:
|
|
|
|
|
|
2025-01-12 16:56:04 -08:00
|
|
|
Read [README-macos.md](docs/README-macos.md)
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
## macOS from the command line:
|
|
|
|
|
|
|
|
|
|
Run: `cmake -S . -B build && cmake --build build && cmake --install build`
|
|
|
|
|
|
2024-04-08 15:51:30 -07:00
|
|
|
### macOS for universal architecture:
|
|
|
|
|
|
|
|
|
|
Run: `cmake -S . -B build -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" && cmake --build build && cmake --install build`
|
|
|
|
|
|
2023-11-29 12:31:27 -05:00
|
|
|
## Linux and other UNIX systems:
|
|
|
|
|
|
2024-11-23 09:34:00 +01:00
|
|
|
Run: `cmake -S . -B build && cmake --build build --parallel $(nproc) && cmake --install build`
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
## Android:
|
|
|
|
|
|
2025-01-12 16:56:04 -08:00
|
|
|
Read [README-android.md](docs/README-android.md)
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
## iOS:
|
|
|
|
|
|
2025-01-12 16:56:04 -08:00
|
|
|
Read [README-ios.md](docs/README-ios.md)
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
## Using CMake:
|
|
|
|
|
|
2025-01-12 16:56:04 -08:00
|
|
|
Read [README-cmake.md](docs/README-cmake.md)
|
2023-11-29 12:31:27 -05:00
|
|
|
|
|
|
|
|
# Example code
|
|
|
|
|
|
2025-01-12 19:30:30 +01:00
|
|
|
Look at the example programs in ./examples, and check out the online
|
2023-11-29 12:31:27 -05:00
|
|
|
documentation at https://wiki.libsdl.org/SDL3/
|
|
|
|
|
|
|
|
|
|
# Discussion
|
|
|
|
|
|
|
|
|
|
## Forums/mailing lists
|
|
|
|
|
|
|
|
|
|
Join the SDL developer discussions, sign up on
|
|
|
|
|
|
|
|
|
|
https://discourse.libsdl.org/
|
|
|
|
|
|
|
|
|
|
and go to the development forum
|
|
|
|
|
|
|
|
|
|
https://discourse.libsdl.org/c/sdl-development/6
|
|
|
|
|
|
|
|
|
|
Once you sign up, you can use the forum through the website, or as a mailing
|
|
|
|
|
list from your email client.
|
|
|
|
|
|
|
|
|
|
## Announcement list
|
|
|
|
|
|
|
|
|
|
Sign up for the announcement list through the web interface:
|
|
|
|
|
|
|
|
|
|
https://www.libsdl.org/mailing-list.php
|
|
|
|
|
|