sdesalas / node-serialport-omega2

Run your Onion Omega2 robot overlord using javascript.
MIT License
9 stars 1 forks source link

node-usb-omega2 #1

Open MMMMasterM opened 7 years ago

MMMMasterM commented 7 years ago

Hi, I followed your guide to try and cross-compile the "usb" npm module for the omega2 but it requires libudev. Could you please give an example how to add additional libraries like libudev for the cross compilation? Or alternatively could you make omega2 compatible precompiled npm modules for usb@1.2.0 and/or node-hid@0.5.4?

sdesalas commented 7 years ago

I think you are probably looking for step3:

sudo apt-get install -y libudev 

However if the problem is that you need libudev in the lede toolchain you'll have to dig around at step 4 and modify the default config.

./config

The nodejs compilation link here is a bit more detailed. Perhaps the LIBPATH variable might do it.

sdesalas commented 7 years ago

Sorry but I rebuilt my machine and cant find the Ubuntu VM I used to compile this. Might be on a backup drive somewhere but cant' help you right away with cross-compiling this for you.