Skip to content

Instantly share code, notes, and snippets.

@luisibanez
Last active August 29, 2015 13:56
Show Gist options
  • Save luisibanez/8852252 to your computer and use it in GitHub Desktop.
Save luisibanez/8852252 to your computer and use it in GitHub Desktop.
ITK Emscripted shell configure
#!/bin/bash
cmake \
-DITK_BUILD_DEFAULT_MODULES:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DBUILD_EXAMPLES:BOOL=OFF \
-DITKGroup_Core:BOOL=OFF \
-DModule_ITKCommon:BOOL=ON \
-DCMAKE_SIZEOF_UNSIGNED_SHORT=2   \
-DCMAKE_TOOLCHAIN_FILE=/home/ibanez/src/emscripten/cmake/Platform/Emscripten.cmake \
-DCMAKE_BUILD_TYPE=Debug\
-G "Unix Makefiles" \
~/src/ITK
@JianCheng
Copy link

Hi Luis,

I am trying to make itk work with emscripten. Then I found your code.
This code does not work in my side (ITK 4.5.1, Fedora 19).
It shows

CMake Error at Modules/ThirdParty/VNL/src/vxl/config/cmake/config/CMakeLists.txt:373 (MATH):
math cannot parse the expression: "8*": syntax error, unexpected $end,
expecting exp_OPENPARENT or exp_NUMBER (2)

Does it work in your machine?

I would like to make a webapp using itk and vtk. I have checked xtk, emscripten, and google native client.
However currently none of them can be built successfully :(
Do you have any suggestion for it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment