Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound4.23f13 CVS

Date2005-07-27 08:17
FromDavid Akbari
Subject[Cs-dev] Csound4.23f13 CVS
Hi List,

I seem to be having an error compiling the last released version from 
CVS. At the console it errors out with:

ld: Undefined symbols:
_main
_playopen_
_recopen_
_rtclose_
_rtplay_
_rtrecord_
scons: *** [csound/csound] Error 1
scons: building terminated because of errors.

A verbose output of teh console can be viewed here:

http://csounds.com/akbari/423_errout.txt

Could this just be a user error??


-David



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-27 18:47
FromAnthony Kozar
SubjectRe: [Cs-dev] Csound4.23f13 CVS
AttachmentsMakefile  
I assume that you are on OS X.  Much like the Makefile in CVS, the scons
build system does not seem to be including the correct files and flags in
the build for getting real-time audio on OS X.

For 4.23f13, you have three choices of build system:  the new scons system,
the old makefile system, and the GBS (GNU build system) version.  Compiling
the GBS system is easiest; just download the source package from Sourceforge
and ./configure, make, make install.  However, real-time audio is very
problematic in this version.  (But it is the only version for which FLTK
works).

I have never used the scons system, but I have fixed the makefile for OS X.
I've attached my OS X Makefile.  Just copy it to the csound/ subdirectory of
the CVS tree and type "make csound". ** (You can try just "make" if you want
to build the utilities too but I have not tested that).

The makefile produces a binary with good real-time audio, but only ascii
graphics are available.  (And no FLTK widgets -- they will not work when
csound is compiled this way on OS X).  The disadvantage of this version is
that it cannot produce a libcsound with a correctly working API.  But I am
guessing that does not matter for you.

Anthony Kozar
anthonykozar@sbcglobal.net
http://akozar.spymac.net/

** Oh, and you might want to clean your source tree of all the object files
created by scons before running make ...

On 7/27/05 3:17 AM, David Akbari  etched in stone:

> I seem to be having an error compiling the last released version from
> CVS. At the console it errors out with:
> 
> ld: Undefined symbols:
> _main
> _playopen_
> _recopen_
> _rtclose_
> _rtplay_
> _rtrecord_
> scons: *** [csound/csound] Error 1
> scons: building terminated because of errors.
> 
> A verbose output of teh console can be viewed here:
> 
> http://csounds.com/akbari/423_errout.txt
> 
> Could this just be a user error??


Date2005-07-28 21:17
FromDavid Akbari
SubjectRe: [Cs-dev] Csound4.23f13 CVS
Thanks a ton for this Anthony!

I was just trying to build the ATS opcodes as part of Csound4 -- your 
makefile helps in this pursuit.

I am grateful you sent this! Why is this not in teh CVS??


-David

On Jul 27, 2005, at 1:47 PM, Anthony Kozar wrote:

> I assume that you are on OS X.  Much like the Makefile in CVS, the 
> scons
> build system does not seem to be including the correct files and flags 
> in
> the build for getting real-time audio on OS X.
>
> For 4.23f13, you have three choices of build system:  the new scons 
> system,
> the old makefile system, and the GBS (GNU build system) version.  
> Compiling
> the GBS system is easiest; just download the source package from 
> Sourceforge
> and ./configure, make, make install.  However, real-time audio is very
> problematic in this version.  (But it is the only version for which 
> FLTK
> works).
>
> I have never used the scons system, but I have fixed the makefile for 
> OS X.
> I've attached my OS X Makefile.  Just copy it to the csound/ 
> subdirectory of
> the CVS tree and type "make csound". ** (You can try just "make" if 
> you want
> to build the utilities too but I have not tested that).
>
> The makefile produces a binary with good real-time audio, but only 
> ascii
> graphics are available.  (And no FLTK widgets -- they will not work 
> when
> csound is compiled this way on OS X).  The disadvantage of this 
> version is
> that it cannot produce a libcsound with a correctly working API.  But 
> I am
> guessing that does not matter for you.
>
> Anthony Kozar
> anthonykozar@sbcglobal.net
> http://akozar.spymac.net/
>
> ** Oh, and you might want to clean your source tree of all the object 
> files
> created by scons before running make ...
>
> On 7/27/05 3:17 AM, David Akbari  etched in stone:
>
>> I seem to be having an error compiling the last released version from
>> CVS. At the console it errors out with:
>>
>> ld: Undefined symbols:
>> _main
>> _playopen_
>> _recopen_
>> _rtclose_
>> _rtplay_
>> _rtrecord_
>> scons: *** [csound/csound] Error 1
>> scons: building terminated because of errors.
>>
>> A verbose output of teh console can be viewed here:
>>
>> http://csounds.com/akbari/423_errout.txt
>>
>> Could this just be a user error??
>
> 



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-29 07:22
FromAnthony Kozar
SubjectRe: [Cs-dev] Csound4.23f13 CVS
On 7/28/05 4:17 PM, David Akbari  etched in stone:

> Thanks a ton for this Anthony!
> 
> I was just trying to build the ATS opcodes as part of Csound4 -- your
> makefile helps in this pursuit.
> 
> I am grateful you sent this! Why is this not in teh CVS??

Dunno.  There has not been a makefile for OS X in Cs4 CVS that has worked
for me for quite some time.  Seeing as I have sent my makefile to three
different people recently, perhaps I should replace the one that is in CVS?
(Though changes to the directory structure mean that it cannot build the
utilities without more work).  No one else seems to be building Csound 4
with makefiles ...

Did you get the ATS opcodes to work?  I could help with editing the makefile
if you need it.


BTW, I have been experiencing some major problems with my OS X build of
4.23f13.  AIFF and WAVE files both end up with incorrect lengths in their
headers and Csound reports something like "inconsistent header size" as it
is writing it.  The files will then not play in any program I have.

I also just discovered that a bunch of very important byte-swapping code in
diskin.c, soundin.c, and sfont.c is no longer being included in the OS X
console build because of changes to the preprocessor tests (MACOSX was
replaced with MAC).  This means that diskin, soundin, and soundfonts should
all be broken in this version on OS X (but I have not confirmed it yet).
And the situation cannot be fixed by adding -DMAC to the compiler flags in
the makefile because that will then include references to code for creating
SoundDesigner II files that does not exist in the Csound 4 CVS repository.

David, have you experienced the problem with creating AIFF and WAVE files or
have you tested diskin or soundin with your 4.23f13??

Even though I just mentioned how no one is fixing Cs4 anymore, it seems that
these newly-created problems will have to be fixed ...

(BTW, is anyone seeing to the fact in Cs5 that we can no longer assume that
OS X is big endian?  There may already be a problem if anyone tries to
compile Csound 4 or 5 on Darwin x86 -- the open source Unix for Intel based
on OS X).


Anthony Kozar
anthonykozar@sbcglobal.net
http://akozar.spymac.net/



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net