Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Cs5 build help needed

Date2005-03-28 00:30
FromMichael Gogins
SubjectRe: [Cs-dev] Cs5 build help needed
I think if the shell in which run scons does not have MSVCC environment variables in the environment, or binaries in the PATH, it will be OK. In other words, create a batch file that creates an environment that excludes MSVCC. I wonder if you could modify the batch file that creates the MSYS shell to do that.

-----Original Message-----
From: Dave Seidel 
Sent: Mar 27, 2005 4:14 PM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Cs5 build help needed

Hi Steven,

Thanks for your help.  Yes, I have both MSVC 6.0 and VS.NET, and gcc 
3.4.2 under MSYS/MinGw.  Maybe I have to change the shell environment, 
custom.py, or both?

Here's the full output:

scons: Reading SConscript files ...

C S O U N D   5

SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.

By Michael Gogins 

For custom options, run 'scons -h'.
For default options, run 'scons -H'.
If headers or libraries are not found, edit 'custom.py'.
For Linux, run in the standard shell
     with standard Python and just run 'scons'.
For MinGW, run in the MSys shell
     and use www.python.org WIN32 Python to run scons.
For Cygwin, run in the Cygwin shell
     and use Cygwin Python to run 'scons'.

System platform is 'win32'.
Build platform is 'mingw'.
SCons tools on this platform:  ['default', 'mslink', 'msvc', 'g77', 
'masm', 'mslib', 'CVS', 'jar', 'javac', 'javah', 'lex', 'm4', 'midl', 
'msvs', 'Perforce', 'rmic', 'tar', 'yacc', 'zip']

CONFIGURATION DECISION: Using single-precision floating point for audio 
samples.
Checking for C header file sndfile.h... yes
Checking for C header file portaudio.h... no
Checking for C header file portmidi.h... no
Checking for C++ header file FL/Fl.H... yes
Checking for C++ header file boost/any.hpp... no
Checking for C header file alsa/asoundlib.h... no
Checking for C header file jack/jack.h... no
Checking for C header file io.h... no
Checking for C header file fcntl.h... no
Checking for C header file unistd.h... no
Checking for C header file stdint.h... no
Checking for C header file malloc.h... no
Checking for C header file os.h... no
Checking for C header file sys/ioctl.h... no
Checking for C header file sys/time.h... no
Checking for C header file sys/types.h... no
Checking for C header file ctype.h... no
Checking for C header file termios.h... no
Checking for C header file string.h... no
Checking for C header file strings.h... no
Checking for C header file dirent.h... no
Checking for C header file Opcodes/Loris/src/loris.h... no
CONFIGURATION DECISION: Not building Loris Python extension and Csound 
opcodes.
Checking for C++ header file jni.h... no
CONFIGURATION DECISION: Building without real time MIDI support.
CONFIGURATION DECISION: Building with FLTK for graphs and widgets.
CONFIGURATION DECISION: Building static Csound library
CONFIGURATION DECISION: Not generating PDF documentation.
CONFIGURATION DECISION: Not building ALSA plugin.
CONFIGURATION DECISION: Not building PortAudio module.
CONFIGURATION DECISION: Not building JACK plugin.
Checking for C header file fluidsynth.h... no
CONFIGURATION DECISION: Not building fluid opcodes.
CONFIGURATION DECISION: Not building CsoundVST plugin and standalone.
CONFIGURATION DECISION: Not calling TAGS
CONFIGURATION DECISION: Calling makedb
CONFIGURATION DECISION: Not compiling zip file for release.
scons: done reading SConscript files.
scons: Building targets ...
cl -DCSOUND_WITH_API -g -gstabs -O2 /nologo -Wall -D_WIN32 -DWIN32 
-DHAVE_STRING_H -DPIPES -DOS_IS_WIN32 -mthreads -DBETA /I. /IH 
/IC:\msys\1.0\local\include /IC:\j2sdk1.4.2_07\include 
/IC:\j2sdk1.4.2_07\include\win32 /I\usr\local\include /I\usr\include /c 
strings\makedb.c /Fostrings\makedb.obj
Command line error D2021 : invalid numeric argument '/Wall'
scons: building terminated because of errors.
scons: *** [strings\makedb.obj] Error 2


Steven Yi wrote:
> Hi Dave,
> 
> Do you have a Microsoft toolchain on your system as well as a
> mingw/msys toolchain?
> 
> Also, could you post a complete output of the build configuration info
> (everything from after initiating scons up to when building starts)?
> 
> Thanks,
> steven
> 
> 
> On Sun, 27 Mar 2005 14:36:25 -0500, Dave Seidel  wrote:
> 
>>Well, I finally have a little time to work on Cs5, but I need some help
>>to get it to build, not having yet accomplished that.  This is using
>>MSYS/MinGW on WinXP.
>>
>>After getting libsnd, PortAudio, and FLTK built, I edited the paths in
>>custom.py and fired up scons.  But I got this:
>>
>>cl -DCSOUND_WITH_API -g -gstabs -O2 /nologo -Wall -D_WIN32 -DWIN32
>>-DHAVE_STRING_H -DPIPES -DOS_IS_WIN32 -mthreads -DBETA /I. /IH
>>/IC:\msys\1.0\local\include /IC:\j2sdk1.4.2_07\include
>>/IC:\j2sdk1.4.2_07\include\win32 /I\usr\local\include /I\usr\include /c
>>strings\makedb.c /Fostrings\makedb.obj
>>Command line error D2021 : invalid numeric argument '/Wall'
>>scons: building terminated because of errors.
>>
>>Why is it trying to use cl to build?  Shouldn't it be using GCC?
>>
>>- Dave
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-28 12:46
FromDave Seidel
SubjectRe: [Cs-dev] Cs5 build help needed
Makes sense, I'll try that.  But I'll probably do it as a separate 
wrapper batch file that calls the MSYS one, because that would likely 
get overwritten if I installed an MSYS update.

- Dave


Michael Gogins wrote:
> I think if the shell in which run scons does not have MSVCC environment variables in the environment, or binaries in the PATH, it will be OK. In other words, create a batch file that creates an environment that excludes MSVCC. I wonder if you could modify the batch file that creates the MSYS shell to do that.
> 
> -----Original Message-----
> From: Dave Seidel 
> Sent: Mar 27, 2005 4:14 PM
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] Cs5 build help needed
> 
> Hi Steven,
> 
> Thanks for your help.  Yes, I have both MSVC 6.0 and VS.NET, and gcc 
> 3.4.2 under MSYS/MinGw.  Maybe I have to change the shell environment, 
> custom.py, or both?
> 
> Here's the full output:
> 
> scons: Reading SConscript files ...
> 
> C S O U N D   5
> 
> SCons build file for Csound 5:
> API library, plugin opcodes, utilities, and front ends.
> 
> By Michael Gogins 
> 
> For custom options, run 'scons -h'.
> For default options, run 'scons -H'.
> If headers or libraries are not found, edit 'custom.py'.
> For Linux, run in the standard shell
>      with standard Python and just run 'scons'.
> For MinGW, run in the MSys shell
>      and use www.python.org WIN32 Python to run scons.
> For Cygwin, run in the Cygwin shell
>      and use Cygwin Python to run 'scons'.
> 
> System platform is 'win32'.
> Build platform is 'mingw'.
> SCons tools on this platform:  ['default', 'mslink', 'msvc', 'g77', 
> 'masm', 'mslib', 'CVS', 'jar', 'javac', 'javah', 'lex', 'm4', 'midl', 
> 'msvs', 'Perforce', 'rmic', 'tar', 'yacc', 'zip']
> 
> CONFIGURATION DECISION: Using single-precision floating point for audio 
> samples.
> Checking for C header file sndfile.h... yes
> Checking for C header file portaudio.h... no
> Checking for C header file portmidi.h... no
> Checking for C++ header file FL/Fl.H... yes
> Checking for C++ header file boost/any.hpp... no
> Checking for C header file alsa/asoundlib.h... no
> Checking for C header file jack/jack.h... no
> Checking for C header file io.h... no
> Checking for C header file fcntl.h... no
> Checking for C header file unistd.h... no
> Checking for C header file stdint.h... no
> Checking for C header file malloc.h... no
> Checking for C header file os.h... no
> Checking for C header file sys/ioctl.h... no
> Checking for C header file sys/time.h... no
> Checking for C header file sys/types.h... no
> Checking for C header file ctype.h... no
> Checking for C header file termios.h... no
> Checking for C header file string.h... no
> Checking for C header file strings.h... no
> Checking for C header file dirent.h... no
> Checking for C header file Opcodes/Loris/src/loris.h... no
> CONFIGURATION DECISION: Not building Loris Python extension and Csound 
> opcodes.
> Checking for C++ header file jni.h... no
> CONFIGURATION DECISION: Building without real time MIDI support.
> CONFIGURATION DECISION: Building with FLTK for graphs and widgets.
> CONFIGURATION DECISION: Building static Csound library
> CONFIGURATION DECISION: Not generating PDF documentation.
> CONFIGURATION DECISION: Not building ALSA plugin.
> CONFIGURATION DECISION: Not building PortAudio module.
> CONFIGURATION DECISION: Not building JACK plugin.
> Checking for C header file fluidsynth.h... no
> CONFIGURATION DECISION: Not building fluid opcodes.
> CONFIGURATION DECISION: Not building CsoundVST plugin and standalone.
> CONFIGURATION DECISION: Not calling TAGS
> CONFIGURATION DECISION: Calling makedb
> CONFIGURATION DECISION: Not compiling zip file for release.
> scons: done reading SConscript files.
> scons: Building targets ...
> cl -DCSOUND_WITH_API -g -gstabs -O2 /nologo -Wall -D_WIN32 -DWIN32 
> -DHAVE_STRING_H -DPIPES -DOS_IS_WIN32 -mthreads -DBETA /I. /IH 
> /IC:\msys\1.0\local\include /IC:\j2sdk1.4.2_07\include 
> /IC:\j2sdk1.4.2_07\include\win32 /I\usr\local\include /I\usr\include /c 
> strings\makedb.c /Fostrings\makedb.obj
> Command line error D2021 : invalid numeric argument '/Wall'
> scons: building terminated because of errors.
> scons: *** [strings\makedb.obj] Error 2
> 
> 
> Steven Yi wrote:
> 
>>Hi Dave,
>>
>>Do you have a Microsoft toolchain on your system as well as a
>>mingw/msys toolchain?
>>
>>Also, could you post a complete output of the build configuration info
>>(everything from after initiating scons up to when building starts)?
>>
>>Thanks,
>>steven
>>
>>
>>On Sun, 27 Mar 2005 14:36:25 -0500, Dave Seidel  wrote:
>>
>>
>>>Well, I finally have a little time to work on Cs5, but I need some help
>>>to get it to build, not having yet accomplished that.  This is using
>>>MSYS/MinGW on WinXP.
>>>
>>>After getting libsnd, PortAudio, and FLTK built, I edited the paths in
>>>custom.py and fired up scons.  But I got this:
>>>
>>>cl -DCSOUND_WITH_API -g -gstabs -O2 /nologo -Wall -D_WIN32 -DWIN32
>>>-DHAVE_STRING_H -DPIPES -DOS_IS_WIN32 -mthreads -DBETA /I. /IH
>>>/IC:\msys\1.0\local\include /IC:\j2sdk1.4.2_07\include
>>>/IC:\j2sdk1.4.2_07\include\win32 /I\usr\local\include /I\usr\include /c
>>>strings\makedb.c /Fostrings\makedb.obj
>>>Command line error D2021 : invalid numeric argument '/Wall'
>>>scons: building terminated because of errors.
>>>
>>>Why is it trying to use cl to build?  Shouldn't it be using GCC?
>>>
>>>- Dave
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net