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

Fail with installation (way to fix it included!) #150

Open
methaqualon opened this issue Nov 19, 2022 · 1 comment
Open

Fail with installation (way to fix it included!) #150

methaqualon opened this issue Nov 19, 2022 · 1 comment

Comments

@methaqualon
Copy link

methaqualon commented Nov 19, 2022

Hello!

Just trying to create bot.
Compiled on debian 10 toxcore-c, tried to include it by
var toxAtPath = new toxcore.Tox({
path: '/path/to/libtoxcore.so', this
crypto: '/path/to/libtoxencryptsave.so' (another thing - how to compile this one with toxcore-c?)
});

but installing js-toxcore fails by npm install js-toxcore-c even if i'm trying to install https://github.com/node-ffi/node-ffi (by the way node-ffi is deprecated, actual fork is ffi-napi, which is perfectly included into our package.json of js-toxcore-c)
One way to successfully install project (it will compile toxcore-c automatically) is:
npm install https://github.com/TokTok/js-toxcore-c
Somewhy it perfectly works on fresh Debian 10 (and I will test it on 11 in a few hours) and installs on the MacOS Big Sur, but on the MacOS it fails with a few error when trying to start basic example (it may be thing with paths where toxcore-c installer puts compiled libs).

So developers, please, update README.md so no one won't lose much time like me, and thank you so much in general for this perfect binding (it really helps me working).

Note: in npm storage there is node-ffi, not ffi-napi

@methaqualon
Copy link
Author

Fixed second time =)
I thought that repo somehow installs libtoxcore.so and including it into js (does it?)
If you have issue with not finding libtoxcore.so but installed it with bash script from this repository, it may help you:
export LD_LIBRARY_PATH=/usr/local/lib

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

1 participant