Csound Csound-dev Csound-tekno Search About

Re: SV: [Csnd] OSC build tools

Date2005-11-01 20:21
FromMichael Gogins
SubjectRe: SV: [Csnd] OSC build tools
I don't know the specifics for liblo.

The normal GNU build approach with third party libraries and MinGW for SCons is:

1. Download the sources.

2. Untar them in your home directory.

3. Change into the base source directory.

4. Run ./configure.

5. Run make.

5. Run make install (on Linux, that would be sudo make install). This SHOULD put the libraries into /usr/local/lib, the binaries into /usr/local/bin, and the headers into /usr/local/include. With MSys/Mingw/ the /usr directory may be inside MSys/1.0/local or something like that -- can't recall exactly. 

6. SCons SHOULD already know how to look in /usr/local/lib, /usr/local/include, etc. so after that you SHOULD be able to link.

7. But if not, put the COMPLETE PATH for '/usr/local/lib' into custom.py, same for bin and include. Might be c:/utah/usr/MSys/1.0/local/lib. Depends on how you installed things.

I think it might help if you examined the Web documentation for the Filesystem Hierarchy Standard at http://www.pathname.com/fhs/pub/fhs-2.3.html.  GNU, MinGW, MSys, etc., all try to follow this pretty closely. Keep in mind that there are (way too many) variations on the theme. But the basic idea is, build in your home directory or in /usr/local/source/liblo or whatever, then install into standard locations (which will usually be /usr/local/ib for libraries and /usr/local/include for headers), then the compiler should automatically know where to find them.

Hope this helps,
Mike




-----Original Message-----
From: Sigurd Saue 
Sent: Nov 1, 2005 2:36 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] SV: [Csnd] OSC build tools

James,

I haven't tried this myself, so I might be wrong, but the configuration log
says that it's looking for liblo-0.22/lo/lo.h, not just lo.h.

You've supplied the path:
    customCPPPATH.append('c:/utah/usr/liblo-0.22/lo')
but you should probably provide:
    customCPPPATH.append('c:/utah/usr')

Worth trying at least.

Sigurd

-----Opprinnelig melding-----
Fra: James Hearon [mailto:j_hearon@hotmail.com] 
Sendt: 1. november 2005 20:11
Til: csound@lists.bath.ac.uk
Emne: [Csnd] OSC build tools




re: winbuild of OSC opcodes, csound scons cannot find lo.h.  I'm stumped, 
again.  I tried also putting cvs liblo.a in windows32 folder to no avail.  
Still no joy with this build business.

bash script...
my.sh:
#!/bin/sh
c:/python23/python c:/python23/Scripts/scons  buildInterfaces=1 
buildPythonOpcodes=0 useOSC=1 buildLoris=0 buildStkOpcodes=0 gcc3opt=0 
noDebug=0 buildPDClass=0 useDouble=0 dynamicCsoundLibrary=1 $1 $2 $3 $4


MSYS:
>./my.sh

System platform is 'win32'.
Build platform is 'mingw'.
SCons tools on this platform:  ['default', 'mingw', 'gcc', 'g++', 'gnulink',

'ar', 'gas', 'm4', 'tar', 'zip']

CONFIGURATION DECISION: Using single-precision floating point for audio 
samples.
Checking for C header file sndfile.h... yes
Checking for C header file portaudio.h... yes
Checking for C header file portmidi.h... no
Checking for C++ header file FL/Fl.H... yes
Checking for C++ header file boost/any.hpp... yes
Checking for C header file alsa/asoundlib.h... no
Checking for C header file jack/jack.h... no
Checking for C header file liblo-0.22/lo/lo.h... no   ???????????
Checking for C++ header file Opcodes/stk/include/Stk.h... no
Checking for C header file m_pd.h... no
Checking for C header file tcl.h... no
Checking for C header file lua.h... no
Checking for SWIG... no
Checking for C header file Python.h... yes
Checking for C++ header file jni.h... yes
Checking for C header file io.h... yes
Checking for C header file fcntl.h... yes
Checking for C header file unistd.h... yes
Checking for C header file stdint.h... yes
Checking for C header file sys/time.h... yes
Checking for C header file sys/types.h... yes
Checking for C header file termios.h... no
Checking for C header file dirent.h... yes
Checking for C header file Opcodes/Loris/src/loris.h... no
CONFIGURATION DECISION: Not building Loris Python extension and Csound 
opcodes.
CONFIGURATION DECISION: Not building with PortMIDI.
CONFIGURATION DECISION: Building dynamic Csound library
CONFIGURATION DECISION: Not building Csound interfaces library.
CONFIGURATION DECISION: Not generating PDF documentation.
CONFIGURATION DECISION: Building with FLTK graphs and widgets.
CONFIGURATION DECISION: Not building CoreAudio plugin.
CONFIGURATION DECISION: Not building ALSA plugin.
CONFIGURATION DECISION: Building PortAudio module.
CONFIGURATION DECISION: Not building JACK plugin.
CONFIGURATION DECISION: Not building OSC plugin.
Checking for C header file fluidsynth.h... yes
CONFIGURATION DECISION: Building fluid opcodes.

=========================
custom.py:
    #try to find liblo.a and lo.h
    customCPPPATH.append('c:/utah/usr/csound5/windows_dlls')
    customLIBPATH.append('c:/utah/usr/csound5/windows_dlls')
    customCPPPATH.append('c:/utah/usr/liblo-0.22/lo')
    customLIBPATH.append('c:/utah/usr/liblo-0.22/lo')
=========================
SConstruct:
opts.Add('useOSC',
    'Set to 1 if you want OSC support',
    '1')
...
oscFound = configure.CheckHeader("lo/lo.h", language = "C")
#?????? oscFound = configure.CheckHeader("liblo-0.22lo/lo.h", language = 
"C")
...
if not (commonEnvironment['useOSC'] == '1' and oscFound):
#??????if not (commonEnvironment['useOSC'] == '1'): #skip lo.h try going 
toliblo.a
    print "CONFIGURATION DECISION: Not building OSC plugin."
else:
    print "CONFIGURATION DECISION: Building OSC plugin."
    oscEnvironment = pluginEnvironment.Copy()
    oscEnvironment.Append(LIBS = ['lo'])
    oscEnvironment.Append(LIBS = ['pthread'])
    if getPlatform() == 'cygwin' or getPlatform() == 'mingw':
        oscEnvironment.Append(LIBS = ['ws2_32'])
        #??????oscEnvironment.Append(LIBS = ['liblo'])
    pluginLibraries.append(oscEnvironment.SharedLibrary('osc',
                                                        ['Opcodes/OSC.c']
===========================


-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk