Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation critical fail #5

Open
baptistapedro opened this issue Dec 25, 2019 · 6 comments
Open

Installation critical fail #5

baptistapedro opened this issue Dec 25, 2019 · 6 comments

Comments

@baptistapedro
Copy link

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

@mandel59
Copy link
Owner

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

Is your emsdk set up?

@baptistapedro
Copy link
Author

baptistapedro commented Dec 26, 2019 via email

@mandel59
Copy link
Owner

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

@baptistapedro
Copy link
Author

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
Copy link
Author

Some thoughts on that Mandel?

@baptistapedro
Copy link
Author

@mandel59 Can you follow up with this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants