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'm having trouble with the enableOnDemandTableLoading due to a complex webpack setup inside a react native app. Since I only need a few tables max, it will be fine to embed the tables I need in a custom build. The problem I'm having with making a custom build is I'm getting an error saying the "ccall" method is not exporting, despite me adding "ccall" to the EXTRA_EXPORTED_RUNTIME_METHODS.
At this point I wanted to test my build, so I ran:
npm run test-node -- build-embed-tables.js
And here is where I got the error message:
> [email protected] test-node /Users/evan/dev/7apps/liblouis/liblouis-js
> node ./testrunner/node.js "build-embed-tables.js"
[INFO] EXECUTING TESTS IN NODEJS
[INFO] loaded testrunner
'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)
'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)
================================================================================
EXITING EARLY ON EXCEPTION
================================================================================
abort("'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)") at Error
at jsStackTrace (/Users/evan/dev/7apps/liblouis/js-build/build-no-tables-utf16.js:1054:13)
at stackTrace (/Users/evan/dev/7apps/liblouis/js-build/build-no-tables-utf16.js:1071:12)
at abort (/Users/evan/dev/7apps/liblouis/js-build/build-no-tables-utf16.js:6386:44)
at Object.Module.ccall (/Users/evan/dev/7apps/liblouis/js-build/build-no-tables-utf16.js:6126:54)
at LiblouisEasyApi.charSize (/Users/evan/dev/7apps/liblouis/liblouis-js/easy-api.js:168:42)
at LiblouisEasyApi.charSize (/Users/evan/dev/7apps/liblouis/liblouis-js/easy-api.js:484:24)
at new LiblouisEasyApi (/Users/evan/dev/7apps/liblouis/liblouis-js/easy-api.js:469:18)
at Object.<anonymous> (/Users/evan/dev/7apps/liblouis/liblouis-js/liblouis.js:2:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
================================================================================
SUCCESS: 0 FAILURE: 1 EXCEPTION: YES DID EARLY EXIT: YES
================================================================================
As you can see, I put 'ccall' in the compile command, so I'm not sure what is going on. I also tried getting my build file to work in the browser, just in case the tests use ccall and my use in the browser doesn't. Not surprisingly, I got the error in my console window:
'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)
I'm not sure what else to try at this point. I'm not sure if this is an issue with liblouis, liblouis-js, emscripten, or my setup. I'm hoping I just did something wrong.
Any help would be much appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
ccall is a method of the emscripten runtime. See here. No need to export it.
You can look at the scripts we use to build liblouis/js-build automatically here. Our emscripten version is a year old, it might be that the emscripten CLI changed.
I'm having trouble with the enableOnDemandTableLoading due to a complex webpack setup inside a react native app. Since I only need a few tables max, it will be fine to embed the tables I need in a custom build. The problem I'm having with making a custom build is I'm getting an error saying the "ccall" method is not exporting, despite me adding "ccall" to the EXTRA_EXPORTED_RUNTIME_METHODS.
To start the process I ran the following command:
Notice 'ccall' is included as instructed. I then ran:
I then moved the built files to the js-build folder:
Then, in the liblouis-js package folder, I ran:
At this point I wanted to test my build, so I ran:
And here is where I got the error message:
As you can see, I put 'ccall' in the compile command, so I'm not sure what is going on. I also tried getting my build file to work in the browser, just in case the tests use ccall and my use in the browser doesn't. Not surprisingly, I got the error in my console window:
I'm not sure what else to try at this point. I'm not sure if this is an issue with liblouis, liblouis-js, emscripten, or my setup. I'm hoping I just did something wrong.
Any help would be much appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: