Csound Csound-dev Csound-tekno Search About

Csound sources [linux-ppc][osx] questions

Date2006-03-15 17:34
Fromshreeswifty
SubjectCsound sources [linux-ppc][osx] questions
Hey kids

i am wondering where to find Csound5 sources for linux-ppc? I 
would like to run Csound5 on my G4 running ubuntu linux.

Also, is there a way to specify a particular audio device on OSX?
i still would like to use my emi 2|6 with csound if possible.

ON osx, I have tested Improsculpt with the latest Csound5 and the 
latency is slightly better than before.


Patrick Pagano,M.F.A
Digital Media Specialist
Digital Worlds Institute
University Of Florida
(352) 294-2082

Date2006-03-15 19:43
FromAnthony Kozar
SubjectRe: Csound sources [linux-ppc][osx] questions
You will want the generic source package from the Sourceforge site
(Csound5.00_src_all.tar.gz).

Unfortunately, I do not think that the build script (SConstruct) is designed
to compile for Linux on any platform but x86.  Most especially, the linux
build code assumes a little-endian system, and PPC is big-endian.

Before you build, make sure that you have a relatively recent libsndfile
(with its dev package) installed (1.0.11 or later, 1.0.13 or later if you
want looping oscillators to work).  If you have to build your own libsndfile
then make sure that it configures itself for a big-endian system.  (I think
the configure script will tell you).  If you install any other optional
Csound dependencies, you need to make sure that they also compile for
big-endianness.

Then before running the Csound scons script, add the following to the
custom.py file:

    customCCFLAGS.append('-DWORDS_BIGENDIAN=1')
    customCXXFLAGS.append('-DWORDS_BIGENDIAN=1')

below the line:
    platform = 'linux'

with the same indentation.

If you have Csound build the new STK opcodes for you, then you will need to
modify line 1403 of SConstruct (or thereabouts, I'm using current CVS) from

  stkEnvironment.Append(CCFLAGS = '-D__OS_LINUX__ -D__LITTLE_ENDIAN__')

to 

  stkEnvironment.Append(CCFLAGS = '-D__OS_LINUX__ -D__BIG_ENDIAN__')


These may not be the only changes necessary but they are the most obvious
ones to me.  Please let us know how it all turns out.  I have been thinking
of attempting to build on linux-ppc myself, and I would be happy to help you
get it working.  (I have Mandrake 9.1 installed on my G3 here).

Good luck.

Anthony Kozar
anthonykozar AT sbcglobal DOT net


shreeswifty wrote on 3/15/06 12:34 PM:

> i am wondering where to find Csound5 sources for linux-ppc? I
> would like to run Csound5 on my G4 running ubuntu linux.

Date2006-03-15 20:02
FromIstvan Varga
SubjectRe: Csound sources [linux-ppc][osx] questions
AttachmentsNone  

Date2006-03-15 20:25
FromAnthony Kozar
SubjectRe: Csound sources [linux-ppc][osx] questions
Yes this probably is a bug on OS X!  I recently discovered that the sfont
library opcodes were crashing on MacOS 9 and it was because I failed to
define WORDS_BIGENDIAN.

Is there really no other endian reliant code in Csound anymore?  What about
the utilities and the file formats that they read/write?

Also, I believe that libsndfile may have a bug related to writing Ircam
files.  I am not sure what the bug is yet, but it might be endian-related.
(Ircam files are not endian-independent).  Either that or the sound file
player that I am trying to play them with is buggy (very possible too).

Anthony Kozar
anthonykozar AT sbcglobal DOT net


Istvan Varga wrote on 3/15/06 3:02 PM:

> That should not really matter in most cases, with the exception of the STK
> and possibly the Maldonado SoundFont opcodes. The latter needs WORDS_BIGENDIAN
> to be defined (note that this macro is not defined anywhere in SConstruct,
> even on OS X - a possible bug ?).

Date2006-03-15 20:36
FromIstvan Varga
SubjectRe: Csound sources [linux-ppc][osx] questions
AttachmentsNone