[CSOUND-DEV:4393] Still trying to build
Date | 2004-03-24 18:25 |
From | jpff@codemist.co.uk |
Subject | [CSOUND-DEV:4393] Still trying to build |
I hacked Makefile.am and other files so nearly all the files compile. Everything except there is no csound made. So I d/loaded scons and tried that route. The actions seems much more like sanity. However it does not compile (which is odd as the autoconf version did!) .... gcc -DCSOUND_WITH_API -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_MALLOC_H -DHAVE_SGTTY_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_TIME_H -DHAVE_TERMIOS_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DRTAUDIO -DWINDOWS -DUSE_FLTK -DBETA -I. -IH -c -o OOps/mididevice.o OOps/mididevice.c OOps/mididevice.c: In function `OpenMIDIDevice': OOps/mididevice.c:400: `TIOCGETP' undeclared (first use in this function) OOps/mididevice.c:400: (Each undeclared identifier is reported only once OOps/mididevice.c:400: for each function it appears in.) OOps/mididevice.c:401: invalid use of undefined type `struct sgttyb' OOps/mididevice.c:401: `EXTB' undeclared (first use in this function) OOps/mididevice.c:402: invalid use of undefined type `struct sgttyb' OOps/mididevice.c:402: `RAW' undeclared (first use in this function) OOps/mididevice.c:404: `TIOCSETP' undeclared (first use in this function) OOps/mididevice.c: At top level: OOps/mididevice.c:126: storage size of `tty' isn't known scons: *** [OOps/mididevice.o] Error 1 scons: building terminated because of errors. ==John ffitch |
Date | 2004-03-25 01:58 |
From | steven yi |
Subject | [CSOUND-DEV:4395] Re: Still trying to build |
Hi John, It looks like some flags and macros didn't get added in during compile, specifically -DLINUX. What OS and version is this on? And what is the line that is show at the beginning of running SCons: Platform is 'linux2' My guess is that if your platform is neither "linux1" or "linux2" but you're on linux. If this is the case, look for this line in the SConstruct file: if (sys.platform == 'linux1' or sys.platform == 'linux2'): and add a check for whatever your platform might be. That should add the flags necessary for it. If that is not the case, could you post the complete messages from running SCons? Thanks and hope that helps! steven jpff@codemist.co.uk wrote: >I hacked Makefile.am and other files so nearly all the files compile. >Everything except there is no csound made. > >So I d/loaded scons and tried that route. The actions seems much more >like sanity. However it does not compile (which is odd as the >autoconf version did!) > >.... >gcc -DCSOUND_WITH_API -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_MALLOC_H -DHAVE_SGTTY_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_TIME_H -DHAVE_TERMIOS_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DRTAUDIO -DWINDOWS -DUSE_FLTK -DBETA -I. -IH -c -o OOps/mididevice.o OOps/mididevice.c >OOps/mididevice.c: In function `OpenMIDIDevice': >OOps/mididevice.c:400: `TIOCGETP' undeclared (first use in this function) >OOps/mididevice.c:400: (Each undeclared identifier is reported only once >OOps/mididevice.c:400: for each function it appears in.) >OOps/mididevice.c:401: invalid use of undefined type `struct sgttyb' >OOps/mididevice.c:401: `EXTB' undeclared (first use in this function) >OOps/mididevice.c:402: invalid use of undefined type `struct sgttyb' >OOps/mididevice.c:402: `RAW' undeclared (first use in this function) >OOps/mididevice.c:404: `TIOCSETP' undeclared (first use in this function) >OOps/mididevice.c: At top level: >OOps/mididevice.c:126: storage size of `tty' isn't known >scons: *** [OOps/mididevice.o] Error 1 >scons: building terminated because of errors. > > >==John ffitch > > > > > |
Date | 2004-03-25 02:50 |
From | steven yi |
Subject | [CSOUND-DEV:4396] Re: Still trying to build |
Regarding sys.platform in Python for SConstruct, I found: Under Linux, sys.platform is usually "linux2". However, RedHat changed this to "linux-i386" for the Intel versions, in order to distinguish between Linux for different CPUs. Apparently Mandrake doesn't do this, or in a different way I also found: if sys.platform[:3] == 'win': text['font'] = ("lucida console", 8) # text['font'] = ("courier new", 10) if sys.platform[:5] == 'linux': text['font'] = ("fixed", 12) My version of the SConstruct here is a bit messy as it has things for -mno-cygwin on cygwin. I'll check in changes to the SConstruct file from home later if no one else gets to it before me. My guess is that for John's case he may have linux-i386 as the sys.platform, thus the flags weren't being set. Thanks, steven |