[go: up one dir, main page]

Menu

Tree [e97ff7] 0.28 /
 History

HTTPS access


File Date Author Commit
 build 2014-01-27 Stephen Sinclair Stephen Sinclair [eb475e] Add a check for a specific config.sub/config.gu...
 doc 2014-01-25 Stephen Sinclair Stephen Sinclair [5c7a00] Update doxygen configuration for doxygen 1.8.5.
 examples 2014-01-26 Stephen Sinclair Stephen Sinclair [7b7532] Add a C++ usage example.
 lo 2014-01-27 Stephen Sinclair Stephen Sinclair [30c096] Add C++ wrappers for lo_timetag_now() and LO_TT...
 src 2014-01-27 Stephen Sinclair Stephen Sinclair [30c096] Add C++ wrappers for lo_timetag_now() and LO_TT...
 .gitignore 2014-01-27 Stephen Sinclair Stephen Sinclair [50f421] Add cpp_example to .gitignore.
 AUTHORS 2014-01-14 Stephen Sinclair Stephen Sinclair [65e836] Fix a name in the AUTHORS file. (Sorry Joe!)
 COPYING 2008-09-04 radarsat1 radarsat1 [1b865a] With permission of all authors, the license of ...
 ChangeLog 2014-01-27 Stephen Sinclair Stephen Sinclair [e97ff7] Update version to 0.28 and update LO_SO_VERSION...
 INSTALL 2004-08-07 theno23 theno23 [e68bc5] Initial revision
 Makefile.am 2013-06-23 Stephen Sinclair Stephen Sinclair [1e3a50] Merge branch 'master' into cpp
 NEWS 2014-01-27 Stephen Sinclair Stephen Sinclair [e97ff7] Update version to 0.28 and update LO_SO_VERSION...
 README.md 2014-01-17 Stephen Sinclair Stephen Sinclair [ee721c] pandoc seems to need an extra line at the top o...
 TODO 2014-01-14 Stephen Sinclair Stephen Sinclair [c8f493] Update TODO.
 autogen.sh 2013-11-21 Stephen Sinclair Stephen Sinclair [a35183] Merge branch 'cpp'
 configure.ac 2014-01-27 Stephen Sinclair Stephen Sinclair [e97ff7] Update version to 0.28 and update LO_SO_VERSION...
 liblo.pc.in 2012-03-05 radarsat1 radarsat1 [6dc09d] Don't add "-lpthread" to dependencies unless it...

Read Me

liblo

liblo is a lightweight library that provides an easy to use implementation of
the OSC protocol. For more information about the OSC protocol, please see:

The official liblo homepage is here:

liblo is portable to most UNIX systems (including OS X) and
Windows. It is released under the GNU Lesser General Public Licence
(LGPL) v2.1 or later. See COPYING for details.

Building

To build and install liblo, read INSTALL in the main liblo directory.
liblo is configured as a dynamically-linked library. To use liblo in a
new application, after

configure

you should install liblo with

make install

so that the liblo library can be located by your application.

To build with MS Visual Studio on Windows, first download and run the
premake4.exe application in the build directory with an argument
describing which IDE you are using. This will generate project and
solution files. See build/README.md for more details.

Examples

See examples for example source code for a simple client and two
servers:

  • example_server.c uses lo_server_thread_start() to create a liblo server in an separate thread.

  • nonblocking_server_example.c uses select() to wait for either console input or OSC messages, all in a single thread.

  • example_client.c uses liblo to send OSC messages to a server.

These examples will work without installing liblo. This is
accomplished by a shell script. For example, examples/client_example
is a shell script that runs the "real" program
examples/.libs/example_client. Because of this indirection, you
cannot run example_client with a debugger.

Debugging

To debug applications using liblo, one option is to include all the
liblo source code in the application rather than linking with the
liblo library. For more information about this, please see the
(libtool manual)[1]

To compile liblo with debugging flags, use,

./configure --enable-debug

IPv6 NOTICE

liblo was written to support both IPv4 and IPv6, however it has caused
various problems along the way because most of the currently available
OSC applications like Pd and SuperCollider don't listen on IPv6
sockets. IPv6 is currently disabled by default, but you can enable it
using

./configure --enable-ipv6