Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker with jsartoolkit5: what changes are needed? #12

Closed
2 tasks done
kalwalt opened this issue Jan 1, 2020 · 6 comments
Closed
2 tasks done

Docker with jsartoolkit5: what changes are needed? #12

kalwalt opened this issue Jan 1, 2020 · 6 comments
Assignees
Labels
Docker all about Docker setup and issues emscripten All about emscripten and jsartoolkit5 good first issue Good for newcomers

Comments

@kalwalt
Copy link
Owner

kalwalt commented Jan 1, 2020

Few things about this topic: We saw in this issue #11 that building with emscripten under different OS can be problematic, it is possible to have differents results. To avoid this @ThorstenBux has configured Docker in this branch https://github.com/ThorstenBux/jsartoolkit5/tree/build-with-docker you can follow the instructions in the Readme.md and test it.
I have some points to underline:

  • libjpeg.bc is not requested anymore? it seems that is built by Docker/Emscripten:
stdout: create_lib /emsdk_portable/.data/cache/asmjs/ports-builds/libjpeg/libjpeg.bc

stderr: shared:WARNING: Assuming object file output in the absence of `-c`, based on output filename. Please add with `-c` or `-r` to avoid this warning
system_libs:INFO: retrieving port: zlib from https://github.com/emscripten-ports/zlib/archive/version_1.zip
system_libs:INFO: unpacking port: zlib
cache:INFO: generating port: libz.a... (this will be cached in "/emsdk_portable/.data/cache/asmjs/libz.a" for subsequent builds)
cache:INFO:  - ok
system_libs:INFO: retrieving port: libjpeg from https://dl.bintray.com/homebrew/mirror/jpeg-9c.tar.gz
system_libs:INFO: unpacking port: libjpeg
cache:INFO: generating port: libjpeg.bc... (this will be cached in "/emsdk_portable/.data/cache/asmjs/libjpeg.bc" for subsequent builds)
root:INFO: building port: libjpeg
cache:INFO:  - ok

i f this is the case we can delete the libjpeg.bc in the emscripten/libjpeg/lib folder

  • libjpeg includes we need them or is included in the Docker/Emscripten?

i will update this list as i can.

EDIT: By emscripten v1.38.31 we don't need to include anymore libjpeg headers and .bc files.

@kalwalt kalwalt added good first issue Good for newcomers emscripten All about emscripten and jsartoolkit5 Docker all about Docker setup and issues labels Jan 1, 2020
@kalwalt kalwalt self-assigned this Jan 1, 2020
@kalwalt
Copy link
Owner Author

kalwalt commented Jan 1, 2020

Found this issue emscripten-core/emscripten#9170 !! 💯

@kalwalt
Copy link
Owner Author

kalwalt commented Jan 1, 2020

...and from the emscripten master branch https://github.com/emscripten-core/emscripten/blob/master/tools/ports/libjpeg.py so libjpeg.bc is not needed anymore and probably also the includes because the python script download the headers files if you add the -s USE_LIBJPEG flag.

@kalwalt
Copy link
Owner Author

kalwalt commented Jan 1, 2020

i tested with and without Docker/emscripten and with latest emscripten 1.39.5 using the -s USE_LIBJPEG flag it seems that is not needed the libjpeg includes, because emscripten download the source code for libjpeg and built the lib.

@kalwalt
Copy link
Owner Author

kalwalt commented Jan 1, 2020

Under linux, emscripten 1.39.5 download the libjpeg files in the hidden .emscripten_ports folder and store here the libjpeg.bc build file.

@kalwalt
Copy link
Owner Author

kalwalt commented Jan 1, 2020

libjpeg is in the emscripten tools ports by v1.38.31 so we can think to change the makem.js script.

@ThorstenBux ThorstenBux mentioned this issue Jan 2, 2020
7 tasks
@kalwalt kalwalt changed the title Using Docker with jsartoolkit5 Docker with jsartoolkit5: what changes are needed? Jan 2, 2020
@kalwalt
Copy link
Owner Author

kalwalt commented Jan 2, 2020

Solved with #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docker all about Docker setup and issues emscripten All about emscripten and jsartoolkit5 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant