# How to build web version of easyrpg player?

**URL:** <https://community.easyrpg.org/t/how-to-build-web-version-of-easyrpg-player/1009>\
**Category:** Player\
**Created:** [September 26, 2021, 3:03pm UTC](https://community.easyrpg.org/t/how-to-build-web-version-of-easyrpg-player/1009 "2021-09-26T15:03:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ghabry](https://community.easyrpg.org/user_avatar/community.easyrpg.org/ghabry/32/121_2.png) [@Ghabry](https://community.easyrpg.org/u/Ghabry)\
**Post date:** [September 27, 2021, 3:55pm UTC](https://community.easyrpg.org/t/how-to-build-web-version-of-easyrpg-player/1009/2 "2021-09-27T15:55:33Z")

</div>

Hello.  
We only support building it on Linux (you can also use WSL on Windows for this).

First run the 0.sh script from this repository:

> **[buildscripts/emscripten at master · EasyRPG/buildscripts](https://github.com/EasyRPG/buildscripts/tree/master/emscripten)**
>
> The scripts used to compile needed libraries for supported platform ports on our Jenkins server - EasyRPG/buildscripts

If the script fails you probably miss some packages such as pkg-config, unzip or patch.

When the script fails due to this run “3.sh” and then “0.sh” again.

* * *

Now about building Player. Run the following cmake command in the Player repository:

Replace `TOOLCHAIN_DIR` with the path to the cloned buildscripts dir (the one containing `emscripten`, `linux-static` etc.

```auto
export EASYRPG_BUILDSCRIPTS=TOOLCHAIN_DIR

cmake --preset emscripten-release -DPLAYER_BUILD_LIBLCF=ON

```

Then build and install:

```auto
cmake --preset emscripten-release --build --target install

```

The `build/emscripten-release` dir will contain the files you need.

---

_[View the full topic](https://community.easyrpg.org/t/how-to-build-web-version-of-easyrpg-player/1009)._
