sqlite-wasm icon indicating copy to clipboard operation
sqlite-wasm copied to clipboard

Installation critical fail

Open baptistapedro opened this issue 4 years ago • 6 comments

I am having this error while building the project https://dpaste.org/fftw

baptistapedro avatar Dec 25 '19 21:12 baptistapedro

CRITICAL root: Cannot find /home/nasa/emsdk/upstream/bin/lli, check the paths in /home/nasa/.emscripten

Is your emsdk set up?

mandel59 avatar Dec 26 '19 04:12 mandel59

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 .

baptistapedro avatar Dec 26 '19 09:12 baptistapedro

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

mandel59 avatar Dec 26 '19 14:12 mandel59

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.

baptistapedro avatar Dec 26 '19 22:12 baptistapedro

Some thoughts on that Mandel?

baptistapedro avatar Dec 28 '19 16:12 baptistapedro

@mandel59 Can you follow up with this please?

baptistapedro avatar Jan 28 '20 21:01 baptistapedro