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

Native dependencies not building #19

Open
manashathparia opened this issue May 30, 2022 · 5 comments
Open

Native dependencies not building #19

manashathparia opened this issue May 30, 2022 · 5 comments

Comments

@manashathparia
Copy link

manashathparia commented May 30, 2022

I am trying to use Webtorrent with nodejs-mobile, which has a native dependency utp-native. But while building the app Gradle just ignores the native dependency and builds the apk

@manashathparia manashathparia changed the title Native libraries not building Native dependencies not building May 30, 2022
@freddi301
Copy link

I've tried with upt-native-nodejs-mobile but when running the app it says "cannot locate upt-native.node"
(tried to build on windows and linux)
BUILD_NATIVE_MODULES.txt is set to 1

@freddi301
Copy link

update: to use tp-native on mobile as of now you can replace it with utp-native-nodejs-mobile

@manashathparia
Copy link
Author

update: to use tp-native on mobile as of now you can replace it with utp-native-nodejs-mobile

Tried to use utp-native-nodejs-mobile. But still not building. Did it work for you?

@freddi301
Copy link

freddi301 commented Jun 19, 2022

update: to use tp-native on mobile as of now you can replace it with utp-native-nodejs-mobile

Tried to use utp-native-nodejs-mobile. But still not building. Did it work for you?

Made it work.
Compilation works only on Linux.
You need to run GenerateNativeNodeNativeAssetsList gradle command.
Apply this patch #11
Have all tools for native compilation installed.

@manashathparia
Copy link
Author

manashathparia commented Jun 19, 2022

thanks got the native deps recognised. now getting another error while building the deps.

npm ERR! make: *** No rule to make target 'Release/obj.target/libutp/deps/libutp/utp_internal.o', needed by 'Release/utp.a'. Stop.
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: 'make' failed with exit code: 2

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