> For the complete documentation index, see [llms.txt](https://docs.play.cronos.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.cronos.org/readme/build-libraries-and-bindings-from-scratch.md).

# Build libraries and bindings from scratch

If the Pre-built release does not support your platform, you can build the binaries and bindings on your own.

## Windows

1. Run `windows_build.bat` in x64 Native Tools Command Prompt for VS 2019. It will clone necessary submodules, build `play-cpp-sdk` crate, finally setup and build the demo project.
2. Clean `~/.cargo/git/checkouts` if cxx fails to build, then run `windows_build.bat` again.
3. Run `windows_install.bat`, libraries and bindings will be copied into a new created folder: `install`

### Notes about Visual Studio 2022

1. Open `demo.sln`. If you use Visual Studio 2022, retarget project, and upgrade PlatformToolset to `v143` before running `windows_build.bat`

## Mac

1. Run `make`
2. Run `make install`, libraries and bindings will be copied into a new created folder: `install`

## Linux

1. Run `make`
2. Run `make install`, libraries and bindings will be copied into a new created folder: `install`

## Android

1. Install android NDK (e.g. 21.4.7075529) via Android Studio
2. Run make for one of the following android targets on Mac or Linux

   ```
   NDK_VERSION=21.4.7075529 make armv7-linux-androideabi
   NDK_VERSION=21.4.7075529 make aarch64-linux-android
   NDK_VERSION=21.4.7075529 make i686-linux-android
   NDK_VERSION=21.4.7075529 make x86_64-linux-android
   ```
3. Run `make install`, libraries and bindings will be copied into a new created folder: `install`

## IOS

1. Run `make aarch64-apple-ios`
2. Run `make install`, libraries and bindings will be copied into a new created folder: `install`

## More information for Cronos Play

If you are a game developer, please visit [Cronos Play](https://cronos.org/play) or fill this [Contact Form](https://airtable.com/shrFiQnLrcpeBp2lS) for more information.
