You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to rebuild the draco3d package with backwards compatibility off, but when I follow the BUILDING.md, it's only generating the following files:
Here's what I'm using:
cmake version 3.27.3
make GNU Make 3.81
latest emsdk:
Resolving SDK alias 'latest' to '3.1.44'
Resolving SDK version '3.1.44' to 'sdk-releases-b90507fcf011da61bacfca613569d882f7749552-64bit'
Setting the following tools as active:
node-16.20.0-64bit
python-3.9.2-64bit
releases-b90507fcf011da61bacfca613569d882f7749552-64bit
Also tried ./emsdk install 2.0.0 followed by ./emsdk activate 2.0.0, but the output is the same.
I also tried without -DDRACO_WASM=ON, but there's no javascript files being generated, to then use the closure compiler (as suggested in BUILDING.md).
What am I missing?
Thank you!
Edit:
Just found #793 but using the relative paths results in the same output. if there are no js files then it must be something with the emscripten installation, correct?
I tried the following, but there's still no js files:
just remove the first cmake ../ to make it work (See below)
Remaining questions:
How to generate the draco_decoder_nodejs.js and draco_encoder_nodejs.js files? I'm guessing with the closure compiler, but not sure how to obtain the mangling one can see in those files within npm/draco3d
The text was updated successfully, but these errors were encountered:
Ah. using this last version of paths without the intermediate cmake ../ worked. I tried without it before but I would get some error about not finding emscripten, so it makes sense.
For those wondering, here's what worked for me (with the latest emscripten):
Can you just confirm the default flags you use to build draco3d? As mentioned above I'm only looking to change the backwards compatibility to off, but the output still differs.
For instance, should I use -DDRACO_JS_GLUE=OFF ?
What should I do to generate draco_decoder_nodejs ? Close compiler in simple or bundle mode don't seem to output the same as the draco_decoder_nodejs.js inside npm draco3d. I'm using Java 17.
Here's the current output (with js glue off) vs the npm draco3d files:
And here's the size comparison between the original npm draco3d package and the one I'm building locally:
Even in the wasm files there's a considerable file size difference.
But I must still be missing something more important, because when I replace the files and try to use this new rebuilt package, I get draco3d.createEncoderModule is not a function
I'll be happy to create a PR with all these details once I get it working.
Apidcloud
changed the title
How to build the 'draco3d' package?
How to build the 'draco3d' npm package?
Aug 29, 2023
Hello!
I need to rebuild the draco3d package with backwards compatibility off, but when I follow the BUILDING.md, it's only generating the following files:
Here's what I'm using:
Resolving SDK alias 'latest' to '3.1.44'
Resolving SDK version '3.1.44' to 'sdk-releases-b90507fcf011da61bacfca613569d882f7749552-64bit'
Setting the following tools as active:
node-16.20.0-64bit
python-3.9.2-64bit
releases-b90507fcf011da61bacfca613569d882f7749552-64bit
Also tried ./emsdk install 2.0.0 followed by ./emsdk activate 2.0.0, but the output is the same.
Steps:
I also tried without -DDRACO_WASM=ON, but there's no javascript files being generated, to then use the closure compiler (as suggested in BUILDING.md).
What am I missing?
Thank you!
Edit:
Just found #793 but using the relative paths results in the same output. if there are no js files then it must be something with the emscripten installation, correct?
I tried the following, but there's still no js files:
Edit 2:
Remaining questions:
The text was updated successfully, but these errors were encountered: