[Cs-dev] Csound output from API on windows was Re: Using the C++ api on Windows with mingw
Date | 2008-09-02 22:40 |
From | Jim Bates |
Subject | [Cs-dev] Csound output from API on windows was Re: Using the C++ api on Windows with mingw |
Attachments | None None |
I know this should be on a separate thread, bur Andrés was good enough to forward this to me, so here's my two cents. I've been running Csound64 on MacOSX_10.4.11, ppc, for a month now. It runs alongside of the regular floats version, as a separate /Library/Framework is compiled (CsoundLib64.Framework, as opposed to CsoundLib.framework) It runs with 1404 Opcodes (nearly 100 more than the last release of Csound5 I had installed, including the ATS, OSC, STK and Fluid Opcodes. I only had to modify the SCons file regarding how it checked my Python installation. The main points for compiling it on Mac are these: 1.) the scons command must be run as root (sudo su, password..), since it is linking with installed libraries and such in the BSD sub-system, and otherwise you get a "permission denied" error message, or it simply won't even start to compile. 2.) the custom.py file needs minimal modification, mainly in the top lines, with everything else commented out with #'s. The only lines I had were lines 22-25= if sys.platform == 'darwin': platform = 'darwin' customCPPPATH.append('/usr/include/malloc') customCPPPATH.append('/usr/local/include/boost-1_35/') (This, only because I have Boost installed, in an attempt to compile CsoundAC, which I haven't been able to do, yet...) I commented out the 'Linux if' and changed the "elif Darwin" to "if Darwin". No other changes seemed to make much of a difference (at least on my system) 3.) running the following scons command= scons useDouble=1 Lib64=1 dynamicCsoundLibrary=1 buildStkOpcodes=1 useAltivec=1 buildInterfaces=1 buildCsound5GUI=1 useOSC=1 buildJavaWrapper=1 buildPythonOpcodes=1 useALSA=0 buildLoris=1 usePortAudio=0 buildVirtual=1 buildRelease=1 --keep-going will compile about 48 csound lib.dll files. It would compile 51 IF you have installed the STK and Loris sources in their respective folders in the Opcodes folder. A word of warning—everytime you run the scons command, it not only build the CsoundLib.framework inside the source folder, but copies it to your /Library/Frameworks folder as well. Which goes both ways=I've had my "51 lib64 version of Csound" dwindle down to an install of 30, even though I never touched it! Scons has no reluctance to changing it. So...if you've build up to 48-50, and you're trying to re-compile to get some other Opcodes to compile, copy your framework over to somewhere safe for a backup. You may need it! I hope this helps. All the Best, Jim Bates |