Closed QuirkyCort closed 2 years ago
On which os version did you determine this? In our tests with buster or bullseye we never needed to install libusb or libudev.
Did you also read the "more detailed installation instructions" from @easytarget which are linked at the beginning of the page?
Hi, I'm not sure how exact and compatible are the @easytarget instructions compatible with the venerable (old?) LaserWeb dev-es6 branch. The whole point of easytarget fork was to update numerous nodejs packages versions.
Which branch are you trying?
@harlock999 As far as I know the installation instructions of @easytarget should work with the actual lw.comm-server version.
Installing LaserWeb4 is only recomended for someone who wants to compile own versions of LW4. For a user installation it's enough to install lw.comm-server (which serves the matching frontend over the embedded webserver).
Sorry. I completely overlooked the @easytarget instructions, so I'm just following the instructions on https://laserweb.yurl.ch/documentation/installation/36-install-raspberry-pi
I have two installations, one on buster and another on bullseye, both of requires libusb and libudev.
One thing I missed out is that I'm using node 18 rather than node 12. I'm guessing there are no pre-build modules for some dependencies and it needed to be re-build, hence the need for libusb and libudev which isn't required when tested with node 12.
Yes, we are based on node 12 as written in the instructions. Was it completely working with node 18 after you installed libusb and libudev?
Yes. Everything works fine under node 18.
Thanks for the info!
I have added a hint to the documentation about node 18 and the additional libs.
In the installation instructions for Raspberry Pi (https://laserweb.yurl.ch/documentation/installation/36-install-raspberry-pi), under the section "Download and install LaserWeb server", there should be an additional line of...
sudo apt install libusb-1.0-0-dev libudev-dev
... before...
sudo npm install serialport --unsafe-perm --build-from-source
Without it, the build will fail.
So the complete instructions for that section should be...