Coder Social home page Coder Social logo

hl0521 / liblo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radarsat1/liblo

0.0 0.0 0.0 1.7 MB

liblo is an implementation of the Open Sound Control protocol for POSIX systems

License: GNU Lesser General Public License v2.1

Shell 1.42% C++ 11.73% C 79.70% Makefile 0.70% CMake 3.81% M4 2.64%

liblo's Introduction

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, please use CMake as described next. See build/README.md for more details.

Building with CMake

If you prefer the CMake build system, support has been added. Instead of the configure step listed in the previous section, create a build directory and initialize CMake:

mkdir ~/build/liblo
cmake ~/source/liblo/cmake <more options..>
make

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

liblo's People

Contributors

radarsat1 avatar tuscland avatar malloch avatar drlight-code avatar umlaeute avatar showlabor avatar s0600204 avatar fukuchi avatar 7890 avatar gaborpapp avatar tartina avatar mathiasbredholt avatar stekyne avatar jean-emmanuel avatar carlo-bramini avatar cme avatar h3xx avatar erikronstrom avatar ffontaine avatar fsateler avatar digitalshow avatar johnty avatar smlz avatar marivalen avatar sl1200mk2 avatar shoover avatar yann-morin-1998 avatar danomatika avatar krasjet avatar markkorput avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.