Discussion:
[Cs-dev] Cs5 build help needed
Dave Seidel
2005-03-27 19:36:25 UTC
Permalink
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
Steven Yi
2005-03-27 20:50:31 UTC
Permalink
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
Post by Dave Seidel
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
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
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
Dave Seidel
2005-03-27 21:14:08 UTC
Permalink
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 <gogins at pipeline dot com>

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
Post by Steven Yi
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
Post by Dave Seidel
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
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
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
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
Istvan Varga
2005-03-27 21:18:38 UTC
Permalink
It is strange that with the exception of sndfile.h and Fl.H none
of the headers are found, not even the ANSI C ones.


-------------------------------------------------------
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
Steven Yi
2005-03-27 21:27:44 UTC
Permalink
I think that the problem regarding the headers is that for building
with Mingw and Msys, the path to /usr/local/include needs to be in
custom.py (at least, that was the case for me).

As for the other things, it looks like the Microsoft tools are being
picked up instead of the MinGW tools.

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

I had the same two problems a while ago; the first I modifie
custom.py, the second I think I simply removed the MIcrosoft tools. I
have to believe there's a better option than that for Dave, but I
don't know what to do as I took the other route.

steven
Post by Istvan Varga
It is strange that with the exception of sndfile.h and Fl.H none
of the headers are found, not even the ANSI C ones.
-------------------------------------------------------
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
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
Dave Seidel
2005-03-27 21:50:50 UTC
Permalink
Removing the MS tools is not an option, I need those for work. But
nothing I try in custom.py seems to work (and I know it's being read,
because I can add print statements to it that get executed when I run
scons). Would you mind posting your custom.py so I can see how you set
things up?

- Dave
Post by Steven Yi
I think that the problem regarding the headers is that for building
with Mingw and Msys, the path to /usr/local/include needs to be in
custom.py (at least, that was the case for me).
As for the other things, it looks like the Microsoft tools are being
picked up instead of the MinGW tools.
SCons tools on this platform: ['default', 'mslink', 'msvc', 'g77',
'masm', 'mslib', 'CVS', 'jar', 'javac', 'javah', 'lex', 'm4', 'midl',
'msvs', 'Perforce', 'rmic', 'tar', 'yacc', 'zip']
I had the same two problems a while ago; the first I modifie
custom.py, the second I think I simply removed the MIcrosoft tools. I
have to believe there's a better option than that for Dave, but I
don't know what to do as I took the other route.
steven
Post by Istvan Varga
It is strange that with the exception of sndfile.h and Fl.H none
of the headers are found, not even the ANSI C ones.
-------------------------------------------------------
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
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
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
Andres Cabrera
2005-03-28 22:44:35 UTC
Permalink
Hi,

I remember posting a fix for this, on the old mailing list, maybe you
can find it. It involves modifying the Sconstruct file, so that tools
are not picked up automatically by scons, but chosen explicitly. Is the
old list archive still functional, or is all that lost?

Cheers,
Andres
Post by Dave Seidel
Removing the MS tools is not an option, I need those for work. But
nothing I try in custom.py seems to work (and I know it's being read,
because I can add print statements to it that get executed when I run
scons). Would you mind posting your custom.py so I can see how you set
things up?
- Dave
Post by Steven Yi
I think that the problem regarding the headers is that for building
with Mingw and Msys, the path to /usr/local/include needs to be in
custom.py (at least, that was the case for me).
As for the other things, it looks like the Microsoft tools are being
picked up instead of the MinGW tools.
SCons tools on this platform: ['default', 'mslink', 'msvc', 'g77',
'masm', 'mslib', 'CVS', 'jar', 'javac', 'javah', 'lex', 'm4', 'midl',
'msvs', 'Perforce', 'rmic', 'tar', 'yacc', 'zip']
I had the same two problems a while ago; the first I modifie
custom.py, the second I think I simply removed the MIcrosoft tools. I
have to believe there's a better option than that for Dave, but I
don't know what to do as I took the other route.
steven
Post by Istvan Varga
It is strange that with the exception of sndfile.h and Fl.H none
of the headers are found, not even the ANSI C ones.
-------------------------------------------------------
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
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
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
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
Dave Seidel
2005-03-28 11:45:27 UTC
Permalink
Thanks, Andres, I'll take a look.

- Dave
Post by Andres Cabrera
Hi,
I remember posting a fix for this, on the old mailing list, maybe you
can find it. It involves modifying the Sconstruct file, so that tools
are not picked up automatically by scons, but chosen explicitly. Is the
old list archive still functional, or is all that lost?
Cheers,
Andres
Post by Dave Seidel
Removing the MS tools is not an option, I need those for work. But
nothing I try in custom.py seems to work (and I know it's being read,
because I can add print statements to it that get executed when I run
scons). Would you mind posting your custom.py so I can see how you set
things up?
- Dave
Post by Steven Yi
I think that the problem regarding the headers is that for building
with Mingw and Msys, the path to /usr/local/include needs to be in
custom.py (at least, that was the case for me).
As for the other things, it looks like the Microsoft tools are being
picked up instead of the MinGW tools.
SCons tools on this platform: ['default', 'mslink', 'msvc', 'g77',
'masm', 'mslib', 'CVS', 'jar', 'javac', 'javah', 'lex', 'm4', 'midl',
'msvs', 'Perforce', 'rmic', 'tar', 'yacc', 'zip']
I had the same two problems a while ago; the first I modifie
custom.py, the second I think I simply removed the MIcrosoft tools. I
have to believe there's a better option than that for Dave, but I
don't know what to do as I took the other route.
steven
Post by Istvan Varga
It is strange that with the exception of sndfile.h and Fl.H none
of the headers are found, not even the ANSI C ones.
-------------------------------------------------------
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
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
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
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
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
Michael Gogins
1970-01-01 00:00:00 UTC
Permalink
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