Hi Liviu (and other OpenOCD developers), I just completed another build of OpenOCD on my Ubuntu VM. I'm following the XPack guide from @Liviu Ionescu, see: [ https://github.com/xpack-dev-tools/openocd-xpack/blob/xpack/README-BUILD.md | https://github.com/xpack-dev-tools/openocd-xpack/blob/xpack/README-BUILD.md ]
The executable for Windows works great. I just tested it on my Windows 10 computer. The executable for Linux doesn't work. I only tested the 64-bit Linux executable (because my Ubuntu is 64-bit Ubuntu 20.04.1 LTS), and I always get this error: $ ./openocd --version ./openocd: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory Now I tried setting the LD_LIBRARY_PATH env variable to make sure OpenOCD finds all shared object files: $ export LD_LIBRARY_PATH = "~/xpack-openocd-0.10.0-14-linux-x64/bin" But the error persists. This is the content of the /bin/ folder in my OpenOCD folder: $ ls -l total 4816 -rwxrwx--- 1 root vboxsf 73232 Aug 29 14 : 14 libftdi1.so.2.4.0 -rwxrwx--- 1 root vboxsf 22840 Aug 29 14 : 14 libhidapi-hidraw.so.0.0.0 -rwxrwx--- 1 root vboxsf 992288 Aug 29 14 : 14 libiconv.so.2.6.0 -rwxrwx--- 1 root vboxsf 57848 Aug 29 14 : 14 libudev.so -rwxrwx--- 1 root vboxsf 22808 Aug 29 14 : 14 libusb-0.1.so.4.4.4 -rwxrwx--- 1 root vboxsf 111464 Aug 29 14 : 14 libusb-1.0.so.0.1.0 -rwxrwx--- 1 root vboxsf 3634432 Aug 29 14 : 14 openocd So there is a shared object file ' libusb-0.1.so.4.4.4 ' , but it seems like OpenOCD is looking for ' libusb-0.1.so.4 ' . Why?
_______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel