-
Notifications
You must be signed in to change notification settings - Fork 72
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
rclnodeJs installation broken: "Could not locate the bindings file" #820
Comments
I was hoping someone with more electron experience than me would pick up this issue. I'll give it a go tomorrow and see what I learn. @nckswt Thx for the mvp. Please share any new info you may have on the matter. |
I haven't used electron in a while, so some of these information might be outdated. Normally the binding files are built when you install |
Thank you for your quick response. I'll give it a try asap.
Out of curiosity are you using rclnodejs for anything interesting these
days?
Wayne
…On Thu, Nov 18, 2021 at 4:14 AM Teo Koon Peng ***@***.***> wrote:
I haven't used electron in a while, so some of these information might be
outdated.
Normally the binding files are built when you install rclnodejs, this is
done by node-gyp which is bundled with every node installation. These
node bindings are normally not compatible with electron, for electron,
there is a tool which helps build the bindings (iirc its called
electron-rebuild) in a way that is compatible.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKUP4WQTDICGPHNXLS2CMLUMTG2BANCNFSM5IC5DZYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Yup! I'm using electron-builder for that |
@nckswt I pulled and built your mvp example without replicating the Next I will extend it to use webpack similar to your example. Note this example is based on Electron v16 & the rclnodejs#node-16 branch. We are working to publish this branch asap. |
Ahh, I was hoping there'd be a node 16 solution! Didn't realize this branch existed. I tried including it as
with electron 16 and still ran into the same issues though (even after
but I can't get further along than that. Maybe the cause is some interplay with webpack and electron builder? |
Yes I believe it is a webpack matter but I have not dug in deeper. I successfully impl'ed a small port of my basic electron-rclnodejs app to use the electron-builder "electron-boilerplate" template https://github.com/szwacz/electron-boilerplate and also preliminary results using electron-forge seem to be working in dev mode. My dev env is linux. Did you use a boilerplate project for your mvp example? |
Hi friends, I have encountered similar build issues using Webpack and Electron previously, and thought I would take a look. I cloned your example repo and ran the following: source /opt/ros/foxy/setup.bash
npm install
npm run start:dev And was met with the missing Therefore I added the following lines to both the module.exports = [{
...
target: 'electron-renderer',
externals: {
rclnodejs: 'rclnodejs'
},
...
] This removed the bindings error, but instead gave:
I'm no expert with
And the
Running |
@anmilleriii All that worked perfectly to get The second (and last) step to this problem is to get So, taking the
That puts
This works, but it bloats the Note that you can run I've updated my mvp example to use this configuration. Wondering if there's a more elegant solution I can't think of? Or if that's the expected workaround? |
I apologize but I was not able to spend the time to debug an While I wanted to quickly solve the Comments
Resources As I probably won't be able to provide too much of a further look, hopefully these are helpful:
Lastly @wayneparrott if @nckswt is okay with it, I might suggest closing this issue or at least removing the bug label, as the original bindings file issue is more of a limitation of |
No worries -- that's a wonderful and well-detailed response! Thanks so much! |
When Installing rclnodejs library, I am getting this npm ERR! A complete log of this run can be found in: /home/dinesh/.npm/_logs/2024-07-29T06_45_15_642Z-debug-0.log |
@dineshHarikrishnan it seems that your |
Please check with rclnodejs Electron demo just added https://github.com/RobotWebTools/rclnodejs/tree/develop/electron_demo |
Description
We've been transitioning an electron app that uses roslibjs over to a ros2 interface. But, currently pulling our hair out trying to get things playing nicely.
Here's an MVP application (https://github.com/nckswt/ros2-electron-app-mvp) to recreate the issue. The main issue we're facing is this error:
This PR makes me think we should be able to load
rclnodejs
into the electron renderer.0.20.1
galactic
Ubuntu 20.04.3 LTS
v12.22.7
Steps To Reproduce
Expected Behavior
I'd expect the node to run without crashing.
Actual Behavior
See error above.
Wondering if there's something I need to do to generate the bindings file? Or if there's an incompatibility with my NodeJS setup somehow? Or if it's even an upstream issue?
Please let me know if there's more info I can provide for debugging.
The text was updated successfully, but these errors were encountered: