| By the way, I modified SConstruct slightly (to look for gcc, not mingw), so
in order for this to work, you'll need to update.
I tested here and I get to build either with mingw or msvc, depending on
my path set-up, which is the best of both worlds. But scons sources
need to be fixed (as discussed in my previous e-mail for this to work).
Victor
At 10:47 17/11/2006, you wrote:
>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=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 |