Csound Csound-dev Csound-tekno Search About

[Cs-dev] OSC on Windows

Date2007-06-03 17:49
FromMichael Gogins
Subject[Cs-dev] OSC on Windows
I have now successfully built the OSC opcode with MSys/MinGW on Windows, so it will be included in the Windows installers for the next release.

To do this I had to first build liblo. Thanks to Victor Lazzarini for suggestions. For others doing this, the details are as follows:

-- Get the prebuilt pthread library for Windows from http://sourceware.org/pthreads-win32/. Copy libpthreadGC2.a to libpthread.a.

-- Get the latest liblo code from SourceForge using Subversion.

-- Get the latest autoconf (currently verson 2.59) from the MinGW website.

-- Comment out the definition of gai_strerrorA in liblo's server.c file.

-- Run:

./configure CFLAGS="-DWIN32 -Wl,--enable-auto-import -Wl,--enable-stdcall-fixup" CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LIBS=-lws2_32 
make

-- This fails to build osc.dll, but that does not matter for the Csound opcode, which can link with the OSC static library.

-- Add the paths for pthreads and OSC to your custom.py. On my system that is:

    ################################################################
    # If you want to build the OSC opcodes,
    # if it is not in a standard location,
    # add it here (you do need to build it first):
    customCPPPATH.append(r'D:\utah\home\mkg\projects\liblo\lo')
    customCPPPATH.append(r'D:\utah\home\mkg\projects\liblo')
    customLIBPATH.append('D:/utah/home/mkg/projects/liblo/src/.libs')
    # For OSC on Windows you will also need a Windows pthread library,
    # if it is not in a standard location,
    # add it here (you do need to build it first):
    customCPPPATH.append('D:/utah/opt/pthreads/Pre-built.2/include')
    customLIBPATH.append('D:/utah/opt/pthreads/Pre-build.2/lib')

-- Run SConstruct with useOSC=1.

Regards,
Mike







-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net