Force Dimension Haptic Device Plugin #4660
-
Hi, I'm encountering some trouble using the Force Dimension Haptic Device Plugin. The issue I'm facing is similar to #3497. I'll describe my problem in detail below. I'm using a VMware® Workstation 17 Pro virtual machine running Windows 10 with the Linux operating system Ubuntu 22.04. I've tried two approaches, but unfortunately neither of them has successfully compiled the plugin: 1.Using sofa v23.12 with the forcedimensions-master branch plugin and the sdk-3.17.0-linux-x86_64-gcc driver |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi ! libdhd.so.3.17.0 is a dynamic library and is a dependency of libForceDimensions, and here the problem is that your OS cannot find it. The SOFA project and all of the plugins have dependencies, which are external libraries upon which we 'link' meaning we use some of their methods or classes. These dependencies mean that you need to get access to those methods when you are trying to execute the plugin code. There exists two main ways of resolving that, either by copying the external methods and embedding them inside of the plugin (which is called static linking, with .a extension on ubuntu) or relying on the OS to provide the required library upon which we have linked when we try to launch it (this is called dynamic linking, with .so, and it is what is used in SOFA). In order to help your OS to find it, you can enrich an environment variable that is used to look for such dynamic libraries : Tell me if that works for you ! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Hello.
LD_LIBRARY_PATH
, it's a folder path, not a filepath. You shold stop your path before the library name.For libusb try to install
libusb-1.0-0-dev