Csound Csound-dev Csound-tekno Search About

[Cs-dev] SConstruct broken on OSX

Date2008-04-01 10:45
FromVictor Lazzarini
Subject[Cs-dev] SConstruct broken on OSX
I can't build Csound on OSX anymore. I tried to debug SConstruct, but it
is not giving me too many clues. All I get from

scons dynamicCsoundLibrary=1

after the basic framework has been built and copied to 
/Library/Frameworks/CsoundLib.framework
and the utilities are starting to be built is

scons: *** 'list' object has no attribute 'startswith'

and scons exits with errors. This happens after the compilation of
sdif2adsyn.o

I can't trace the problem, because I don't know which one is the list
in question. Any suggestions?

Victor
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-01 11:46
FromDavidW
SubjectRe: [Cs-dev] SConstruct broken on OSX
I just did a new cvs and then immediately issued your command.
I get a different error (I'm on Intel 10.5.2 under python 2.5.2)
> gcc -o Opcodes/dssi4cs/src/load.os -c -DNOGETTEXT -g -DMACOSX - 
> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H - 
> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H - 
> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/ 
> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include  
> Opcodes/dssi4cs/src/load.c
> gcc -o Opcodes/dssi4cs/src/dssi4cs.os -c -DNOGETTEXT -g -DMACOSX - 
> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H - 
> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H - 
> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/ 
> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include  
> Opcodes/dssi4cs/src/dssi4cs.c
> In file included from Opcodes/dssi4cs/src/dssi4cs.h:23,
>                  from Opcodes/dssi4cs/src/dssi4cs.c:23:
> Opcodes/dssi4cs/src/dssi.h:28:28: error: alsa/seq_event.h: No such  
> file or directory
>

at which point it blows up.

I tried this with a scons -c first. Same result.
Are you removing any other files b4 building?


D.

On 01/04/2008, at 8:45 PM, Victor Lazzarini wrote:
>
> I can't build Csound on OSX anymore. I tried to debug SConstruct,  
> but it
> is not giving me too many clues. All I get from
>
> scons dynamicCsoundLibrary=1
>
> after the basic framework has been built and copied to
> /Library/Frameworks/CsoundLib.framework
> and the utilities are starting to be built is
>
> scons: *** 'list' object has no attribute 'startswith'
>
> and scons exits with errors. This happens after the compilation of
> sdif2adsyn.o
>
> I can't trace the problem, because I don't know which one is the list
> in question. Any suggestions?
>
> Victor
> Victor Lazzarini

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-01 11:58
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct broken on OSX
That is also another problem: alsa/seq_event.h is a linux file
and not OSX. DSSI should probably not be built on OSX.

Victor

At 11:46 01/04/2008, you wrote:
>I just did a new cvs and then immediately issued your command.
>I get a different error (I'm on Intel 10.5.2 under python 2.5.2)
> > gcc -o Opcodes/dssi4cs/src/load.os -c -DNOGETTEXT -g -DMACOSX -
> > DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
> > DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -
> > DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
> > include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
> > Opcodes/dssi4cs/src/load.c
> > gcc -o Opcodes/dssi4cs/src/dssi4cs.os -c -DNOGETTEXT -g -DMACOSX -
> > DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
> > DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -
> > DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
> > include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
> > Opcodes/dssi4cs/src/dssi4cs.c
> > In file included from Opcodes/dssi4cs/src/dssi4cs.h:23,
> >                  from Opcodes/dssi4cs/src/dssi4cs.c:23:
> > Opcodes/dssi4cs/src/dssi.h:28:28: error: alsa/seq_event.h: No such
> > file or directory
> >
>
>at which point it blows up.
>
>I tried this with a scons -c first. Same result.
>Are you removing any other files b4 building?
>
>
>D.
>
>On 01/04/2008, at 8:45 PM, Victor Lazzarini wrote:
> >
> > I can't build Csound on OSX anymore. I tried to debug SConstruct,
> > but it
> > is not giving me too many clues. All I get from
> >
> > scons dynamicCsoundLibrary=1
> >
> > after the basic framework has been built and copied to
> > /Library/Frameworks/CsoundLib.framework
> > and the utilities are starting to be built is
> >
> > scons: *** 'list' object has no attribute 'startswith'
> >
> > and scons exits with errors. This happens after the compilation of
> > sdif2adsyn.o
> >
> > I can't trace the problem, because I don't know which one is the list
> > in question. Any suggestions?
> >
> > Victor
> > Victor Lazzarini
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-01 12:10
FromDavidW
SubjectRe: [Cs-dev] SConstruct broken on OSX
I'm trying to reproduce your error.... with
sudo scons dynamicCsoundLibrary=1 buildDSSI=0

I get a further but bomb at

> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon - 
> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/ 
> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack CsoundLib_install  
> -lpthread -lm
> i686-apple-darwin9-gcc-4.0.1: CsoundLib_install: No such file or  
> directory
> scons: *** [atsa] Error 1
> scons: building terminated because of errors.
>
with only a couple of deprecation warnings along the way.

D.

On 01/04/2008, at 9:58 PM, Victor Lazzarini wrote:
> That is also another problem: alsa/seq_event.h is a linux file
> and not OSX. DSSI should probably not be built on OSX.
>
> Victor
>
> At 11:46 01/04/2008, you wrote:
>> I just did a new cvs and then immediately issued your command.
>> I get a different error (I'm on Intel 10.5.2 under python 2.5.2)
>>> gcc -o Opcodes/dssi4cs/src/load.os -c -DNOGETTEXT -g -DMACOSX -
>>> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
>>> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H - 
>>> DHAVE_SYS_TYPES_H -
>>> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
>>> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
>>> Opcodes/dssi4cs/src/load.c
>>> gcc -o Opcodes/dssi4cs/src/dssi4cs.os -c -DNOGETTEXT -g -DMACOSX -
>>> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
>>> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H - 
>>> DHAVE_SYS_TYPES_H -
>>> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
>>> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
>>> Opcodes/dssi4cs/src/dssi4cs.c
>>> In file included from Opcodes/dssi4cs/src/dssi4cs.h:23,
>>>                 from Opcodes/dssi4cs/src/dssi4cs.c:23:
>>> Opcodes/dssi4cs/src/dssi.h:28:28: error: alsa/seq_event.h: No such
>>> file or directory
>>>
>>
>> at which point it blows up.
>>
>> I tried this with a scons -c first. Same result.
>> Are you removing any other files b4 building?
>>
>>
>> D.
>>
>> On 01/04/2008, at 8:45 PM, Victor Lazzarini wrote:
>>>
>>> I can't build Csound on OSX anymore. I tried to debug SConstruct,
>>> but it
>>> is not giving me too many clues. All I get from
>>>
>>> scons dynamicCsoundLibrary=1
>>>
>>> after the basic framework has been built and copied to
>>> /Library/Frameworks/CsoundLib.framework
>>> and the utilities are starting to be built is
>>>
>>> scons: *** 'list' object has no attribute 'startswith'
>>>
>>> and scons exits with errors. This happens after the compilation of
>>> sdif2adsyn.o
>>>
>>> I can't trace the problem, because I don't know which one is the  
>>> list
>>> in question. Any suggestions?
>>>
>>> Victor
>>> Victor Lazzarini
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

________________________________________________
David Worrall.
- Experimental Polymedia:	www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group:	creative.canberra.edu.au/scrg
- MARCS Auditory Laboratories: marcs.uws.edu.au




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-01 12:51
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct broken on OSX
CsoundLib_install is getting mixed up with library names. Not sure
why.

Victor

At 12:10 01/04/2008, you wrote:
>I'm trying to reproduce your error.... with
>sudo scons dynamicCsoundLibrary=1 buildDSSI=0
>
>I get a further but bomb at
>
> > gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
> > framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
> > usr/local/lib -L. -L. -lsndfile -lportaudio -ljack CsoundLib_install
> > -lpthread -lm
> > i686-apple-darwin9-gcc-4.0.1: CsoundLib_install: No such file or
> > directory
> > scons: *** [atsa] Error 1
> > scons: building terminated because of errors.
> >
>with only a couple of deprecation warnings along the way.
>
>D.
>
>On 01/04/2008, at 9:58 PM, Victor Lazzarini wrote:
> > That is also another problem: alsa/seq_event.h is a linux file
> > and not OSX. DSSI should probably not be built on OSX.
> >
> > Victor
> >
> > At 11:46 01/04/2008, you wrote:
> >> I just did a new cvs and then immediately issued your command.
> >> I get a different error (I'm on Intel 10.5.2 under python 2.5.2)
> >>> gcc -o Opcodes/dssi4cs/src/load.os -c -DNOGETTEXT -g -DMACOSX -
> >>> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
> >>> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -
> >>> DHAVE_SYS_TYPES_H -
> >>> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
> >>> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
> >>> Opcodes/dssi4cs/src/load.c
> >>> gcc -o Opcodes/dssi4cs/src/dssi4cs.os -c -DNOGETTEXT -g -DMACOSX -
> >>> DPIPES -fPIC -DHAVE_LIBSNDFILE=1016 -DSDFT -DBETA -DHAVE_FCNTL_H -
> >>> DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -
> >>> DHAVE_SYS_TYPES_H -
> >>> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/
> >>> include/malloc -I/opt/local/include/boost-1_32 -I/usr/local/include
> >>> Opcodes/dssi4cs/src/dssi4cs.c
> >>> In file included from Opcodes/dssi4cs/src/dssi4cs.h:23,
> >>>                 from Opcodes/dssi4cs/src/dssi4cs.c:23:
> >>> Opcodes/dssi4cs/src/dssi.h:28:28: error: alsa/seq_event.h: No such
> >>> file or directory
> >>>
> >>
> >> at which point it blows up.
> >>
> >> I tried this with a scons -c first. Same result.
> >> Are you removing any other files b4 building?
> >>
> >>
> >> D.
> >>
> >> On 01/04/2008, at 8:45 PM, Victor Lazzarini wrote:
> >>>
> >>> I can't build Csound on OSX anymore. I tried to debug SConstruct,
> >>> but it
> >>> is not giving me too many clues. All I get from
> >>>
> >>> scons dynamicCsoundLibrary=1
> >>>
> >>> after the basic framework has been built and copied to
> >>> /Library/Frameworks/CsoundLib.framework
> >>> and the utilities are starting to be built is
> >>>
> >>> scons: *** 'list' object has no attribute 'startswith'
> >>>
> >>> and scons exits with errors. This happens after the compilation of
> >>> sdif2adsyn.o
> >>>
> >>> I can't trace the problem, because I don't know which one is the
> >>> list
> >>> in question. Any suggestions?
> >>>
> >>> Victor
> >>> Victor Lazzarini
> >>
> >> -------------------------------------------------------------------------
> >> Check out the new SourceForge.net Marketplace.
> >> It's the best place to buy or sell services for
> >> just about anything Open Source.
> >> 
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> > Victor Lazzarini
> > Music Technology Laboratory
> > Music Department
> > National University of Ireland, Maynooth
> >
> >
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > 
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
>________________________________________________
>David Worrall.
>- Experimental Polymedia:       www.avatar.com.au
>- Education for Financial Independence: www.mindthemarkets.com.au
>Australian research affiliations:
>- Capital Markets Cooperative Research Centre: www.cmcrc.com
>- Sonic Communications Research Group:  creative.canberra.edu.au/scrg
>- MARCS Auditory Laboratories: marcs.uws.edu.au
>
>
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-01 14:03
From"Andres Cabrera"
SubjectRe: [Cs-dev] SConstruct broken on OSX
AttachmentsNone  

Date2008-04-01 14:29
FromDavidW
SubjectRe: [Cs-dev] SConstruct broken on OSX
I just did a completely new checkout with same result. Error is being  
thrown from line 1083 in SConstruct.

Your error is being thrown by scons because 'startswith' is a string  
method, not a list method.
presumably some ref. string has recently been placed into a list and  
needs to be dereferenced from it for scons.
Scons doesn't process the SConstruct in sequential order so it can me  
tricky to find.

'diff' an older SConstruct file w. new one to see if you can pick up  
the extra list assignment perhaps?

Does it build on linux?, OLPC?

D.

On 01/04/2008, at 10:51 PM, Victor Lazzarini wrote:
> CsoundLib_install is getting mixed up with library names. Not sure
> why.
>
> Victor
>
> At 12:10 01/04/2008, you wrote:
>> I'm trying to reproduce your error.... with
>> sudo scons dynamicCsoundLibrary=1 buildDSSI=0
>>
>> I get a further but bomb at
>>
>>> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
>>> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
>>> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack CsoundLib_install
>>> -lpthread -lm
>>> i686-apple-darwin9-gcc-4.0.1: CsoundLib_install: No such file or
>>> directory
>>> scons: *** [atsa] Error 1
>>> scons: building terminated because of errors.
>>>
>> with only a couple of deprecation warnings along the way.
>>
>> D.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 13:14
FromVictor Lazzarini
Subject[Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
This one wasn't easy to find, but I think I fixed it. It's to do with
the same problem I had building on Windows, it has to be:

libcsoundlibs.append(csoundLibraryName).

There were also lots of other little build problems, but I
think they are fixed now.

Victor

At 14:29 01/04/2008, you wrote:
>I just did a completely new checkout with same result. Error is being
>thrown from line 1083 in SConstruct.
>
>Your error is being thrown by scons because 'startswith' is a string
>method, not a list method.
>presumably some ref. string has recently been placed into a list and
>needs to be dereferenced from it for scons.
>Scons doesn't process the SConstruct in sequential order so it can me
>tricky to find.
>
>'diff' an older SConstruct file w. new one to see if you can pick up
>the extra list assignment perhaps?
>
>Does it build on linux?, OLPC?
>
>D.
>
>On 01/04/2008, at 10:51 PM, Victor Lazzarini wrote:
> > CsoundLib_install is getting mixed up with library names. Not sure
> > why.
> >
> > Victor
> >
> > At 12:10 01/04/2008, you wrote:
> >> I'm trying to reproduce your error.... with
> >> sudo scons dynamicCsoundLibrary=1 buildDSSI=0
> >>
> >> I get a further but bomb at
> >>
> >>> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
> >>> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
> >>> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack CsoundLib_install
> >>> -lpthread -lm
> >>> i686-apple-darwin9-gcc-4.0.1: CsoundLib_install: No such file or
> >>> directory
> >>> scons: *** [atsa] Error 1
> >>> scons: building terminated because of errors.
> >>>
> >> with only a couple of deprecation warnings along the way.
> >>
> >> D.
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 14:06
FromDave Phillips
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
Victor Lazzarini wrote:
> This one wasn't easy to find, but I think I fixed it...
Hi Victor,

I have a tangent question:

  Since Scons is used to build Csound, why isn't it used to install it ? 
I'm just curious, not complaining, but it seems strange to use 
install.py when "scons install" works so well for other applications.

Best,

dp


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 14:30
FromDavidW
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
Well done, V!

now sudo scons dynamicCsoundLibrary=1
produces this -
> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon - 
> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/ 
> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack -lcsound - 
> lpthread -lm
> ld: library not found for -lcsound
> collect2: ld returned 1 exit status
> scons: *** [atsa] Error 1
> scons: building terminated because of errors.

does the csound lib require another cli option?

And related to the install, - does the Custom Variable Install = 1  
work on all platforms, and for the library versions?

D.

On 03/04/2008, at 12:06 AM, Dave Phillips wrote:
> Victor Lazzarini wrote:
>> This one wasn't easy to find, but I think I fixed it...
> Hi Victor,
>
> I have a tangent question:
>
>  Since Scons is used to build Csound, why isn't it used to install  
> it ?
> I'm just curious, not complaining, but it seems strange to use
> install.py when "scons install" works so well for other applications.
>
> Best,
>
> dp
>


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 14:49
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
yes you spotted another problem !
I'll see to it.

install does not work on OSX (it's a long story).

Thanks

Victor

At 14:30 02/04/2008, you wrote:
>Well done, V!
>
>now sudo scons dynamicCsoundLibrary=1
>produces this -
> > gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
> > framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
> > usr/local/lib -L. -L. -lsndfile -lportaudio -ljack -lcsound -
> > lpthread -lm
> > ld: library not found for -lcsound
> > collect2: ld returned 1 exit status
> > scons: *** [atsa] Error 1
> > scons: building terminated because of errors.
>
>does the csound lib require another cli option?
>
>And related to the install, - does the Custom Variable Install = 1
>work on all platforms, and for the library versions?
>
>D.
>
>On 03/04/2008, at 12:06 AM, Dave Phillips wrote:
> > Victor Lazzarini wrote:
> >> This one wasn't easy to find, but I think I fixed it...
> > Hi Victor,
> >
> > I have a tangent question:
> >
> >  Since Scons is used to build Csound, why isn't it used to install
> > it ?
> > I'm just curious, not complaining, but it seems strange to use
> > install.py when "scons install" works so well for other applications.
> >
> > Best,
> >
> > dp
> >
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 14:57
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
Well try it now. I think I got it!

Victor

At 14:30 02/04/2008, you wrote:
>Well done, V!
>
>now sudo scons dynamicCsoundLibrary=1
>produces this -
> > gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
> > framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
> > usr/local/lib -L. -L. -lsndfile -lportaudio -ljack -lcsound -
> > lpthread -lm
> > ld: library not found for -lcsound
> > collect2: ld returned 1 exit status
> > scons: *** [atsa] Error 1
> > scons: building terminated because of errors.
>
>does the csound lib require another cli option?
>
>And related to the install, - does the Custom Variable Install = 1
>work on all platforms, and for the library versions?
>
>D.
>
>On 03/04/2008, at 12:06 AM, Dave Phillips wrote:
> > Victor Lazzarini wrote:
> >> This one wasn't easy to find, but I think I fixed it...
> > Hi Victor,
> >
> > I have a tangent question:
> >
> >  Since Scons is used to build Csound, why isn't it used to install
> > it ?
> > I'm just curious, not complaining, but it seems strange to use
> > install.py when "scons install" works so well for other applications.
> >
> > Best,
> >
> > dp
> >
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 15:13
FromDavidW
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
result:
> g++ -o csladspa.so -bundle -undefined suppress -flat_namespace - 
> framework CsoundLib frontends/csladspa/csladspa.o -L. -L. -L/usr/ 
> local/lib -L. -L. -lsndfile -lportaudio -ljack
> ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
> ld: in /usr/local/lib/libcrypto.0.9.7.dylib, file is not of required  
> architecture
> collect2: ld returned 1 exit status
> scons: *** [csladspa.so] Error 1
> scons: building terminated because of errors.

is libcrypto.0.9.7.dylib something that is installed by the .dmg  
package or what?

D.

On 03/04/2008, at 12:57 AM, Victor Lazzarini wrote:
> Well try it now. I think I got it!
>
> Victor
>
> At 14:30 02/04/2008, you wrote:
>> Well done, V!
>>
>> now sudo scons dynamicCsoundLibrary=1
>> produces this -
>>> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
>>> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
>>> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack -lcsound -
>>> lpthread -lm
>>> ld: library not found for -lcsound
>>> collect2: ld returned 1 exit status
>>> scons: *** [atsa] Error 1
>>> scons: building terminated because of errors.
>>
>> does the csound lib require another cli option?
>>
>> And related to the install, - does the Custom Variable Install = 1
>> work on all platforms, and for the library versions?
>>
>> D.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 15:29
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
That sounds like a gcc installation problem to me or something gone
awry in your system. It doesn't happen here. I don't have 
/usr/local/lib/libcrypto.* or
libgcc_s1 and there is nothing in the g++ command trying to link to it.

Victor

At 15:13 02/04/2008, you wrote:
>result:
> > g++ -o csladspa.so -bundle -undefined suppress -flat_namespace -
> > framework CsoundLib frontends/csladspa/csladspa.o -L. -L. -L/usr/
> > local/lib -L. -L. -lsndfile -lportaudio -ljack
> > ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
> > ld: in /usr/local/lib/libcrypto.0.9.7.dylib, file is not of required
> > architecture
> > collect2: ld returned 1 exit status
> > scons: *** [csladspa.so] Error 1
> > scons: building terminated because of errors.
>
>is libcrypto.0.9.7.dylib something that is installed by the .dmg
>package or what?
>
>D.
>
>On 03/04/2008, at 12:57 AM, Victor Lazzarini wrote:
> > Well try it now. I think I got it!
> >
> > Victor
> >
> > At 14:30 02/04/2008, you wrote:
> >> Well done, V!
> >>
> >> now sudo scons dynamicCsoundLibrary=1
> >> produces this -
> >>> gcc -o atsa -F. -framework CsoundLib -lsndfile -framework Carbon -
> >>> framework CoreAudio -framework CoreMidi util/atsa_main.o -L. -L. -L/
> >>> usr/local/lib -L. -L. -lsndfile -lportaudio -ljack -lcsound -
> >>> lpthread -lm
> >>> ld: library not found for -lcsound
> >>> collect2: ld returned 1 exit status
> >>> scons: *** [atsa] Error 1
> >>> scons: building terminated because of errors.
> >>
> >> does the csound lib require another cli option?
> >>
> >> And related to the install, - does the Custom Variable Install = 1
> >> work on all platforms, and for the library versions?
> >>
> >> D.
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-02 17:56
From"Steven Yi"
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
AttachmentsNone  

Date2008-04-03 01:04
FromDavidW
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
On 03/04/2008, at 3:56 AM, Steven Yi wrote:
> Just a little rant, I had pushed for using the install target a while
> back (years now) and maintained it for a while, but gave up after a
> while as Istvan had written the install.py file.  To his credit, the
> install.py does some neat things like create a log of what got
> installed, which it then uses on later installs to cleanly uninstall
> the old files.  That's a very good thing, IMO.  On the other hand, it
> means maintaining multiple files. Anyways, the install.py worked and
> the install target fell out of maintenance so that's where we're at
> now!
>
it also needs a name change - "install.py" is far too confusing except  
for those who've been playing the Galss Bead Game for a decade or so.
install_Linux.py  perhaps?

D.

> On Wed, Apr 2, 2008 at 6:06 AM, Dave Phillips  
>  wrote:
>> Victor Lazzarini wrote:
>>> This one wasn't easy to find, but I think I fixed it...
>> Hi Victor,
>>
>> I have a tangent question:
>>
>>  Since Scons is used to build Csound, why isn't it used to install  
>> it ?
>> I'm just curious, not complaining, but it seems strange to use
>> install.py when "scons install" works so well for other applications.
>>
>> Best,
>>
>> dp

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-03 12:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
Just to clarify, with the dynamic library build of Csound in
CVS, you'll get a minimal install already (the basic framework
is there in place). I can perhaps rehash install.py to install
the other things. I would know how to do that, but I am not
sure I would know how to do a SConstruct install target...

(I think that is why install.py was created probably). I'll
try to do this between now and the next release.

Victor


At 01:04 03/04/2008, you wrote:

>On 03/04/2008, at 3:56 AM, Steven Yi wrote:
> > Just a little rant, I had pushed for using the install target a while
> > back (years now) and maintained it for a while, but gave up after a
> > while as Istvan had written the install.py file.  To his credit, the
> > install.py does some neat things like create a log of what got
> > installed, which it then uses on later installs to cleanly uninstall
> > the old files.  That's a very good thing, IMO.  On the other hand, it
> > means maintaining multiple files. Anyways, the install.py worked and
> > the install target fell out of maintenance so that's where we're at
> > now!
> >
>it also needs a name change - "install.py" is far too confusing except
>for those who've been playing the Galss Bead Game for a decade or so.
>install_Linux.py  perhaps?
>
>D.
>
> > On Wed, Apr 2, 2008 at 6:06 AM, Dave Phillips
> >  wrote:
> >> Victor Lazzarini wrote:
> >>> This one wasn't easy to find, but I think I fixed it...
> >> Hi Victor,
> >>
> >> I have a tangent question:
> >>
> >>  Since Scons is used to build Csound, why isn't it used to install
> >> it ?
> >> I'm just curious, not complaining, but it seems strange to use
> >> install.py when "scons install" works so well for other applications.
> >>
> >> Best,
> >>
> >> dp
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-03 12:39
FromDavidW
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
fixed, and now builds!

[ for info re /usr/local/lib/libcrypto.* :
the PIL  (Python Image Library) v1.6 installer incorrectly installs  
a .PPC version of this dylib.
Scons probably  tries to import it - anyway life's too short for that  
line of speculation. ]

I can't find csnd.py and its dylib or CsoundAC after the build - where  
are the put before being copied by install?
(using scons SConstruct dynamicCsoundLibrary=1 buildCsoundAC=1)

D.


On 03/04/2008, at 1:29 AM, Victor Lazzarini wrote:
> That sounds like a gcc installation problem to me or something gone
> awry in your system. It doesn't happen here. I don't have
> /usr/local/lib/libcrypto.* or
> libgcc_s1 and there is nothing in the g++ command trying to link to  
> it.
>
> Victor
>
> At 15:13 02/04/2008, you wrote:
>> result:
>>> g++ -o csladspa.so -bundle -undefined suppress -flat_namespace -
>>> framework CsoundLib frontends/csladspa/csladspa.o -L. -L. -L/usr/
>>> local/lib -L. -L. -lsndfile -lportaudio -ljack
>>> ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
>>> ld: in /usr/local/lib/libcrypto.0.9.7.dylib, file is not of required
>>> architecture
>>> collect2: ld returned 1 exit status
>>> scons: *** [csladspa.so] Error 1
>>> scons: building terminated because of errors.
>>
>> is libcrypto.0.9.7.dylib something that is installed by the .dmg
>> package or what?

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-03 12:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] SConstruct fixed (was Re: SConstruct broken on OSX)
They should be in the top-level sources directory, if they
have been built (if they are not, they were not built):

csnd.py and _csnd.so
CsoundAC.py and _CsoundAC.so

Victor

At 12:39 03/04/2008, you wrote:
>fixed, and now builds!
>
>[ for info re /usr/local/lib/libcrypto.* :
>the PIL  (Python Image Library) v1.6 installer incorrectly installs
>a .PPC version of this dylib.
>Scons probably  tries to import it - anyway life's too short for that
>line of speculation. ]
>
>I can't find csnd.py and its dylib or CsoundAC after the build - where
>are the put before being copied by install?
>(using scons SConstruct dynamicCsoundLibrary=1 buildCsoundAC=1)
>
>D.
>
>
>On 03/04/2008, at 1:29 AM, Victor Lazzarini wrote:
> > That sounds like a gcc installation problem to me or something gone
> > awry in your system. It doesn't happen here. I don't have
> > /usr/local/lib/libcrypto.* or
> > libgcc_s1 and there is nothing in the g++ command trying to link to
> > it.
> >
> > Victor
> >
> > At 15:13 02/04/2008, you wrote:
> >> result:
> >>> g++ -o csladspa.so -bundle -undefined suppress -flat_namespace -
> >>> framework CsoundLib frontends/csladspa/csladspa.o -L. -L. -L/usr/
> >>> local/lib -L. -L. -lsndfile -lportaudio -ljack
> >>> ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
> >>> ld: in /usr/local/lib/libcrypto.0.9.7.dylib, file is not of required
> >>> architecture
> >>> collect2: ld returned 1 exit status
> >>> scons: *** [csladspa.so] Error 1
> >>> scons: building terminated because of errors.
> >>
> >> is libcrypto.0.9.7.dylib something that is installed by the .dmg
> >> package or what?
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-04 07:47
FromDavidW
Subject[Cs-dev] CSonstruct cosmetic surgery : (was Re: SConstruct fixed (was...))
On 03/04/2008, at 10:50 PM, Victor Lazzarini wrote:
> They should be in the top-level sources directory, if they
> have been built (if they are not, they were not built):
>
> csnd.py and _csnd.so
> CsoundAC.py and _CsoundAC.so
>
> Victor
They're not being built because pythonFound ==  False resulting in
--- CONFIGURATION DECISION: Not building Csound interfaces library
probably because of the python OSX versions thing.

I'm happy to dig in to make the build process possible on the latest  
platform.
To begin I'd like to do some cosmetic surgery of SConstruct.

Examples
1.  There's a mixture of tabs and used spaces for indentation,  
resulting in
some pretty messy layout.
I propose normalising them. Most I know use 4 spaces - any objections?

2. There's some nonsense,  like
>         if getPlatform() != 'darwin':
>            csoundInterfacesSources.insert(0, csoundLuaInterface)
>            if getPlatform() == 'win32':
>               csoundInterfacesEnvironment.Prepend(LIBS = ['lua51'])
>            else:
>               csoundInterfacesEnvironment.Prepend(LIBS = ['lua'])
---
3. There's the intriguing:
>     if getPlatform() == 'win32':
>        portaudioEnvironment.Append(LIBS = ['portaudio'])
>     else:
>        portaudioEnvironment.Append(LIBS = ['portaudio'])

4. Further, why say, for example
> if commonEnvironment['useLrint'] != '0':

when, given it's boolean,
> if commonEnvironment['useLrint'] = '1':

would seem to be more logical.

5. Why call getPlatform() every time the OS is needed?  Why can't this  
be executed once and stored in a variable?, eg.
sysPlatform = getPlatform()  # do this once, then
  if sysPlatform ='darwin':
	...

All these, and more, are natural enough multiple user accretions. But  
less spaghetti would be nice.
If there's no problem with me doing such housekeeping, can someone add  
them, or indicate how I might go about doing so myself?

thanks,
D.

> At 12:39 03/04/2008, you wrote:
>> fixed, and now builds!
>>
>> [ for info re /usr/local/lib/libcrypto.* :
>> the PIL  (Python Image Library) v1.6 installer incorrectly installs
>> a .PPC version of this dylib.
>> Scons probably  tries to import it - anyway life's too short for that
>> line of speculation. ]
>>
>> I can't find csnd.py and its dylib or CsoundAC after the build -  
>> where
>> are the put before being copied by install?
>> (using scons SConstruct dynamicCsoundLibrary=1 buildCsoundAC=1)
>>
>> D.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net