tenbaht / sduino

An Arduino-like programming API for the STM8
http://tenbaht.github.io/sduino/
GNU Lesser General Public License v2.1
349 stars 213 forks source link

stm8flash: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory #95

Open b4wo opened 4 years ago

b4wo commented 4 years ago

Hello, everyone. when i use arduino IDE upload or burning bootloader, IDE told me error.

"stm8flash: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory"

but when i run this command in shell, it's fine to execute.

./stm8flash -cstlinkv2 -pstm8s103?3 -u Determine OPT area Due to its file extension (or lack thereof), "Workaround" is considered as RAW BINARY format! Unlocked device. Option bytes reset to default state. Bytes written: 11

the ldd export:

ldd ~/.arduino15/packages/sduino/tools/STM8Tools/2019.02.05/linux/stm8flash linux-vdso.so.1 (0x00007ffdc93f4000) libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f18c5775000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f18c5384000) libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f18c5166000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f18c4f47000) /lib64/ld-linux-x86-64.so.2 (0x00007f18c5b9a000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f18c4d3f000)

jean-helsinki commented 4 years ago

In my case problem reproduce with Arduino IDE from Snap. Via Snap system libusb not accessible. With ordinal local Arduino IDE everything works fine. This a 'bug' of snapcraft package.