Comments (6)
I'm glad it's working now! It sounds like you have core.autocrlf = true
in your git configuration, commit 678ffd6 should prevent this line ending mangling for shell scripts.
Perhaps we should also remove this line from the official emsdk Docker image:
https://github.com/emscripten-core/emsdk/blob/e8b64774ff1a3ddb6a013203ced27a34e70c2d8b/docker/Dockerfile#L82
Since it causes the existing EM_CACHE
and EMSDK_NODE
environment variables to be cleared when running in a interactive shell:
$ docker run -it --rm -v %cd%:/src wasm-vips
...
Clearing existing environment variable: EM_CACHE
Clearing existing environment variable: EMSDK_NODE
from wasm-vips.
Perhaps we should also remove this line from the official emsdk Docker image:
https://github.com/emscripten-core/emsdk/blob/e8b64774ff1a3ddb6a013203ced27a34e70c2d8b/docker/Dockerfile#L82
I just opened PR emscripten-core/emsdk#1220 for this.
from wasm-vips.
Looks like the Emscripten patches have not been applied, especially commit kleisauke/emscripten@8268daf.
Lines 38 to 41 in e1cc2dd
Did you run npm run build
? Issue #6 reported something similar, but I was never able to reproduce that.
Note that you might need to clean up existing cache with:
$ rm -rf build/{cargo-cache,ccache,deps,emcache,target}
This ensures that all dependencies are rebuilt.
from wasm-vips.
Thanks for the help.
I have updated to the latest git version, remove the current cache and rebuild it again with the same issue.
I'm not sure if it can help, but here is the docker build and the compilation log:
https://www.dropbox.com/s/wj0rwp0e7h1kke4/docker-build-log.txt?dl=0
https://www.dropbox.com/s/xhkmvdg9m9rnazr/wasmvips-build-log.txt?dl=0
I'm using Windows, so the command I'm using is (disabling svg and jxl):
docker build -t wasm-vips . && docker run -it --rm -v %cd%:/src wasm-vips ./build.sh --disable-svg --disable-jxl
Thanks in advance.
from wasm-vips.
Looking at those build logs, it seems that it uses the default sysroot location (/emsdk/upstream/emscripten/cache/sysroot
), rather than the one specified in the EM_CACHE
env var.
Lines 11 to 12 in bb0b71b
I get the same build failure when passing -e EM_CACHE=
to the docker run
command.
Perhaps it's unable to access the mounted /src/build/emcache
volume within the Docker container? You can check this with:
$ docker run -it --rm -v %cd%:/src wasm-vips bash -c "printenv EM_CACHE && emcc --clear-cache"
/src/build/emcache
emcc:INFO: clearing cache as requested by --clear-cache: `/src/build/emcache`
shared:INFO: (Emscripten: Running sanity checks)
from wasm-vips.
Thank you! I identified the problem with your assistance. On Windows, I couldn't execute build.sh directly in a single command with Docker. After the git clone operation, it was necessary to use the sed command to remove the \r characters from the file. Otherwise, the script wouldn't function properly. The issue was occurring when executing the Docker command and then the build.sh script separately. It worked correctly when combined into a single command after removing the \r characters in advance.
from wasm-vips.
Related Issues (20)
- `wasm-vips` is unstable on Node `18.14.2+` and `19.4.0+` HOT 11
- Unstable on Deno HOT 2
- Playground feature request: ability to import file from disk HOT 3
- `WasmTrapJSTypeError` while loading an SVG when building with LTO HOT 3
- setup wasm-vips for next.js/react HOT 3
- TS types improvements HOT 3
- writeToBuffer increases RSS size till OOMKilled HOT 3
- Not working on deno deploy HOT 1
- ab [vips::Error]: no such operation pdfload_buffer VipsOperation: class "pdfload_buffer" not found HOT 1
- JPEG 2000 Support HOT 2
- Errors with vite HOT 27
- No paths work when reading files (Deno) HOT 2
- Promise remains in pending mode HOT 3
- Error `heifload: ignoring nclx profile` when converting to AVIF and resizing HOT 4
- Add progress information HOT 3
- Error: need to see wasm magic number HOT 1
- Enhancement — more modular loading HOT 3
- Interlace option in jpegsaveBuffer doesn’t seem to work HOT 3
- [Question] How do you deal with CDNs and Vite HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-vips.