[Csnd] csound build on osx 10.6.3
Date | 2010-06-14 13:52 |
From | Raoul |
Subject | [Csnd] csound build on osx 10.6.3 |
Hello all, I try to build the latest csound5.12.1 on OSX 10.6.3 too, but i get the following errors: scons: Reading SConscript files ... ... 1. scons: warning: The Options class is deprecated; use the Variables class instead. USELESS??? File "/.../csound5.12.1/SConstruct", line 74, in |
Date | 2010-06-14 14:33 |
From | Victor Lazzarini |
Subject | [Csnd] Re: csound build on osx 10.6.3 |
Get the latest code from CVS and then try again. Victor On 14 Jun 2010, at 13:52, Raoul wrote: > > Hello all, > > I try to build the latest csound5.12.1 on OSX 10.6.3 too, > but i get the following errors: > > scons: Reading SConscript files ... > > ... > > 1. scons: warning: The Options class is deprecated; use the > Variables class instead. > USELESS??? > > File "/.../csound5.12.1/SConstruct", line 74, in |
Date | 2010-06-14 14:45 |
From | k_o_m_p |
Subject | [Csnd] Re: csound build on osx 10.6.3 |
I gathered some information from the last emails from Victor. Here's a
short report/instructions that might help you: 1. I used the documents from the manual: http://www.csounds.com/manual/html/BuildingCsound.html and from Anthony Kozar: http://www.anthonykozar.net/csound-macosx/buildingforleopard.html Follow the instructions there and make these changes: 2. change in the file SConstruct OSXSystemPythonVersions = { 0:0, 1:0, 2:2, 3:3, 4:3, 5:5 } to OSXSystemPythonVersions = { 0:0, 1:0, 2:2, 3:3, 4:3, 5:5, 6:6 } 3. do not install python unless you really need it (it should be a version for x86_64) 4. build portaudio using this file (this is the only one that works for me): http://www.portaudio.com/archives/pa_snapshot.tgz 5. I used these flags to run scons: sudo scons buildOSC=1 buildPythonOpcodes=0 useOSC=1 buildLoris=0 dynamicCsoundLibrary=1 buildUtilities=1 usePortAudio=1 useCoreAudio=1 buildNewParser=0 useGettext=1 6. set the opcodedir variable on your terminal: setenv OPCODEDIR /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes Csound is should now be working. I just have the problem of not being able to use portaudio and portmidi correctly. Portmidi doesn't install correctly, I stil don't know why. I'll keep trying. Hope this helps, Luís Raoul schrieb: Hello all, I try to build the latest csound5.12.1 on OSX 10.6.3 too, but i get the following errors: scons: Reading SConscript files ... ... 1. scons: warning: The Options class is deprecated; use the Variables class instead. USELESS??? File "/.../csound5.12.1/SConstruct", line 74, in <module> Using options from 'custom.py.' Build platform is 'darwin'. SCons tools on this platform: ['default', 'applelink', 'gcc', 'g++', 'gfortran', 'as', 'ar', 'CVS', 'filesystem', 'dvipdf', 'dvips', 'gs', 'jar', 'javac', 'javah', 'latex', 'lex', 'm4', 'pdflatex', 'pdftex', 'RCS', 'rmic', 'rpcgen', 'swig', 'tar', 'tex', 'yacc', 'zip'] Checking for C header file libintl.h... no CONFIGURATION DECISION: Using single-precision floating point for audio samples. 2. Mac OS X version 10.6 KeyError: 6: File "/.../csound5.12.1/SConstruct", line 610: sysPyVers = OSXSystemPythonVersions[OSXvers] Please, can you tell me what to do. Am i messing something here? Thanks in advance. Raoul rmgls@free.fr Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" --
[new adress] luis antunes pena c/o Internationales Kuenstlerhaus Villa Concordia D-96049 Bamberg (Germany) http://sumtone.com http://ixherculean.com +49 (0)176 968 09 867 skype: antunespena |
Date | 2010-06-14 15:01 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: csound build on osx 10.6.3 |
Two comments: 2. -> if you get the latest CVS, you don't need to edit SConstruct 3. -> if you add: buildRelease=1 you don't need to set the OPCODEDIR (it will default to the correct one) Also: if you want optimisation, with the latest CVS (only) use the option gcc4opt=x86_64 this should turn up the optimisations for that platform (the code will at least twice as fast). Victor On 14 Jun 2010, at 14:45, k_o_m_p wrote:
|
Date | 2010-06-14 17:56 |
From | k_o_m_p |
Subject | [Csnd] Re: Re: Re: csound build on osx 10.6.3 |
Thanks, its building correctly for me now. The only thing I have to solve is the portmidi issue. When compiling with usePortMIDI=1 scons returns this error: ld: warning: in /usr/local/lib/libportmidi.dylib, missing required architecture x86_64 in file Undefined symbols: "_Pm_Poll", referenced from: _ReadMidiData_ in pmidi.os _OpenMidiInDevice_ in pmidi.os "_Pm_GetDefaultInputDeviceID", referenced from: _OpenMidiInDevice_ in pmidi.os "_Pt_Stop", referenced from: _stop_portmidi in pmidi.os "_Pm_OpenOutput", referenced from: _OpenMidiOutDevice_ in pmidi.os "_Pm_GetDefaultOutputDeviceID", referenced from: _OpenMidiOutDevice_ in pmidi.os "_Pm_Terminate", referenced from: _stop_portmidi in pmidi.os "_Pm_CountDevices", referenced from: _portMidi_listDevices in pmidi.os _portMidi_listDevices in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os "_Pm_OpenInput", referenced from: _OpenMidiInDevice_ in pmidi.os "_Pm_Write", referenced from: _WriteMidiData_ in pmidi.os "_Pt_Start", referenced from: _start_portmidi in pmidi.os "_Pm_Initialize", referenced from: _start_portmidi in pmidi.os "_Pm_Close", referenced from: _CloseMidiOutDevice_ in pmidi.os _CloseMidiInDevice_ in pmidi.os "_Pm_GetErrorText", referenced from: _OpenMidiOutDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os "_Pm_SetFilter", referenced from: _OpenMidiInDevice_ in pmidi.os "_Pm_Read", referenced from: _ReadMidiData_ in pmidi.os _OpenMidiInDevice_ in pmidi.os "_Pm_GetDeviceInfo", referenced from: _portMidi_listDevices in pmidi.os _portMidi_listDevices in pmidi.os _portMidi_listDevices in pmidi.os _portMidi_listDevices in pmidi.os _portMidi_listDevices in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiOutDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os _OpenMidiInDevice_ in pmidi.os ld: symbol(s) not found collect2: ld returned 1 exit status scons: *** [libpmidi.dylib] Error 1 scons: building terminated because of errors. Luís Victor Lazzarini schrieb: > Two comments: > > 2. -> if you get the latest CVS, you don't need to edit SConstruct > > 3. -> if you add: buildRelease=1 you don't need to set the OPCODEDIR > (it will default to the correct one) > > > Also: if you want optimisation, with the latest CVS (only) use the option > > gcc4opt=x86_64 > > this should turn up the optimisations for that platform (the code will > at least twice as fast). > > Victor > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-06-14 18:06 |
From | Steven Yi |
Subject | [Csnd] Re: Re: Re: Re: csound build on osx 10.6.3 |
Hi Luis, It's another architecture issue: ld: warning: in /usr/local/lib/libportmidi.dylib, missing required architecture x86_64 in file the libportmidi you have installed does not have the x86_64 architecture built. You can check what architectures a file has by calling: file /usr/local/lib/libportmidi.dylib my guess is that is has i386 and maybe ppc. If you built libportmidi yourself, you can add "-arch x86_64" to the build if it does not have an option for setting that in its build files. Hope that helps! steven On Mon, Jun 14, 2010 at 12:56 PM, k_o_m_p |
Date | 2010-06-14 18:09 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: Re: csound build on osx 10.6.3 |
Try getting the latest portmidi.zip and substituting the line set(CMAKE_OSX_ARCHITECTURES i386 ppc CACHE STRING "do not build for 64- bit" FORCE) by set(CMAKE_OSX_ARCHITECTURES i386 ppc x86_64 CACHE STRING "do not build for 64-bit" FORCE) in CMakeLists.txt and then build portmidi. Victor On 14 Jun 2010, at 17:56, k_o_m_p wrote: > Thanks, its building correctly for me now. The only thing I have to > solve is the portmidi issue. When compiling with usePortMIDI=1 scons > returns this error: > > ld: warning: in /usr/local/lib/libportmidi.dylib, missing required > architecture x86_64 in file > Undefined symbols: > "_Pm_Poll", referenced from: > _ReadMidiData_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > "_Pm_GetDefaultInputDeviceID", referenced from: > _OpenMidiInDevice_ in pmidi.os > "_Pt_Stop", referenced from: > _stop_portmidi in pmidi.os > "_Pm_OpenOutput", referenced from: > _OpenMidiOutDevice_ in pmidi.os > "_Pm_GetDefaultOutputDeviceID", referenced from: > _OpenMidiOutDevice_ in pmidi.os > "_Pm_Terminate", referenced from: > _stop_portmidi in pmidi.os > "_Pm_CountDevices", referenced from: > _portMidi_listDevices in pmidi.os > _portMidi_listDevices in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > "_Pm_OpenInput", referenced from: > _OpenMidiInDevice_ in pmidi.os > "_Pm_Write", referenced from: > _WriteMidiData_ in pmidi.os > "_Pt_Start", referenced from: > _start_portmidi in pmidi.os > "_Pm_Initialize", referenced from: > _start_portmidi in pmidi.os > "_Pm_Close", referenced from: > _CloseMidiOutDevice_ in pmidi.os > _CloseMidiInDevice_ in pmidi.os > "_Pm_GetErrorText", referenced from: > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > "_Pm_SetFilter", referenced from: > _OpenMidiInDevice_ in pmidi.os > "_Pm_Read", referenced from: > _ReadMidiData_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > "_Pm_GetDeviceInfo", referenced from: > _portMidi_listDevices in pmidi.os > _portMidi_listDevices in pmidi.os > _portMidi_listDevices in pmidi.os > _portMidi_listDevices in pmidi.os > _portMidi_listDevices in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiOutDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > _OpenMidiInDevice_ in pmidi.os > ld: symbol(s) not found > collect2: ld returned 1 exit status > scons: *** [libpmidi.dylib] Error 1 > scons: building terminated because of errors. > > Luís > > Victor Lazzarini schrieb: >> Two comments: >> >> 2. -> if you get the latest CVS, you don't need to edit SConstruct >> >> 3. -> if you add: buildRelease=1 you don't need to set the >> OPCODEDIR (it will default to the correct one) >> >> >> Also: if you want optimisation, with the latest CVS (only) use the >> option >> >> gcc4opt=x86_64 >> >> this should turn up the optimisations for that platform (the code >> will at least twice as fast). >> >> Victor >> > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |