| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 1. Start from readme.txt
- 2. emscripten build configured with CMakeFiles
- How to build. Steps:
- - Install Emscripten SDK and setup it. Latest tested version 1.37.36 recommended
- - Install CMake (don't forget add it to PATH)
- - if you are Windows user you need also install Make tool:
- - Install GnuMake (http://gnuwin32.sourceforge.net/packages/make.htm) or any other
- - add it to PATH environment variable
- - Open Folder explorer > This PC > System Properties > Advanced Settings > Environmental Variables > Go to PATH > Click Edit > Add ";/your/path/here"
- - Add necessary paths to environment variable PATH:
- Emscripten
- example: d:\emsdk\
- - Select any example from examples folder. For example "Demo"
- - Go to folder oxygine-framework/examples/Demo/proj.cmake
- - run: build_emsc.bat
- - Go to new created "build_emsc" folder and open Demo.html with Browser
- *emsc slow performance bug workaround (https://github.com/kripken/emscripten/issues/4730):
- open file emsdk\emscripten\1.37.36\src\library_egl.js
- find line:
- _glutInitDisplayMode(displayMode);
- and replace it with:
- displayMode = 0x32; _glutInitDisplayMode(displayMode);
- 2b. You could generate your own emscipten build configuration
- =================================================================================================
- - You need python 2.7 installed
- - You need to run this script
- oxygine-framework\tools\gen_template.py
- example:
- python gen_template.py MyProject -t cmake -d path/to/MyProject/
|