Hi all, I'm having trouble including libraries in my C++ code such as AssImp and Teem.
I have tried compiling the library code to .bc files, but I don't know how to properly include them in the emcc build command.
This is my current build command:
emcc ../NRRDCoffee.cpp ../libassimp.bc -o output.js \ -s WASM=3 -std=c++17 -s NO_EXIT_RUNTIME \ -s FULL_ES3=1 -s USE_WEBGL2=1 -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 \ -s LINKABLE=1 -s EXPORT_ALL=1 \ -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" \ --emrun --llvm-opts 2 -O2 -s ASSERTIONS=2 -s DEMANGLE_SUPPORT=1 \ -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 \ --embed-file ../assets --preload-file ../Models \
which obviously doesn't work, but hopefully it can provide a starting point.
The headers are included and found in the main code.
If anyone could give me some tipps, that would be really helpful!!
Hi all, I'm having trouble including libraries in my C++ code such as AssImp and Teem.
I have tried compiling the library code to .bc files, but I don't know how to properly include them in the emcc build command.
This is my current build command:
emcc ../NRRDCoffee.cpp ../libassimp.bc -o output.js \ -s WASM=3 -std=c++17 -s NO_EXIT_RUNTIME \ -s FULL_ES3=1 -s USE_WEBGL2=1 -s USE_GLFW=3 -s ALLOW_MEMORY_GROWTH=1 \ -s LINKABLE=1 -s EXPORT_ALL=1 \ -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" \ --emrun --llvm-opts 2 -O2 -s ASSERTIONS=2 -s DEMANGLE_SUPPORT=1 \ -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 \ --embed-file ../assets --preload-file ../Models \which obviously doesn't work, but hopefully it can provide a starting point.
The headers are included and found in the main code.
If anyone could give me some tipps, that would be really helpful!!