Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)

Date2006-11-17 16:31
FromVictor Lazzarini
SubjectRe: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
Installing mingw/msys might sort it out or it might not, I don't know.
Scons says it defaults to msvc if it is present (and looks for the registry
for it, so paths will not matter then).

At home, 'gcc', 'mingw', etc. are found as tools, but it does not look like
they are found in your system, perhaps you need to re-install scons.

If you make the simple changes I advised, you will not need to maintain
anything, it will work, as the defaults will change to gcc etc.
Of course if you are installing stuff again, you will need to
re-set the defaults to gcc etc.

If you can find an alternative fix that works and loads custom-msvc.py,
go ahead and do it. But I would prefer if it was done automatically, by
looking at the toolset found by scons, if possible (it should indeed be
possible, if scons is working correctly). As I am building stuff on several
platforms, the more self-configuring things are, the better, as I am also
short on time for development.

Victor

At 15:11 17/11/2006, you wrote:
>I don't have time to maintain variants on the tools I use. In my view, 
>patching tools is very much the wrong approach.
>
>What is the reason that your SCons tools list contains 'mingw' and mine 
>does not? Do you have a record of the installation procedures that you 
>followed?
>
>I'm willing to re-install MSys/MinGW if doing that would fix this, but not 
>unless I am reasonably confident that re-installing will indeed fix it.
>
>Otherwise, I'll put the withMinGW option back in, but I'll change 
>SConstruct to use custom-msvc.py if withMinGW=0 is found.
>
>By the way, there are new versions of both SCons and SWIG available now. 
>I'm going to see if the new SWIG offers advantages for Java, Lisp, and 
>Lua. The new SWIG also supports Python 2.5.
>
>Regards,
>Mike
>
>-----Original Message-----
> >From: Victor Lazzarini 
> >Sent: Nov 17, 2006 5:47 AM
> >To: Developer discussions 
> >Subject: Re: [Cs-dev] Windows build (was Re:  Happy Birthday to DrB)
> >
> >I had a look at this and I think the problem is with your Scons set-up. It
> >should find the string 'mingw' amongst your scons tools list, but it's
> >not there, for some reason, Scons will not detect it.
> >
> >That's why you need to add it, manually, to the tools list; when scons
> >start, it should list the tools; if they are not in the list, then that's a
> >scons set-up problem.
> >
> >As reported here, csound5 builds fine on properly set-up systems (mine
> >at home as well).
> >
> >I have looked around and here's a fix for your scons set-up
> >
> >In the scons directory, open SCons\Tool\__init__.py
> >
> >edit the following bit so that it looks like this (from line 246):
> >
> >  if str(platform) == 'win32':
> >         #"prefer Microsoft tools on Windows"
> >         "prefer GNU tools on all other platforms"
> >         linkers = ['gnulink', 'mslink', 'ilink']
> >         c_compilers = ['gcc', 'msvc', 'icc', 'cc']
> >         cxx_compilers = ['g++', 'msvc', 'icc', 'c++']
> >         assemblers = ['gas', 'nasm', 'masm']
> >         fortran_compilers = ['g77', 'ifort', 'ifl', 'fortran']
> >         ars = ['ar', 'mslib']
> >         #linkers = ['mslink', 'gnulink', 'ilink', 'linkloc', 'ilink32' ]
> >         #c_compilers = ['msvc', 'mingw', 'gcc', 'icl', 'icc', 'cc', 
> 'bcc32' ]
> >         #cxx_compilers = ['msvc', 'icc', 'g++', 'c++', 'bcc32' ]
> >         #assemblers = ['masm', 'nasm', 'gas', '386asm' ]
> >         #fortran_compilers = ['g77', 'ifl', 'cvf', 'fortran']
> >         #ars = ['mslib', 'ar', 'tlib']
> >
> >Save and then just run scons as usual.
> >
> >I put msys here in my  system and was able to build csound with it,
> >even having MSVC in my path.
> >
> >Victor
> >
> >
> >At 03:33 17/11/2006, you wrote:
> >>Csound 5 again does not build with MinGW. There absolutely has to be a
> >>manual option to determine the build platform on Windows.
> >>
> >>Victor, feel free to do it yourself -- if you don't, I'll try to come up
> >>with something that will be easier to use with MSVC.
> >>
> >>Regards,
> >>Mike
> >>----- Original Message -----
> >>From: "Victor Lazzarini" 
> >>To: "Developer discussions" 
> >>Sent: Wednesday, November 15, 2006 5:20 AM
> >>Subject: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
> >>
> >>
> >> >
> >> > The problem is that these changes now have made it impossible to
> >> > build on MSVC.
> >> >
> >> > The major problem is that custom-msvc does not get loaded now even
> >> > withMinGW=0 (the line that calls it is nowhere in Sconstruct !). But I
> >> > can't add an if-else to load custom-msvc.py because it has to happen
> >> > before the MinGW option check!
> >> >
> >> > So I did some changes that will hopefully detect mingw, even on a
> >> > system with MSVC in as well. What I tried to do was to detect
> >> > if mingw was at all in the system, by checking that it is in the tools
> >> > list; if so it sets withMinGW to 1 and everything else proceeds as per
> >> > your code.
> >> >
> >> > I also set the buildInterfaces option to default to '0' (I think 
> this was
> >> > the original form).
> >> >
> >> > Could you let me know if this has worked for you? Otherwise we will
> >> > have to look for a different solution. Although I prefer the default
> >> > build platform to be msys/gcc, I am keen on keeping the MSVC build
> >> > alive.
> >> >
> >> > Victor
> >> >
> >> > At 03:22 15/11/2006, you wrote:
> >> >>Happy birthday, Richard!
> >> >>
> >> >>I am preparing the Windows build. I have had to make some changes to
> >> >>SConstruct -- it will not automatically detect MSVC or MinGW, it 
> defaults
> >> >>to
> >> >>MinGW but you can override that by setting withMinGW=0. If you do build
> >> >>with
> >> >>MSVC you have to first copy custom-msvc.py over custom.py, also. Anyway,
> >> >>everything builds and runs as before.
> >> >>
> >> >>Best,
> >> >>Mike
> >> >>
> >> >>----- Original Message -----
> >> >>From: "Dr. Richard Boulanger" 
> >> >>To: "Developer discussions" 
> >> >>Sent: Tuesday, November 14, 2006 8:40 PM
> >> >>Subject: Re: [Cs-dev] Happy Birthday to DrB
> >> >>
> >> >>
> >> >> > John,
> >> >> >
> >> >> > THANKS SO MUCH
> >> >> >
> >> >> > -dB
> >> >> >
> >> >> >
> >> >> > On Nov 10, 2006, at 12:17 PM, 
> >> >> >  wrote:
> >> >> >
> >> >> >> and as a small present, I have just release Csound 5.04
> >> >> >>
> >> >> >> At present we are missing the Windows build, but hej! today is his
> >> >> >> birthday.
> >> >> >>
> >> >> >> Many Happy Returns
> >> >> >>
> >> >> >> ==John ffitch
> >> >> >>
> >> >> >> 
> ----------------------------------------------------------------------
> >> >> >> ---
> >> >> >> Using Tomcat but need to do more? Need to support web services,
> >> >> >> security?
> >> >> >> Get stuff done quickly with pre-integrated technology to make your
> >> >> >> job easier
> >> >> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> >> >> >> Geronimo
> >> >> >> http://sel.as-us.falkag.net/sel?
> >> >> >> cmd=lnk&kid=120709&bid=263057&dat=121642
> >> >> >> _______________________________________________
> >> >> >> Csound-devel mailing list
> >> >> >> Csound-devel@lists.sourceforge.net
> >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >> >> >
> >> >> >
> >> >> >
> >> -------------------------------------------------------------------------
> >> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to 
> share
> >> >> > your
> >> >> > opinions on IT & business topics through brief surveys - and earn 
> cash
> >> >> >
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> > _______________________________________________
> >> >> > Csound-devel mailing list
> >> >> > Csound-devel@lists.sourceforge.net
> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >> >>
> >> >>
> >> >>--------------------------------------------------------------------- 
> ----
> >> >>Take Surveys. Earn Cash. Influence the Future of IT
> >> >>Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> >>your
> >> >>opinions on IT & business topics through brief surveys - and earn cash
> >> >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE 
> VDEV
> >> >>_______________________________________________
> >> >>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
> >> >
> >> >
> >> > 
> -------------------------------------------------------------------------
> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> > your
> >> > opinions on IT & business topics through brief surveys - and earn cash
> >> > 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> > _______________________________________________
> >> > Csound-devel mailing list
> >> > Csound-devel@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >>
> >>-------------------------------------------------------------------------
> >>Take Surveys. Earn Cash. Influence the Future of IT
> >>Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> >>opinions on IT & business topics through brief surveys - and earn cash
> >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>_______________________________________________
> >>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
> >
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to share your
> >opinions on IT & business topics through brief surveys - and earn cash
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >_______________________________________________
> >Csound-devel mailing list
> >Csound-devel@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>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 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-11-17 16:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
One other thing: where is the computer going to be?
I'll need to know.

At 16:31 17/11/2006, Victor Lazzarini wrote:
>Installing mingw/msys might sort it out or it might not, I don't know.
>Scons says it defaults to msvc if it is present (and looks for the registry
>for it, so paths will not matter then).
>
>At home, 'gcc', 'mingw', etc. are found as tools, but it does not look like
>they are found in your system, perhaps you need to re-install scons.
>
>If you make the simple changes I advised, you will not need to maintain
>anything, it will work, as the defaults will change to gcc etc.
>Of course if you are installing stuff again, you will need to
>re-set the defaults to gcc etc.
>
>If you can find an alternative fix that works and loads custom-msvc.py,
>go ahead and do it. But I would prefer if it was done automatically, by
>looking at the toolset found by scons, if possible (it should indeed be
>possible, if scons is working correctly). As I am building stuff on several
>platforms, the more self-configuring things are, the better, as I am also
>short on time for development.
>
>Victor
>
>At 15:11 17/11/2006, you wrote:
> >I don't have time to maintain variants on the tools I use. In my view,
> >patching tools is very much the wrong approach.
> >
> >What is the reason that your SCons tools list contains 'mingw' and mine
> >does not? Do you have a record of the installation procedures that you
> >followed?
> >
> >I'm willing to re-install MSys/MinGW if doing that would fix this, but not
> >unless I am reasonably confident that re-installing will indeed fix it.
> >
> >Otherwise, I'll put the withMinGW option back in, but I'll change
> >SConstruct to use custom-msvc.py if withMinGW=0 is found.
> >
> >By the way, there are new versions of both SCons and SWIG available now.
> >I'm going to see if the new SWIG offers advantages for Java, Lisp, and
> >Lua. The new SWIG also supports Python 2.5.
> >
> >Regards,
> >Mike
> >
> >-----Original Message-----
> > >From: Victor Lazzarini 
> > >Sent: Nov 17, 2006 5:47 AM
> > >To: Developer discussions 
> > >Subject: Re: [Cs-dev] Windows build (was Re:  Happy Birthday to DrB)
> > >
> > >I had a look at this and I think the problem is with your Scons set-up. It
> > >should find the string 'mingw' amongst your scons tools list, but it's
> > >not there, for some reason, Scons will not detect it.
> > >
> > >That's why you need to add it, manually, to the tools list; when scons
> > >start, it should list the tools; if they are not in the list, then 
> that's a
> > >scons set-up problem.
> > >
> > >As reported here, csound5 builds fine on properly set-up systems (mine
> > >at home as well).
> > >
> > >I have looked around and here's a fix for your scons set-up
> > >
> > >In the scons directory, open SCons\Tool\__init__.py
> > >
> > >edit the following bit so that it looks like this (from line 246):
> > >
> > >  if str(platform) == 'win32':
> > >         #"prefer Microsoft tools on Windows"
> > >         "prefer GNU tools on all other platforms"
> > >         linkers = ['gnulink', 'mslink', 'ilink']
> > >         c_compilers = ['gcc', 'msvc', 'icc', 'cc']
> > >         cxx_compilers = ['g++', 'msvc', 'icc', 'c++']
> > >         assemblers = ['gas', 'nasm', 'masm']
> > >         fortran_compilers = ['g77', 'ifort', 'ifl', 'fortran']
> > >         ars = ['ar', 'mslib']
> > >         #linkers = ['mslink', 'gnulink', 'ilink', 'linkloc', 'ilink32' ]
> > >         #c_compilers = ['msvc', 'mingw', 'gcc', 'icl', 'icc', 'cc',
> > 'bcc32' ]
> > >         #cxx_compilers = ['msvc', 'icc', 'g++', 'c++', 'bcc32' ]
> > >         #assemblers = ['masm', 'nasm', 'gas', '386asm' ]
> > >         #fortran_compilers = ['g77', 'ifl', 'cvf', 'fortran']
> > >         #ars = ['mslib', 'ar', 'tlib']
> > >
> > >Save and then just run scons as usual.
> > >
> > >I put msys here in my  system and was able to build csound with it,
> > >even having MSVC in my path.
> > >
> > >Victor
> > >
> > >
> > >At 03:33 17/11/2006, you wrote:
> > >>Csound 5 again does not build with MinGW. There absolutely has to be a
> > >>manual option to determine the build platform on Windows.
> > >>
> > >>Victor, feel free to do it yourself -- if you don't, I'll try to come up
> > >>with something that will be easier to use with MSVC.
> > >>
> > >>Regards,
> > >>Mike
> > >>----- Original Message -----
> > >>From: "Victor Lazzarini" 
> > >>To: "Developer discussions" 
> > >>Sent: Wednesday, November 15, 2006 5:20 AM
> > >>Subject: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
> > >>
> > >>
> > >> >
> > >> > The problem is that these changes now have made it impossible to
> > >> > build on MSVC.
> > >> >
> > >> > The major problem is that custom-msvc does not get loaded now even
> > >> > withMinGW=0 (the line that calls it is nowhere in Sconstruct !). But I
> > >> > can't add an if-else to load custom-msvc.py because it has to happen
> > >> > before the MinGW option check!
> > >> >
> > >> > So I did some changes that will hopefully detect mingw, even on a
> > >> > system with MSVC in as well. What I tried to do was to detect
> > >> > if mingw was at all in the system, by checking that it is in the tools
> > >> > list; if so it sets withMinGW to 1 and everything else proceeds as per
> > >> > your code.
> > >> >
> > >> > I also set the buildInterfaces option to default to '0' (I think
> > this was
> > >> > the original form).
> > >> >
> > >> > Could you let me know if this has worked for you? Otherwise we will
> > >> > have to look for a different solution. Although I prefer the default
> > >> > build platform to be msys/gcc, I am keen on keeping the MSVC build
> > >> > alive.
> > >> >
> > >> > Victor
> > >> >
> > >> > At 03:22 15/11/2006, you wrote:
> > >> >>Happy birthday, Richard!
> > >> >>
> > >> >>I am preparing the Windows build. I have had to make some changes to
> > >> >>SConstruct -- it will not automatically detect MSVC or MinGW, it
> > defaults
> > >> >>to
> > >> >>MinGW but you can override that by setting withMinGW=0. If you do 
> build
> > >> >>with
> > >> >>MSVC you have to first copy custom-msvc.py over custom.py, also. 
> Anyway,
> > >> >>everything builds and runs as before.
> > >> >>
> > >> >>Best,
> > >> >>Mike
> > >> >>
> > >> >>----- Original Message -----
> > >> >>From: "Dr. Richard Boulanger" 
> > >> >>To: "Developer discussions" 
> > >> >>Sent: Tuesday, November 14, 2006 8:40 PM
> > >> >>Subject: Re: [Cs-dev] Happy Birthday to DrB
> > >> >>
> > >> >>
> > >> >> > John,
> > >> >> >
> > >> >> > THANKS SO MUCH
> > >> >> >
> > >> >> > -dB
> > >> >> >
> > >> >> >
> > >> >> > On Nov 10, 2006, at 12:17 PM, 
> > >> >> >  wrote:
> > >> >> >
> > >> >> >> and as a small present, I have just release Csound 5.04
> > >> >> >>
> > >> >> >> At present we are missing the Windows build, but hej! today is his
> > >> >> >> birthday.
> > >> >> >>
> > >> >> >> Many Happy Returns
> > >> >> >>
> > >> >> >> ==John ffitch
> > >> >> >>
> > >> >> >>
> > ----------------------------------------------------------------------
> > >> >> >> ---
> > >> >> >> Using Tomcat but need to do more? Need to support web services,
> > >> >> >> security?
> > >> >> >> Get stuff done quickly with pre-integrated technology to make your
> > >> >> >> job easier
> > >> >> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > >> >> >> Geronimo
> > >> >> >> http://sel.as-us.falkag.net/sel?
> > >> >> >> cmd=lnk&kid=120709&bid=263057&dat=121642
> > >> >> >> _______________________________________________
> > >> >> >> Csound-devel mailing list
> > >> >> >> Csound-devel@lists.sourceforge.net
> > >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >> >> >
> > >> >> >
> > >> >> >
> > >> 
> -------------------------------------------------------------------------
> > >> >> > Take Surveys. Earn Cash. Influence the Future of IT
> > >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > >> >> > your
> > >> >> > opinions on IT & business topics through brief surveys - and earn
> > cash
> > >> >> >
> > >> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >> >> > _______________________________________________
> > >> >> > Csound-devel mailing list
> > >> >> > Csound-devel@lists.sourceforge.net
> > >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >> >>
> > >> >>
> > >> >>---------------------------------------------------------------------
> > ----
> > >> >>Take Surveys. Earn Cash. Influence the Future of IT
> > >> >>Join SourceForge.net's Techsay panel and you'll get the chance to 
> share
> > >> >>your
> > >> >>opinions on IT & business topics through brief surveys - and earn cash
> > >> >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE
> > VDEV
> > >> >>_______________________________________________
> > >> >>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
> > >> >
> > >> >
> > >> >
> > -------------------------------------------------------------------------
> > >> > Take Surveys. Earn Cash. Influence the Future of IT
> > >> > Join SourceForge.net's Techsay panel and you'll get the chance to 
> share
> > >> > your
> > >> > opinions on IT & business topics through brief surveys - and earn cash
> > >> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >> > _______________________________________________
> > >> > Csound-devel mailing list
> > >> > Csound-devel@lists.sourceforge.net
> > >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >>
> > >>
> > >>-------------------------------------------------------------------------
> > >>Take Surveys. Earn Cash. Influence the Future of IT
> > >>Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > >>opinions on IT & business topics through brief surveys - and earn cash
> > >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >>_______________________________________________
> > >>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
> > >
> > >
> > >-------------------------------------------------------------------------
> > >Take Surveys. Earn Cash. Influence the Future of IT
> > >Join SourceForge.net's Techsay panel and you'll get the chance to 
> share your
> > >opinions on IT & business topics through brief surveys - and earn cash
> > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >_______________________________________________
> > >Csound-devel mailing list
> > >Csound-devel@lists.sourceforge.net
> > >https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to share your
> >opinions on IT & business topics through brief surveys - and earn cash
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >_______________________________________________
> >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
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>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 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-11-17 16:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
Sorry, disregard this message, I was supposed to be
replying to something else!

At 16:32 17/11/2006, you wrote:
>One other thing: where is the computer going to be?
>I'll need to know.
>
>At 16:31 17/11/2006, Victor Lazzarini wrote:
> >Installing mingw/msys might sort it out or it might not, I don't know.
> >Scons says it defaults to msvc if it is present (and looks for the registry
> >for it, so paths will not matter then).
> >
> >At home, 'gcc', 'mingw', etc. are found as tools, but it does not look like
> >they are found in your system, perhaps you need to re-install scons.
> >
> >If you make the simple changes I advised, you will not need to maintain
> >anything, it will work, as the defaults will change to gcc etc.
> >Of course if you are installing stuff again, you will need to
> >re-set the defaults to gcc etc.
> >
> >If you can find an alternative fix that works and loads custom-msvc.py,
> >go ahead and do it. But I would prefer if it was done automatically, by
> >looking at the toolset found by scons, if possible (it should indeed be
> >possible, if scons is working correctly). As I am building stuff on several
> >platforms, the more self-configuring things are, the better, as I am also
> >short on time for development.
> >
> >Victor
> >
> >At 15:11 17/11/2006, you wrote:
> > >I don't have time to maintain variants on the tools I use. In my view,
> > >patching tools is very much the wrong approach.
> > >
> > >What is the reason that your SCons tools list contains 'mingw' and mine
> > >does not? Do you have a record of the installation procedures that you
> > >followed?
> > >
> > >I'm willing to re-install MSys/MinGW if doing that would fix this, but not
> > >unless I am reasonably confident that re-installing will indeed fix it.
> > >
> > >Otherwise, I'll put the withMinGW option back in, but I'll change
> > >SConstruct to use custom-msvc.py if withMinGW=0 is found.
> > >
> > >By the way, there are new versions of both SCons and SWIG available now.
> > >I'm going to see if the new SWIG offers advantages for Java, Lisp, and
> > >Lua. The new SWIG also supports Python 2.5.
> > >
> > >Regards,
> > >Mike
> > >
> > >-----Original Message-----
> > > >From: Victor Lazzarini 
> > > >Sent: Nov 17, 2006 5:47 AM
> > > >To: Developer discussions 
> > > >Subject: Re: [Cs-dev] Windows build (was Re:  Happy Birthday to DrB)
> > > >
> > > >I had a look at this and I think the problem is with your Scons 
> set-up. It
> > > >should find the string 'mingw' amongst your scons tools list, but it's
> > > >not there, for some reason, Scons will not detect it.
> > > >
> > > >That's why you need to add it, manually, to the tools list; when scons
> > > >start, it should list the tools; if they are not in the list, then
> > that's a
> > > >scons set-up problem.
> > > >
> > > >As reported here, csound5 builds fine on properly set-up systems (mine
> > > >at home as well).
> > > >
> > > >I have looked around and here's a fix for your scons set-up
> > > >
> > > >In the scons directory, open SCons\Tool\__init__.py
> > > >
> > > >edit the following bit so that it looks like this (from line 246):
> > > >
> > > >  if str(platform) == 'win32':
> > > >         #"prefer Microsoft tools on Windows"
> > > >         "prefer GNU tools on all other platforms"
> > > >         linkers = ['gnulink', 'mslink', 'ilink']
> > > >         c_compilers = ['gcc', 'msvc', 'icc', 'cc']
> > > >         cxx_compilers = ['g++', 'msvc', 'icc', 'c++']
> > > >         assemblers = ['gas', 'nasm', 'masm']
> > > >         fortran_compilers = ['g77', 'ifort', 'ifl', 'fortran']
> > > >         ars = ['ar', 'mslib']
> > > >         #linkers = ['mslink', 'gnulink', 'ilink', 'linkloc', 
> 'ilink32' ]
> > > >         #c_compilers = ['msvc', 'mingw', 'gcc', 'icl', 'icc', 'cc',
> > > 'bcc32' ]
> > > >         #cxx_compilers = ['msvc', 'icc', 'g++', 'c++', 'bcc32' ]
> > > >         #assemblers = ['masm', 'nasm', 'gas', '386asm' ]
> > > >         #fortran_compilers = ['g77', 'ifl', 'cvf', 'fortran']
> > > >         #ars = ['mslib', 'ar', 'tlib']
> > > >
> > > >Save and then just run scons as usual.
> > > >
> > > >I put msys here in my  system and was able to build csound with it,
> > > >even having MSVC in my path.
> > > >
> > > >Victor
> > > >
> > > >
> > > >At 03:33 17/11/2006, you wrote:
> > > >>Csound 5 again does not build with MinGW. There absolutely has to be a
> > > >>manual option to determine the build platform on Windows.
> > > >>
> > > >>Victor, feel free to do it yourself -- if you don't, I'll try to 
> come up
> > > >>with something that will be easier to use with MSVC.
> > > >>
> > > >>Regards,
> > > >>Mike
> > > >>----- Original Message -----
> > > >>From: "Victor Lazzarini" 
> > > >>To: "Developer discussions" 
> > > >>Sent: Wednesday, November 15, 2006 5:20 AM
> > > >>Subject: [Cs-dev] Windows build (was Re: Happy Birthday to DrB)
> > > >>
> > > >>
> > > >> >
> > > >> > The problem is that these changes now have made it impossible to
> > > >> > build on MSVC.
> > > >> >
> > > >> > The major problem is that custom-msvc does not get loaded now even
> > > >> > withMinGW=0 (the line that calls it is nowhere in Sconstruct !). 
> But I
> > > >> > can't add an if-else to load custom-msvc.py because it has to happen
> > > >> > before the MinGW option check!
> > > >> >
> > > >> > So I did some changes that will hopefully detect mingw, even on a
> > > >> > system with MSVC in as well. What I tried to do was to detect
> > > >> > if mingw was at all in the system, by checking that it is in the 
> tools
> > > >> > list; if so it sets withMinGW to 1 and everything else proceeds 
> as per
> > > >> > your code.
> > > >> >
> > > >> > I also set the buildInterfaces option to default to '0' (I think
> > > this was
> > > >> > the original form).
> > > >> >
> > > >> > Could you let me know if this has worked for you? Otherwise we will
> > > >> > have to look for a different solution. Although I prefer the default
> > > >> > build platform to be msys/gcc, I am keen on keeping the MSVC build
> > > >> > alive.
> > > >> >
> > > >> > Victor
> > > >> >
> > > >> > At 03:22 15/11/2006, you wrote:
> > > >> >>Happy birthday, Richard!
> > > >> >>
> > > >> >>I am preparing the Windows build. I have had to make some changes to
> > > >> >>SConstruct -- it will not automatically detect MSVC or MinGW, it
> > > defaults
> > > >> >>to
> > > >> >>MinGW but you can override that by setting withMinGW=0. If you do
> > build
> > > >> >>with
> > > >> >>MSVC you have to first copy custom-msvc.py over custom.py, also.
> > Anyway,
> > > >> >>everything builds and runs as before.
> > > >> >>
> > > >> >>Best,
> > > >> >>Mike
> > > >> >>
> > > >> >>----- Original Message -----
> > > >> >>From: "Dr. Richard Boulanger" 
> > > >> >>To: "Developer discussions" 
> > > >> >>Sent: Tuesday, November 14, 2006 8:40 PM
> > > >> >>Subject: Re: [Cs-dev] Happy Birthday to DrB
> > > >> >>
> > > >> >>
> > > >> >> > John,
> > > >> >> >
> > > >> >> > THANKS SO MUCH
> > > >> >> >
> > > >> >> > -dB
> > > >> >> >
> > > >> >> >
> > > >> >> > On Nov 10, 2006, at 12:17 PM, 
> > > >> >> >  wrote:
> > > >> >> >
> > > >> >> >> and as a small present, I have just release Csound 5.04
> > > >> >> >>
> > > >> >> >> At present we are missing the Windows build, but hej! today 
> is his
> > > >> >> >> birthday.
> > > >> >> >>
> > > >> >> >> Many Happy Returns
> > > >> >> >>
> > > >> >> >> ==John ffitch
> > > >> >> >>
> > > >> >> >>
> > > ----------------------------------------------------------------------
> > > >> >> >> ---
> > > >> >> >> Using Tomcat but need to do more? Need to support web services,
> > > >> >> >> security?
> > > >> >> >> Get stuff done quickly with pre-integrated technology to 
> make your
> > > >> >> >> job easier
> > > >> >> >> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache
> > > >> >> >> Geronimo
> > > >> >> >> http://sel.as-us.falkag.net/sel?
> > > >> >> >> cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >> >> >> _______________________________________________
> > > >> >> >> Csound-devel mailing list
> > > >> >> >> Csound-devel@lists.sourceforge.net
> > > >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >>
> > -------------------------------------------------------------------------
> > > >> >> > Take Surveys. Earn Cash. Influence the Future of IT
> > > >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share
> > > >> >> > your
> > > >> >> > opinions on IT & business topics through brief surveys - and earn
> > > cash
> > > >> >> >
> > > >>
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >> >> > _______________________________________________
> > > >> >> > Csound-devel mailing list
> > > >> >> > Csound-devel@lists.sourceforge.net
> > > >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > > >> >>
> > > >> >>
> > > >> >>----------------------------------------------------------------- 
> ----
> > > ----
> > > >> >>Take Surveys. Earn Cash. Influence the Future of IT
> > > >> >>Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > > >> >>your
> > > >> >>opinions on IT & business topics through brief surveys - and 
> earn cash
> > > >> >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CI 
> D=DE
> > > VDEV
> > > >> >>_______________________________________________
> > > >> >>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
> > > >> >
> > > >> >
> > > >> >
> > > -------------------------------------------------------------------------
> > > >> > Take Surveys. Earn Cash. Influence the Future of IT
> > > >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > > >> > your
> > > >> > opinions on IT & business topics through brief surveys - and 
> earn cash
> > > >> >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >> > _______________________________________________
> > > >> > Csound-devel mailing list
> > > >> > Csound-devel@lists.sourceforge.net
> > > >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > > >>
> > > >>
> > > >>-------------------------------------------------------------------- 
> -----
> > > >>Take Surveys. Earn Cash. Influence the Future of IT
> > > >>Join SourceForge.net's Techsay panel and you'll get the chance to share
> > > your
> > > >>opinions on IT & business topics through brief surveys - and earn cash
> > > >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D 
> EVDEV
> > > >>_______________________________________________
> > > >>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
> > > >
> > > >
> > > >--------------------------------------------------------------------- 
> ----
> > > >Take Surveys. Earn Cash. Influence the Future of IT
> > > >Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > > >opinions on IT & business topics through brief surveys - and earn cash
> > > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE 
> VDEV
> > > >_______________________________________________
> > > >Csound-devel mailing list
> > > >Csound-devel@lists.sourceforge.net
> > > >https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> > >
> > >
> > >
> > >-------------------------------------------------------------------------
> > >Take Surveys. Earn Cash. Influence the Future of IT
> > >Join SourceForge.net's Techsay panel and you'll get the chance to 
> share your
> > >opinions on IT & business topics through brief surveys - and earn cash
> > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >_______________________________________________
> > >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
> >
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to share your
> >opinions on IT & business topics through brief surveys - and earn cash
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >_______________________________________________
> >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
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>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 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net