Does it work without wasm? I think that example in the docs does not
support async compilation, which we do by default for wasm now. If so
building with -s BINARYEN_ASYNC_COMPILATION=0 might fix it, but in that
case, we should fix the example of course.

On Mon, May 15, 2017 at 7:53 AM, Romain Lvt <[email protected]> wrote:

> hello , I tried to use embind following the first example of this tutorial
> "https://kripken.github.io/emscripten-site/docs/porting/
> connecting_cpp_and_javascript/embind.html" , using the webassembly option
> for the compilation "emcc -o quick_example.html -s WASM=1" but i get the
> following output error when trying to open the html file in the browser: "
> run() called, but dependencies remain, so not running  quick_ex.js:190:7
> TypeError: Module.lerp is not a function[Learn More]  quick_ex.html:12:35
> pre-main prep time: 104 ms
>
> Does it mean that I missed a step in the compilation, or the binding ?
>
> Thank you.
>
> Le vendredi 4 novembre 2016 18:27:35 UTC+1, Alon Zakai a écrit :
>>
>> Yes, embind just needs the compiled code to be accessible and runnable.
>> It doesn't matter to it if that code is in asm.js or WebAssembly form.
>>
>> On Fri, Nov 4, 2016 at 4:00 AM, matthias <[email protected]>
>> wrote:
>>
>>> I have read some articles about Webassembly.
>>> If I understand it right I can use emscripten to create webassembly.
>>> This is very nice, thank you.
>>>
>>> Is EMBIND also supported in this scenario? Can I use the exported EMBIND
>>> (Webassembly) classes from JavaScript?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "emscripten-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to