a-v-s / gethla Goto Github PK
View Code? Open in Web Editor NEWGet the ST-Link Serial Number for OpenOCD
License: MIT License
Get the ST-Link Serial Number for OpenOCD
License: MIT License
build with make fails instead I had to go cc gethla.c -lusb-1.0
$ uname -a
Linux nuc2 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux
$ make
cc -I/usr/include/libusb-1.0 -lusb-1.0 -ogethla gethla.c
/usr/bin/ld: /tmp/cciXESUF.o: in function `print_device':
gethla.c:(.text+0x2c): undefined reference to `libusb_get_device_descriptor'
/usr/bin/ld: gethla.c:(.text+0x9c): undefined reference to `libusb_open'
/usr/bin/ld: gethla.c:(.text+0xd4): undefined reference to `libusb_get_string_descriptor_ascii'
/usr/bin/ld: gethla.c:(.text+0x15c): undefined reference to `libusb_open'
/usr/bin/ld: gethla.c:(.text+0x190): undefined reference to `libusb_get_string_descriptor_ascii'
/usr/bin/ld: gethla.c:(.text+0x201): undefined reference to `libusb_close'
/usr/bin/ld: /tmp/cciXESUF.o: in function `main':
gethla.c:(.text+0x221): undefined reference to `libusb_init'
/usr/bin/ld: gethla.c:(.text+0x243): undefined reference to `libusb_get_device_list'
/usr/bin/ld: gethla.c:(.text+0x2a5): undefined reference to `libusb_free_device_list'
/usr/bin/ld: gethla.c:(.text+0x2af): undefined reference to `libusb_exit'
collect2: error: ld returned 1 exit status
make: *** [Makefile:5: gethla] Error 1
while cc gethla.c -lusb-1.0
produces happy working a.out!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.