17 lines
333 B
Markdown
17 lines
333 B
Markdown
|
Download `libserialport` library.
|
||
|
|
||
|
```sh
|
||
|
git clone git://sigrok.org/libserialport
|
||
|
```
|
||
|
|
||
|
For **build** code use `build` script or build files manually.
|
||
|
|
||
|
Example:
|
||
|
|
||
|
```sh
|
||
|
export C_INCLUDE_PATH=<path/to/libserialport>
|
||
|
export LIBRARY_PATH=<path/to/libserialport/.libs>
|
||
|
|
||
|
gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport
|
||
|
```
|