Csound Csound-dev Csound-tekno Search About

[Cs-dev] csound5 will not build on OSX

Date2010-08-21 23:50
FromVictor Lazzarini
Subject[Cs-dev] csound5 will not build on OSX
...and Csound5 will not build on OSX too...

coltrane:csound5-float victor$ sh release-build.sh
scons: Reading SConscript files ...

       C S O U N D 5

SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.

By Michael Gogins 

For custom options, run 'scons -h'.
For default options, run 'scons -H'.
If headers or libraries are not found, edit 'custom.py'.
For Linux, run in the standard shell
     with standard Python and just run 'scons'.
For MinGW, run in the MSys shell
     and use www.python.org WIN32 Python to run scons.
For Microsoft Visual C++, run in the Platform SDK
     command shell, and use www.python.org WIN32 Python to run scons.

System platform is 'darwin'.

scons: warning: The Options class is deprecated; use the Variables  
class instead.
File "/Users/victor/src/csound5-float/SConstruct", line 74, in 
Using options from 'custom.py.'
Build platform is 'darwin'.
SCons tools on this platform:  ['default', 'applelink', 'gcc', 'g++',  
'gfortran', 'as', 'ar', 'CVS', 'filesystem', 'jar', 'javac', 'javah',  
'lex', 'm4', 'RCS', 'rmic', 'rpcgen', 'swig', 'tar', 'yacc', 'zip']
CONFIGURATION DECISION: No localisation
CONFIGURATION DECISION: Using single-precision floating point for  
audio samples.
Mac OS X version 10.5
Apple Python version is 2.5
Current Python version is 2.6, using MacPython Framework
Checking for C header file stdio.h... (cached) yes
Checking for C library sndfile... (cached) yes
Checking for C library pthread... (cached) yes
CONFIGURATION DECISION: Building with MP3 support
CONFIGURATION DECISION: No Wiimote support
CONFIGURATION DECISION: No P5 Glove support
Checking for pthread_barrier_init(0, 0, 0) in C library pthread...  
(cached) no
Checking for int n = omp_get_num_threads() in C++ library gomp... no
Checking for __sync_lock_test_and_set((int32_t *)0, 0) in C library  
m... no
Checking for C++ header file frontends/CsoundVST/vstsdk2.4/public.sdk/ 
source/vst2.x/audioeffectx.h... no
Checking for C header file portaudio.h... yes
Checking for C header file portmidi.h... yes
Checking for C++ header file FL/Fl.H... yes
Checking for C++ header file FL/Fl_Spinner.H... yes
Checking for C++ header file boost/any.hpp... yes
Checking for C++ header file gmm/gmm.h... yes
Checking for C library asound... no
Checking for C library lo... yes
Checking for MusicXML2::SXMLFile f = MusicXML2::TXMLFile::create() in C 
++ library musicxml2... no
Checking for C header file jack/jack.h... yes
Checking for C header file pulse/simple.h... no
Checking for C++ header file Opcodes/stk/include/Stk.h... no
Checking for C header file m_pd.h... yes
Checking for C header file tcl.h... yes
Checking for C header file zlib.h... yes
Checking for C++ header file funknown.h... no
Checking for C header file lua.h... no
Checking for SWIG... yes
Python Version: 2.6
Checking for C header file Python.h... no
Checking for C header file /Library/Frameworks/Python.framework/ 
Headers/Python.h... yes
Checking for C++ header file /System/Library/Frameworks/ 
JavaVM.framework/Headers/jni.h... yes
Checking for C header file io.h... no
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... yes
Checking for C header file values.h... no
Checking for C header file sys/socket.h... yes
Checking for libsndfile version 1.0.16 or later... yes
CONFIGURATION DECISION: Building with new parser enabled
CONFIGURATION DECISION: Not building with new parser debugging
CONFIGURATION DECISION: Building dynamic Csound library
CONFIGURATION DECISION: Building Csound C++ interface library.
CONFIGURATION DECISION: Not building Lua wrapper to Csound C++  
interface library.
CONFIGURATION DECISION: Building Java wrapper to Csound C++ interface  
library.
LangSubDir: java
Search paths:
    ./
    ./
    ./H/
    /usr/include/malloc/
    /opt/local/include/boost-1_32//
    /usr/local/include/
    /usr/local/include/
    interfaces/
    ./swig_lib/java/
    /usr/share/swig/1.3.31/java/
    ./swig_lib/
    /usr/share/swig/1.3.31/
Preprocessing...
./H/csound.h:1420: Error: Unable to find 'libkern/OSAtomic.h'

===========






------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-22 00:35
FromMichael Gogins
SubjectRe: [Cs-dev] csound5 will not build on OSX
That is good.

Mike

On Sat, Aug 21, 2010 at 7:36 PM, Victor Lazzarini
 wrote:
> SWIG can't deal with libkern for some complicated reason: 1) it can't
> find the header 2) if I explicitly give it /usr/include it fails with
> CPP #errors. For this reason I am protecting this bit of csound.h with
> #ifndef SWIG, where the spinlocks are defined.
>
> Victor
>
>
> On 21 Aug 2010, at 23:50, Victor Lazzarini wrote:
>
>> ...and Csound5 will not build on OSX too...
>>
>> coltrane:csound5-float victor$ sh release-build.sh
>> scons: Reading SConscript files ...
>>
>>       C S O U N D 5
>>
>> SCons build file for Csound 5:
>> API library, plugin opcodes, utilities, and front ends.
>>
>> By Michael Gogins 
>>
>> For custom options, run 'scons -h'.
>> For default options, run 'scons -H'.
>> If headers or libraries are not found, edit 'custom.py'.
>> For Linux, run in the standard shell
>>     with standard Python and just run 'scons'.
>> For MinGW, run in the MSys shell
>>     and use www.python.org WIN32 Python to run scons.
>> For Microsoft Visual C++, run in the Platform SDK
>>     command shell, and use www.python.org WIN32 Python to run scons.
>>
>> System platform is 'darwin'.
>>
>> scons: warning: The Options class is deprecated; use the Variables
>> class instead.
>> File "/Users/victor/src/csound5-float/SConstruct", line 74, in
>> 
>> Using options from 'custom.py.'
>> Build platform is 'darwin'.
>> SCons tools on this platform:  ['default', 'applelink', 'gcc', 'g++',
>> 'gfortran', 'as', 'ar', 'CVS', 'filesystem', 'jar', 'javac', 'javah',
>> 'lex', 'm4', 'RCS', 'rmic', 'rpcgen', 'swig', 'tar', 'yacc', 'zip']
>> CONFIGURATION DECISION: No localisation
>> CONFIGURATION DECISION: Using single-precision floating point for
>> audio samples.
>> Mac OS X version 10.5
>> Apple Python version is 2.5
>> Current Python version is 2.6, using MacPython Framework
>> Checking for C header file stdio.h... (cached) yes
>> Checking for C library sndfile... (cached) yes
>> Checking for C library pthread... (cached) yes
>> CONFIGURATION DECISION: Building with MP3 support
>> CONFIGURATION DECISION: No Wiimote support
>> CONFIGURATION DECISION: No P5 Glove support
>> Checking for pthread_barrier_init(0, 0, 0) in C library pthread...
>> (cached) no
>> Checking for int n = omp_get_num_threads() in C++ library gomp... no
>> Checking for __sync_lock_test_and_set((int32_t *)0, 0) in C library
>> m... no
>> Checking for C++ header file frontends/CsoundVST/vstsdk2.4/public.sdk/
>> source/vst2.x/audioeffectx.h... no
>> Checking for C header file portaudio.h... yes
>> Checking for C header file portmidi.h... yes
>> Checking for C++ header file FL/Fl.H... yes
>> Checking for C++ header file FL/Fl_Spinner.H... yes
>> Checking for C++ header file boost/any.hpp... yes
>> Checking for C++ header file gmm/gmm.h... yes
>> Checking for C library asound... no
>> Checking for C library lo... yes
>> Checking for MusicXML2::SXMLFile f = MusicXML2::TXMLFile::create()
>> in C
>> ++ library musicxml2... no
>> Checking for C header file jack/jack.h... yes
>> Checking for C header file pulse/simple.h... no
>> Checking for C++ header file Opcodes/stk/include/Stk.h... no
>> Checking for C header file m_pd.h... yes
>> Checking for C header file tcl.h... yes
>> Checking for C header file zlib.h... yes
>> Checking for C++ header file funknown.h... no
>> Checking for C header file lua.h... no
>> Checking for SWIG... yes
>> Python Version: 2.6
>> Checking for C header file Python.h... no
>> Checking for C header file /Library/Frameworks/Python.framework/
>> Headers/Python.h... yes
>> Checking for C++ header file /System/Library/Frameworks/
>> JavaVM.framework/Headers/jni.h... yes
>> Checking for C header file io.h... no
>> 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... yes
>> Checking for C header file values.h... no
>> Checking for C header file sys/socket.h... yes
>> Checking for libsndfile version 1.0.16 or later... yes
>> CONFIGURATION DECISION: Building with new parser enabled
>> CONFIGURATION DECISION: Not building with new parser debugging
>> CONFIGURATION DECISION: Building dynamic Csound library
>> CONFIGURATION DECISION: Building Csound C++ interface library.
>> CONFIGURATION DECISION: Not building Lua wrapper to Csound C++
>> interface library.
>> CONFIGURATION DECISION: Building Java wrapper to Csound C++ interface
>> library.
>> LangSubDir: java
>> Search paths:
>>    ./
>>    ./
>>    ./H/
>>    /usr/include/malloc/
>>    /opt/local/include/boost-1_32//
>>    /usr/local/include/
>>    /usr/local/include/
>>    interfaces/
>>    ./swig_lib/java/
>>    /usr/share/swig/1.3.31/java/
>>    ./swig_lib/
>>    /usr/share/swig/1.3.31/
>> Preprocessing...
>> ./H/csound.h:1420: Error: Unable to find 'libkern/OSAtomic.h'
>>
>> ===========
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-22 00:36
FromVictor Lazzarini
SubjectRe: [Cs-dev] csound5 will not build on OSX
SWIG can't deal with libkern for some complicated reason: 1) it can't  
find the header 2) if I explicitly give it /usr/include it fails with  
CPP #errors. For this reason I am protecting this bit of csound.h with
#ifndef SWIG, where the spinlocks are defined.

Victor


On 21 Aug 2010, at 23:50, Victor Lazzarini wrote:

> ...and Csound5 will not build on OSX too...
>
> coltrane:csound5-float victor$ sh release-build.sh
> scons: Reading SConscript files ...
>
>       C S O U N D 5
>
> SCons build file for Csound 5:
> API library, plugin opcodes, utilities, and front ends.
>
> By Michael Gogins 
>
> For custom options, run 'scons -h'.
> For default options, run 'scons -H'.
> If headers or libraries are not found, edit 'custom.py'.
> For Linux, run in the standard shell
>     with standard Python and just run 'scons'.
> For MinGW, run in the MSys shell
>     and use www.python.org WIN32 Python to run scons.
> For Microsoft Visual C++, run in the Platform SDK
>     command shell, and use www.python.org WIN32 Python to run scons.
>
> System platform is 'darwin'.
>
> scons: warning: The Options class is deprecated; use the Variables
> class instead.
> File "/Users/victor/src/csound5-float/SConstruct", line 74, in  
> 
> Using options from 'custom.py.'
> Build platform is 'darwin'.
> SCons tools on this platform:  ['default', 'applelink', 'gcc', 'g++',
> 'gfortran', 'as', 'ar', 'CVS', 'filesystem', 'jar', 'javac', 'javah',
> 'lex', 'm4', 'RCS', 'rmic', 'rpcgen', 'swig', 'tar', 'yacc', 'zip']
> CONFIGURATION DECISION: No localisation
> CONFIGURATION DECISION: Using single-precision floating point for
> audio samples.
> Mac OS X version 10.5
> Apple Python version is 2.5
> Current Python version is 2.6, using MacPython Framework
> Checking for C header file stdio.h... (cached) yes
> Checking for C library sndfile... (cached) yes
> Checking for C library pthread... (cached) yes
> CONFIGURATION DECISION: Building with MP3 support
> CONFIGURATION DECISION: No Wiimote support
> CONFIGURATION DECISION: No P5 Glove support
> Checking for pthread_barrier_init(0, 0, 0) in C library pthread...
> (cached) no
> Checking for int n = omp_get_num_threads() in C++ library gomp... no
> Checking for __sync_lock_test_and_set((int32_t *)0, 0) in C library
> m... no
> Checking for C++ header file frontends/CsoundVST/vstsdk2.4/public.sdk/
> source/vst2.x/audioeffectx.h... no
> Checking for C header file portaudio.h... yes
> Checking for C header file portmidi.h... yes
> Checking for C++ header file FL/Fl.H... yes
> Checking for C++ header file FL/Fl_Spinner.H... yes
> Checking for C++ header file boost/any.hpp... yes
> Checking for C++ header file gmm/gmm.h... yes
> Checking for C library asound... no
> Checking for C library lo... yes
> Checking for MusicXML2::SXMLFile f = MusicXML2::TXMLFile::create()  
> in C
> ++ library musicxml2... no
> Checking for C header file jack/jack.h... yes
> Checking for C header file pulse/simple.h... no
> Checking for C++ header file Opcodes/stk/include/Stk.h... no
> Checking for C header file m_pd.h... yes
> Checking for C header file tcl.h... yes
> Checking for C header file zlib.h... yes
> Checking for C++ header file funknown.h... no
> Checking for C header file lua.h... no
> Checking for SWIG... yes
> Python Version: 2.6
> Checking for C header file Python.h... no
> Checking for C header file /Library/Frameworks/Python.framework/
> Headers/Python.h... yes
> Checking for C++ header file /System/Library/Frameworks/
> JavaVM.framework/Headers/jni.h... yes
> Checking for C header file io.h... no
> 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... yes
> Checking for C header file values.h... no
> Checking for C header file sys/socket.h... yes
> Checking for libsndfile version 1.0.16 or later... yes
> CONFIGURATION DECISION: Building with new parser enabled
> CONFIGURATION DECISION: Not building with new parser debugging
> CONFIGURATION DECISION: Building dynamic Csound library
> CONFIGURATION DECISION: Building Csound C++ interface library.
> CONFIGURATION DECISION: Not building Lua wrapper to Csound C++
> interface library.
> CONFIGURATION DECISION: Building Java wrapper to Csound C++ interface
> library.
> LangSubDir: java
> Search paths:
>    ./
>    ./
>    ./H/
>    /usr/include/malloc/
>    /opt/local/include/boost-1_32//
>    /usr/local/include/
>    /usr/local/include/
>    interfaces/
>    ./swig_lib/java/
>    /usr/share/swig/1.3.31/java/
>    ./swig_lib/
>    /usr/share/swig/1.3.31/
> Preprocessing...
> ./H/csound.h:1420: Error: Unable to find 'libkern/OSAtomic.h'
>
> ===========
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net