File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,16 @@ cd ./xeus-cpp
126
126
mkdir build
127
127
cd build
128
128
export CMAKE_PREFIX_PATH=$PREFIX
129
- export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX
129
+ export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX
130
+ export SYSROOT_PATH=$HOME /emsdk/upstream/emscripten/cache/sysroot
130
131
emcmake cmake \
131
132
-DCMAKE_BUILD_TYPE=Release \
132
133
-DCMAKE_PREFIX_PATH=$PREFIX \
133
134
-DCMAKE_INSTALL_PREFIX=$PREFIX \
134
135
-DXEUS_CPP_EMSCRIPTEN_WASM_BUILD=ON \
135
136
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
136
137
-DCppInterOp_DIR=" $CPPINTEROP_BUILD_DIR /lib/cmake/CppInterOp" \
138
+ -DSYSROOT_PATH=$SYSROOT_PATH \
137
139
..
138
140
emmake make -j $( nproc --all) install
139
141
```
@@ -148,6 +150,15 @@ python -m pip install jupyterlite-xeus
148
150
jupyter lite build --XeusAddon.prefix=$PREFIX
149
151
```
150
152
153
+ We now need to shift necessary files like ` xcpp.data ` which contains the binary representation of the file(s)
154
+ we want to include in our application. As of now this would contain all important files like Standard Headers,
155
+ Libraries etc coming out of emscripten's sysroot. Assuming we are still inside build we should do the following
156
+
157
+ ``` bash
158
+ cp xcpp.data _output/extensions/@jupyterlite/xeus/static
159
+ cp $PREFIX /lib/libclangCppInterOp.so _output/extensions/@jupyterlite/xeus/static
160
+ ```
161
+
151
162
Once the Jupyter Lite site has built you can test the website locally by executing
152
163
153
164
``` bash
You can’t perform that action at this time.
0 commit comments