Skip to content

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jan 27, 2023

There is a npm run build script that needs a couple fixes in itk-wasm to work

Problem in bindgen step:

> npx itk-wasm -s ./mesh-to-polydata -b emscripten-build bindgen --package-name mesh-to-polydata --package-description "Convert an ITK Mesh to a simple data structure compatible with vtkPolyData." --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'

node:fs:2831
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, copyfile '/home/paul/src/itk-stuff/ITKMeshToPolyData/examples/wasm/node_modules/itk-wasm/src/bindgen/typescript-resources/.npmignore' -> 'typescript/.npmignore'

Same error on typescript/.nojekyll

Also, after working around above by calling itk-wasm-cli from source tree, output has Typescript build error, cannot find PixelType.

@PaulHax PaulHax marked this pull request as ready for review January 27, 2023 21:05
So the generated function names, etc. are "PolyData" instead of
"Polydata."
This allows us to build the ITK module sources and use the current ITK module sources in the wasm build (as opposed to the Docker image contents).
@thewtex
Copy link
Member

thewtex commented Feb 14, 2023

Pushing additional commits for discussion.

@thewtex thewtex merged commit 5aee1ae into InsightSoftwareConsortium:master Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants