sqlite-wasm
sqlite-wasm copied to clipboard
Installation critical fail
I am having this error while building the project https://dpaste.org/fftw
CRITICAL root: Cannot find /home/nasa/emsdk/upstream/bin/lli, check the paths in /home/nasa/.emscripten
Is your emsdk set up?
Yes sure, I have it running perfectly by following the official tutorial however I don't have any executable named lli
On Thu, Dec 26, 2019, 5:19 AM Ryusei Yamaguchi [email protected] wrote:
CRITICAL root: Cannot find /home/nasa/emsdk/upstream/bin/lli, check the paths in /home/nasa/.emscripten
Is your emsdk set up?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mandel59/sqlite-wasm/issues/5?email_source=notifications&email_token=ACJPXTGOM4XSLEKHQIATBCLQ2QWD3A5CNFSM4J7GS3O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHU3OYI#issuecomment-568964961, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJPXTFPQ7TE6HDUFQUZJLTQ2QWD3ANCNFSM4J7GS3OQ .
I updated Makefile so that emcc in PATH is used now. Please run:
cd ~/emsdk/
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
cd ~/sqlite-wasm/
git pull
make debug
It is working now..
so I added a js file on sqlite3.html generated on /debug. That file is called mycode.js
and contains the following code
var conn = new Module.Connection()
conn.enableLoadExtension()
conn.loadExtension("compiledfile.wasm")
conn.exec("select pi()", (record) => console.log(record))
and I get this error
Uncaught TypeError: Module.Connection is not a constructor
at mycode.js:1
sqlite3.html:1 [post-exception status] Preparing... (0/1)
printErr @ sqlite3.html:1
favicon.ico:1 Failed to load resource: the server responded with a status of 404 (File not found: /home/nasa/sqlite-wasm/debug/favicon.ico)
sqlite3.html:1 [post-exception status] All downloads complete.
printErr @ sqlite3.html:1
sqlite3.html:1 [post-exception status] Running...
I dont know why it can recognize Module.Connection() but on chrome devtools I can init it.
Some thoughts on that Mandel?
@mandel59 Can you follow up with this please?