@@ -4,8 +4,21 @@ Table of contents
4
4
* [ Overview] ( #overview )
5
5
* [ Video] ( #video )
6
6
* [ Steps] ( #steps )
7
+ * [ 1.10.1. Find Emscripten site] ( #step-find-emscripten )
8
+ * [ 1.10.2. Download Emscripten portable SDK archive] ( #step-dl-emscripten )
9
+ * [ 1.10.3. Extract Emscripten portable SDK] ( #step-extract-emscripten )
10
+ * [ 1.10.4. Install Emscripten portable SDK] ( #step-install-emscripten )
11
+
12
+
13
+ * [ 1.10.3. Create build directory] ( #step-build-dir )
14
+
15
+
16
+ * [ 1.5.3. Configure the build] ( #step-cfg )
17
+ * [ 1.5.4. Build application] ( #step-build )
18
+ * [ 1.5.5. Run application] ( #step-run )
19
+
20
+
7
21
8
- * [ 1.9.1. Create build directory] ( #step-build-dir )
9
22
* [ 1.9.2. Launch CMake] ( #step-open-cmake )
10
23
* [ 1.9.3. Specify build and source directories] ( #step-dirs )
11
24
* [ 1.9.4. Configure osgNativeLib and OSG] ( #step-cfg )
@@ -35,6 +48,7 @@ under Linux for Web. The application displays provided model with simple GLSL sh
35
48
36
49
** Note** : this tutorial requires
37
50
* OpenSceneGraph model (see [ 1.1. Create a cube] ( ../1.1.CreateCube ) )
51
+ * CMake and git installations (see [ 1.2. Install OpenSceneGraph under Linux] ( ../1.2.InstallUnderLinux ) )
38
52
* OpenSceneGraph sources (see [ 1.2. Install OpenSceneGraph under Linux] ( ../1.2.InstallUnderLinux ) )
39
53
* sample OpenSceneGraph application sources (see [ 1.5. Build and run sample OpenSceneGraph application under Linux] ( ../1.5.SampleUnderLinux ) )
40
54
46
60
[ YouTube] ( todo ) | [ Download] ( readme/video.mp4 )
47
61
48
62
Video depicts running and building sample OpenSceneGraph application
49
- for Web under Xubuntu 16.04.
63
+ under Xubuntu 16.04 with Emscripten 1.37.9 for Web .
50
64
51
65
<a name =" steps " />
52
66
@@ -56,12 +70,67 @@ Steps
56
70
** Note** : steps below use frames from the video as screenshots.
57
71
Watch the video to see all details.
58
72
59
- <a name =" step-build-dir " />
73
+ <a name =" step-find-emscripten " />
74
+
75
+ 1.10.1. Find Emscripten site
76
+ ----------------------------
77
+
78
+ ![ Screenshot] ( readme/f?.png )
79
+
80
+ Find main Emscripten site.
81
+
82
+ We need Emscripten portable SDK, because Xubuntu 16.04
83
+ ships an outdated version.
84
+
85
+ <a name =" step-dl-emscripten " />
86
+
87
+ 1.10.2. Download Emscripten portable SDK archive
88
+ ------------------------------------------------
89
+
90
+ ![ Screenshot] ( readme/f?.png )
91
+
92
+ Download the latest
93
+ [ Emscripten portable SDK archive] ( http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html ) .
94
+
95
+ <a name =" step-extract-emscripten " />
96
+
97
+ 1.10.3. Extract Emscripten portable SDK
98
+ ---------------------------------------
99
+
100
+ ![ Screenshot] ( readme/f?.png )
101
+
102
+ Unpack Emscripten portable SDK to your home directory.
103
+
104
+ <a name =" step-install-emscripten " />
105
+
106
+ 1.10.4. Install Emscripten portable SDK
107
+ ---------------------------------------
108
+
109
+ ![ Screenshot] ( readme/f?.png )
110
+
111
+ Install Emscripten portable SDK by running the following commands:
112
+
113
+ ` cd ~/emsdk-portable `
114
+
115
+ ` ./emsdk update `
116
+
117
+ ` ./emsdk install latest `
118
+
119
+ ` ./emsdk activate latest `
120
+
121
+ ` source ./emsdk_env.sh `
122
+
123
+ ** Note** : the above commands come from the
124
+ [ official Emscripten installation instructions] ( http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html ) .
125
+
126
+
127
+
128
+
129
+
130
+
131
+
60
132
61
- 1.9.1. Create build directory
62
- -----------------------------
63
133
64
- ![ Screenshot] ( readme/f021.png )
65
134
66
135
Create build directory for iOS simulator build of osgNativeLib,
67
136
a native C++ library to be used in Objective-C.
0 commit comments