[CSOUND-DEV:3174] any luck compiling Csound 4 on MacOS X?
Date | 2003-10-19 19:20 |
From | Hans-Christoph Steiner |
Subject | [CSOUND-DEV:3174] any luck compiling Csound 4 on MacOS X? |
I was wondering whether anyone had any luck compiling Csound4 out of CVS on MacOS X. I still haven't gotten past the _main linker error. I think its probably something to do with jpff_glue, since there is stuff about main() in there, but I could be wrong. Here's my Makefile for MacOS X (also on this page is an older binary that I packaged as a MacOS X installer): http://at.or.at/hans/misc/csound/ .hc ________________________________________________________________________ ____ "[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore |
Date | 2003-10-19 19:45 |
From | John ffitch |
Subject | [CSOUND-DEV:3175] Re: any luck compiling Csound 4 on MacOS X? |
I have compiled on OSX with the sources which were placed on the CVS. What optionas are you using, and j=how does your Makefile differ from mine? On Sun, 19 Oct 2003, Hans-Christoph Steiner wrote: > > I was wondering whether anyone had any luck compiling Csound4 out of > CVS on MacOS X. I still haven't gotten past the _main linker error. I > think its probably something to do with jpff_glue, since there is stuff > about main() in there, but I could be wrong. > There is no main definded in jpff_glue if you have the mill_macintosh option (which is OS9) or if you have the FLTK GUI which OI do not recommend as it is very slow. I have DEFINES = -DSFIRCAM -DSYS5 -DWINDOWS -DMACOSX -DPIPES -DMACROS -DRTAUDIO Mu mac is not on at present (and the cat is sitting on me making typing a little hard....) ==John ff |
Date | 2003-10-20 00:20 |
From | stevenyi |
Subject | [CSOUND-DEV:3177] Re: any luck compiling Csound 4 on MacOS X? |
Hi Hans, (or is it more appropriate as Hans-Christoph?) I ended up starting from Makefile.lnx and mostly copying over values from Makefile.macosx to get going. I also got to the _main not linking, but found something in jpff_glue.c that was usable. The code starts at line 37 and is encased in an embedded set of #ifdef's. The code is: #if !defined(CWIN) && !defined(MACOSX) extern OPARMS O_; extern GLOBALS cglob_; void csoundMessage(void *, const char *, ...); extern void remove_tmpfiles(void); /* IV - Oct 31 2002 */ #if !defined(FLTK_GUI) && !defined(mills_macintosh) int main(int argc, char **argv) { extern int csoundMain(void*, int, char**); O = O_; cglob = cglob_; atexit(remove_tmpfiles); /* IV - Oct 31 2002 */ return csoundMain(NULL, argc, argv); } #endif #endif If you remove both set's of #ifdefs then the code will compile in this main function. After doing so, I got passed compiling csound but the make process died in the utilities section. I didn't try past that as I was just wanting to find the _main. This seems to work, and the binary that was generated runs, though I haven't tested it with any files. (running csound by itself, correctly received the usage message). Probably not the correct solution, but works. Hopefully should get you a bit further(and perhaps the code above needs to be revisited). steven |
Date | 2003-10-20 03:00 |
From | "Robert McNulty Junior" |
Subject | [CSOUND-DEV:3176] Csound on Cygwin |
I have compiled Csound on Cygwin. When I get to widgets.cpp, I get the following errors: In file included from InOut/widgets.cpp:81: H/cs.h:838:1: warning: "__cdecl" redefined |
Date | 2003-10-23 04:55 |
From | Hans-Christoph Steiner |
Subject | [CSOUND-DEV:3204] Re: any luck compiling Csound 4 on MacOS X? |
On Sunday, Oct 19, 2003, at 14:45 America/New_York, John ffitch wrote: > I have compiled on OSX with the sources which were placed on the CVS. > What optionas are you using, and j=how does your Makefile differ from > mine? > Here's my Makefile: http://at.or.at/hans/misc/csound/Makefile.macosx The diff is substanial because I removed all references to va_ppc.h, which isn't used with gcc >= 3. I also added CoreAudio. > On Sun, 19 Oct 2003, Hans-Christoph Steiner wrote: > >> >> I was wondering whether anyone had any luck compiling Csound4 out of >> CVS on MacOS X. I still haven't gotten past the _main linker error. >> I >> think its probably something to do with jpff_glue, since there is >> stuff >> about main() in there, but I could be wrong. >> > > There is no main definded in jpff_glue if you have the mill_macintosh > option (which is OS9) or if you have the FLTK GUI which OI do not > recommend as it is very slow. > > I have DEFINES = -DSFIRCAM -DSYS5 -DWINDOWS -DMACOSX -DPIPES -DMACROS > -DRTAUDIO > > Mu mac is not on at present (and the cat is sitting on me making > typing a > little hard....) > > ==John ff > Steven had the winning answer: on line 37 of jpff_glue.c, change this line made it work: #if !defined(CWIN) && !defined(MACOSX) This is what I used: #if !defined(CWIN) && defined(MACOSX) .hc ________________________________________________________________________ ____ Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams |
Date | 2003-10-23 05:09 |
From | Lex Stein |
Subject | [CSOUND-DEV:3205] Re: any luck compiling Csound 4 on MacOS X? |
Hi, Shouldn't the .configure script be able to detect and deal with gcc 3. ie. Maybe there should be a #ifdef around the va_ppc.h #include that is set in the makefile (a -DFLAG to gcc) by the configure script that generates the makefile. Lex On Wed, 22 Oct 2003, Hans-Christoph Steiner wrote: > > On Sunday, Oct 19, 2003, at 14:45 America/New_York, John ffitch wrote: > > > I have compiled on OSX with the sources which were placed on the CVS. > > What optionas are you using, and j=how does your Makefile differ from > > mine? > > > > Here's my Makefile: http://at.or.at/hans/misc/csound/Makefile.macosx > The diff is substanial because I removed all references to va_ppc.h, > which isn't used with gcc >= 3. I also added CoreAudio. > > > On Sun, 19 Oct 2003, Hans-Christoph Steiner wrote: > > > >> > >> I was wondering whether anyone had any luck compiling Csound4 out of > >> CVS on MacOS X. I still haven't gotten past the _main linker error. > >> I > >> think its probably something to do with jpff_glue, since there is > >> stuff > >> about main() in there, but I could be wrong. > >> > > > > There is no main definded in jpff_glue if you have the mill_macintosh > > option (which is OS9) or if you have the FLTK GUI which OI do not > > recommend as it is very slow. > > > > I have DEFINES = -DSFIRCAM -DSYS5 -DWINDOWS -DMACOSX -DPIPES -DMACROS > > -DRTAUDIO > > > > Mu mac is not on at present (and the cat is sitting on me making > > typing a > > little hard....) > > > > ==John ff > > > > Steven had the winning answer: on line 37 of jpff_glue.c, change this > line made it work: > > #if !defined(CWIN) && !defined(MACOSX) > > This is what I used: > > #if !defined(CWIN) && defined(MACOSX) > > .hc > > ________________________________________________________________________ > ____ > > Man has survived hitherto because he was too ignorant to know how to > realize his wishes. > Now that he can realize them, he must either change them, or perish. > -William Carlos Williams > > Lex -- Lex Stein http://www.eecs.harvard.edu/~stein/ stein@eecs.harvard.edu cell: 617-233-0246 |
Date | 2003-10-23 20:50 |
From | Hans-Christoph Steiner |
Subject | [CSOUND-DEV:3216] Re: any luck compiling Csound 4 on MacOS X? |
Yes, a autoconf configure script can handle this. But I am working with Csound4, which doesn't use autoconf. Only Csound AFAIK. I am working from the SourceForge CVS. .hc On Thursday, Oct 23, 2003, at 00:09 America/New_York, Lex Stein wrote: > > Hi, Shouldn't the .configure script be able to detect and deal with > gcc 3. > ie. Maybe there should be a #ifdef around the va_ppc.h #include that > is > set in the makefile (a -DFLAG to gcc) by the configure script that > generates the makefile. > > Lex > > On Wed, 22 Oct 2003, Hans-Christoph Steiner wrote: > >> >> On Sunday, Oct 19, 2003, at 14:45 America/New_York, John ffitch wrote: >> >>> I have compiled on OSX with the sources which were placed on the CVS. >>> What optionas are you using, and j=how does your Makefile differ from >>> mine? >>> >> >> Here's my Makefile: http://at.or.at/hans/misc/csound/Makefile.macosx >> The diff is substanial because I removed all references to va_ppc.h, >> which isn't used with gcc >= 3. I also added CoreAudio. >> >>> On Sun, 19 Oct 2003, Hans-Christoph Steiner wrote: >>> >>>> >>>> I was wondering whether anyone had any luck compiling Csound4 out of >>>> CVS on MacOS X. I still haven't gotten past the _main linker error. >>>> I >>>> think its probably something to do with jpff_glue, since there is >>>> stuff >>>> about main() in there, but I could be wrong. >>>> >>> >>> There is no main definded in jpff_glue if you have the mill_macintosh >>> option (which is OS9) or if you have the FLTK GUI which OI do not >>> recommend as it is very slow. >>> >>> I have DEFINES = -DSFIRCAM -DSYS5 -DWINDOWS -DMACOSX -DPIPES -DMACROS >>> -DRTAUDIO >>> >>> Mu mac is not on at present (and the cat is sitting on me making >>> typing a >>> little hard....) >>> >>> ==John ff >>> >> >> Steven had the winning answer: on line 37 of jpff_glue.c, change this >> line made it work: >> >> #if !defined(CWIN) && !defined(MACOSX) >> >> This is what I used: >> >> #if !defined(CWIN) && defined(MACOSX) >> >> .hc >> >> ______________________________________________________________________ >> __ >> ____ >> >> Man has survived hitherto because he was too ignorant to know how to >> realize his wishes. >> Now that he can realize them, he must either change them, or perish. >> -William Carlos Williams >> >> > > > Lex > > -- > Lex Stein http://www.eecs.harvard.edu/~stein/ > stein@eecs.harvard.edu cell: 617-233-0246 > ________________________________________________________________________ ____ Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams |