Difference between revisions of "Libserialport"

From sigrok
Jump to navigation Jump to search
m
Line 14: Line 14:


You can browse the [http://sigrok.org/api/libserialport/unstable/index.html API documentation] of the library online.
You can browse the [http://sigrok.org/api/libserialport/unstable/index.html API documentation] of the library online.
== Distribution packages ==
See [[Downloads#Binaries_and_distribution_packages|Downloads]].


== Getting the code ==
== Getting the code ==
Line 20: Line 24:


You can also [http://sigrok.org/gitweb/?p=libserialport.git;a=tree browse the source code] via gitweb.
You can also [http://sigrok.org/gitweb/?p=libserialport.git;a=tree browse the source code] via gitweb.
== Requirements ==
* libudev (only needed on Linux)
* There are no dependencies at all on other OSes.


== Building from source ==
== Building from source ==
Line 32: Line 31:
  $ '''make'''
  $ '''make'''
  $ '''sudo make install'''
  $ '''sudo make install'''
__NOTOC__
 
Note: There are no dependencies (i.e., no other libraries are needed to build/use libserialport).
 
== Debugging ==
== Debugging ==
To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable LIBSERIALPORT_DEBUG to any value.


To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable '''LIBSERIALPORT_DEBUG''' to any value.
__NOTOC__


[[Category:APIs]]
[[Category:APIs]]

Revision as of 18:41, 7 September 2014

libserialport is a minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports.

It is licensed under the terms of the GNU Lesser General Public License, version 3 or later.

Supported operating systems

  • Linux
  • Mac OS X
  • Windows
  • Android

API documentation

You can browse the API documentation of the library online.

Distribution packages

See Downloads.

Getting the code

$ git clone git://sigrok.org/libserialport

You can also browse the source code via gitweb.

Building from source

$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

Note: There are no dependencies (i.e., no other libraries are needed to build/use libserialport).

Debugging

To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable LIBSERIALPORT_DEBUG to any value.