changeset 1658:18384efed33d

debian unstable instructions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Nov 2020 19:26:33 +0100
parents 66e5fcdf5597
children 641d39cc8537
files Applications/StoneWebViewer/WebAssembly/NOTES.txt
diffstat 1 files changed, 32 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/NOTES.txt	Wed Nov 18 11:19:09 2020 +0100
+++ b/Applications/StoneWebViewer/WebAssembly/NOTES.txt	Wed Nov 18 19:26:33 2020 +0100
@@ -30,7 +30,38 @@
 Then, if the installation path is "~/Downloads/emsdk/":
 
 # source ~/Downloads/emsdk/emsdk_env.sh
-# cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DALLOW_DOWNLOADS=ON -G Ninja
+# mkdir Build && cd Build
+# cmake .. -DCMAKE_BUILD_TYPE=Release \
+  -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
+  -DALLOW_DOWNLOADS=ON -G Ninja
 # ninja install
 
 => The binaries will be put in "../../../wasm-binaries/StoneWebViewer/"
+
+
+Debian unstable
+===============
+
+Last update: 2020-11-18
+
+IMPORTANT - Currently broken: The linker fails on Debian Sid with the
+default package. A workaround is available using "experimental"
+packages:
+https://github.com/emscripten-core/emscripten/issues/11895#issuecomment-729840497
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975069
+
+
+# sudo apt-get install emscripten python3-clang python3-pystache ninja-build
+# mkdir Build && cd Build
+# EMSCRIPTEN=/usr/bin/ cmake .. -DCMAKE_BUILD_TYPE=Release \
+  -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake \
+  -DLIBCLANG=/usr/lib/x86_64-linux-gnu/libclang-9.so \
+  -DALLOW_DOWNLOADS=ON -G Ninja
+# ninja install
+
+=> The binaries will be put in "../../../wasm-binaries/StoneWebViewer/"
+
+The invokation of CMake will give the following warning, that can be safely ignored:
+
+"System is unknown to cmake, create:
+Platform/Emscripten to use this system, please post your config file on discourse.cmake.org so it can be added to cmake"