-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathemscripten.txt
More file actions
42 lines (29 loc) · 1.46 KB
/
emscripten.txt
File metadata and controls
42 lines (29 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/