On Wed, 19 Jul 2023 02:45:53 -0700 (PDT)
Ronny Nissengold <
ronn...@gmail.com> wrote:
> Thank you all for your support.
> I was able to successfully compile my project with pthread enabled.
> Now I face a new problem, I used Module._malloc to pass an image from a
> webcam into my cpp function
> For that I used the following linker
> flags: add_link_options(-sINITIAL_MEMORY=800MB -sTOTAL_STACK=80MB -O3 -s
> -sEXPORTED_FUNCTIONS=['_malloc','_free'] -sASSERTIONS -pthread)
>
> Now I get the following error in my console:
>
> Uncaught ReferenceError: SharedArrayBuffer is not defined
> at blink_landmark_detector_sample.js:1:9999
>
> (index):11 Uncaught TypeError: Module._malloc is not a function
> at _arrayToHeap ((index):11:24)
> at HTMLVideoElement.computeFrame ((index):40:22)
>
> Any idea what happened?