[LAA] [ANN] libofqf-0.1.1
arnold at arnoldarts.de
Mon Apr 23 15:33:02 EDT 2007
I am proclaiming the birth of a new (small) project: OSC for Qt4 (ofqf)!
Quicklink to the download:
From the ofqf-page (http://www.arnoldarts.de/drupal/?q=node/573):
ofqf is a native OSC implementation in Qt4. Native means that ofqf doesn't
depend on other external libs (except for QtCore and QtNetwork) and ofqf
isn't just a wrapper around liblo or something.
= Why shoud I use ofqf? =
If your app is using Qt, you do have several choices for OSC, but all involve
wrapping external libraries with some QObject so you can use signals/slots to
communicate with the rest of your app. In that case you will want to use
= Show me examples! =
== server ==
A simple OSC-server that can be shut down by the osc-message "/quit" is the
QOscServer* s = new QOscServer(
PathObject* pathquit = new PathObject(
pathquit, SIGNAL( data() ),
QCoreApplication::instance(), SLOT( quit() )
Thats it on the server side...
== client ==
A simple client to stop that server on button-click:
int main( int argc, char** argv )
QApplication* app = new QApplication( argc, argv );
QPushButton* btn = new QPushButton( "Quit the server and this client",
QOscClient* c = new QOscClient( QHostAddress::LocalHost, 5000, app );
PathObject* pathquit = new PathObject( "/quit", QVariant::Invalid,
QObject::connect( btn, SIGNAL( clicked() ), pathquit, SLOT(
send() ) );
QObject::connect( btn, SIGNAL( clicked() ), btn, SLOT( close() );
= Download =
Grab the sources of version 0.1.1 from here:
= Installation =
Building the lib and the samples is done with calling "scons".
If you want to install lib, headers and pkg-config-file you have to use "scons
install" which installs by default to /usr/local. To select another prefix
you have to use "scons install PREFIX=<dir>".
To uninstall the installed files use "scons -c install" or, if you used your
own prefix, "scons -c install PREFIX=<dir>".
Hi, I am a .signature virus. Please copy me into your ~/.signature and send me
to all your contacts.
After a month or so log in as root and do a rm / -rf. Or ask your
administrator to do so...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.linuxaudio.org/pipermail/linux-audio-announce/attachments/20070423/4f185a3a/attachment-0001.pgp
More information about the Linux-audio-announce