Skip to content

Adding NFT to the emscripten version and improving compilation ( libjpeg )#4

Merged
kalwalt merged 3 commits into
augmentmy-world:emscriptenfrom
kalwalt:nft-emscripten
Jan 10, 2020
Merged

Adding NFT to the emscripten version and improving compilation ( libjpeg )#4
kalwalt merged 3 commits into
augmentmy-world:emscriptenfrom
kalwalt:nft-emscripten

Conversation

@kalwalt

@kalwalt kalwalt commented Jan 4, 2020

Copy link
Copy Markdown
Collaborator

This PR add NFT support to the emscripten branch and simplify and correct the libjpeg includes and libs for building the project.
By emscripten v1.38.31 is only necessary to add the flags -s USE_LIBJPEG=1 and emscripten will add the includes and the libjpeg lib. see emscripten-core/emscripten#9170 and recent changes in jsartoolkit5 kalwalt/jsartoolkit5#13
This is necessary if we want add NFT see my PR augmentmy-world/artoolkitX.js#18

@kalwalt kalwalt added the enhancement New feature or request label Jan 4, 2020
@kalwalt kalwalt self-assigned this Jan 4, 2020
Comment thread Source/artoolkitx.js/CMakeLists.txt Outdated
math(EXPR MEM 256*1024*1024)
message("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
set(MEMORY "-s TOTAL_MEMORY=${MEM}")
set(MEMORY "-s TOTAL_MEMORY=${MEM} -s ALLOW_MEMORY_GROWTH=1")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i need to check if this is still necessary

@kalwalt

kalwalt commented Jan 10, 2020

Copy link
Copy Markdown
Collaborator Author

@ThorstenBux I would like to merge this PR if you have nothing against it. I need to check some little deatils and after i will fine. I don't want to make big PR but i prefer add features step by step.

@ThorstenBux

Copy link
Copy Markdown

@kalwalt awesome. Yes small PRs is very good. You may merge if you like :)

@kalwalt

kalwalt commented Jan 10, 2020

Copy link
Copy Markdown
Collaborator Author

@kalwalt awesome. Yes small PRs is very good. You may merge if you like :)

Yes, i need to check only if the -s ALLOW_MEMORY_GROWTH=1 is needed or not for the NFT, maybe needed for libjpeg?

@ThorstenBux

Copy link
Copy Markdown

It was needed before I used libJPEG from Emscripten. It should not be needed anymore.

@kalwalt

kalwalt commented Jan 10, 2020

Copy link
Copy Markdown
Collaborator Author

Yes it's not needed! I'm merging this. 🙂

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants