exantech / monero-nodejs-libwallet

Node.js addon for Monero libwallet
13 stars 21 forks source link

No suitable build variant #38

Open HCPioquinto opened 4 years ago

HCPioquinto commented 4 years ago

image

Hello, I've been trying to work on with this library for a few weeks now and I had some issues opening a wallet or recovering them. Any recommendations?

naughtyfox commented 4 years ago

Hello!

As far as I can see you have problems with compiling the library, not recovering the wallet.

PS Sorry for late answer.

naughtyfox commented 4 years ago

If you are still having troubles with compiling the library just let me know, we'll try to figure it out. But first, describe the process step-by-step, please :)

naughtyfox commented 4 years ago

FYI if you just want to restore you wallet you may just use official monero wallet (cli or gui), it's fully compatible, we have nothing up the sleeve ;)

HCPioquinto commented 4 years ago

Hi @naughtyfox I was trying to create APIs for this specific library.

At first I just did npm i monero-nodes-libwallet and hoping it would auto install any binaries / dependencies without any hitch. Once I tried running some of the APIs (Such as Create Wallet) it didn't work.

The image above is my poor attempt at compiling the Binaries manually. I just did what the monero official guide said that I would do (Install dependencies, move gtest to a specific directory [I forgot the dirname], downloading the binaries yada-yada-yada) I was able to have the binaries compiled but it still did not work with this.

P.S. I did not run anything Monero related to the background. Might this be one of the reasons I can't check my balance in node?

naughtyfox commented 4 years ago

The module uses obsolete monero's libwallet library (v0.14.1 vs v0.16.1), so it needs to be updated. We will update the library and notify you as soon as it is done.

HCPioquinto commented 4 years ago

Thanks a ton! Cheers!

naughtyfox commented 4 years ago

@HCPioquinto I updated libwallet version in the library, try to update the repo and build it manually (npm run build was enough for me)

HCPioquinto commented 4 years ago

Will check a wee bit later after some stuff. Thanks again. Will report any bugs I may encounter (hopefully none)