REVrobotics / 2m-Distance-Sensor

Port of ST vl53l0x driver for roboRIO to operate the REV Robotics 2m Distance Sensor.
http://www.revrobotics.com/rev-31-1505/
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

LabVIEW does not load shared library correctly #4

Open ryanj1234 opened 5 years ago

ryanj1234 commented 5 years ago

2m Distance Sensor depends on libDistanceSensorDriver.so, which is the compiled VL53L0X vendor driver. This is copied over to the roboRIO when a LabVIEW project is run, but any function calls made to this library will fail due to it not being found if a user has only used LabVIEW for the 2m Distance Sensor.

If a project is created in C++/Java using the 2m Distance Sensor, the gradle deploy process copies this shared library over, gives it the proper permissions and runs ldconfig to link the library. After doing this, any LabVIEW project can use the shared library.

This is currently noted as a workaround for installing LabVIEW, but should be fixed so users do not have to load a C++/Java project to their roboRIO before running LabVIEW.