snipplets.dev/~/C/libserialport
2023-07-29 21:08:22 +03:00
..
.gitignore list ports 2023-07-29 21:08:22 +03:00
build list ports 2023-07-29 21:08:22 +03:00
clear prepare env 2023-07-29 21:05:08 +03:00
README.md prepare env 2023-07-29 21:05:08 +03:00

Download libserialport library.

git clone git://sigrok.org/libserialport

For build code use build script or build files manually.

Example:

export C_INCLUDE_PATH=<path/to/libserialport>
export LIBRARY_PATH=<path/to/libserialport/.libs>

gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport