Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4596] Re: Csound5 and Portaudio

Date2004-05-07 03:07
From"Michael Gogins"
Subject[CSOUND-DEV:4596] Re: Csound5 and Portaudio
I believe the errors you have indicate your build is scanning portaudio v18
headers. Find them all and delete them, rename them, zip them, or otherwise
get them out of the way.

----- Original Message ----- 
From: 
To: "Csound Developers Discussion List" 
Sent: Thursday, May 06, 2004 8:23 PM
Subject: [CSOUND-DEV:4589] Csound5 and Portaudio


> Hi,
> It's me again with my portaudio problems. I've tried building Csound5 both
> with portaudio 19 and with v18.1, and the errors are exactly the same in
both
> cases, so I guess the problem is not portaudio, but something else. Anyone
> knows what it can be?
>
> gcc -DCSOUND_WITH_API -g -O2 -mthreads -DHAVE_IO_H -DHAVE_FCNTL_H -
> DHAVE_UNISTD_
         H -DHAVE_MALLOC_H -DHAVE_SYS_TIME_H -DHAVE_STRING_H -
> DHAVE_STRINGS_H -DHAVE_DIRE
         NT_H -DHAVE_ITOA -g -O2 -Wall -D_WIN32 -
> DWIN32 -DHAVE_STRING_H -DPIPES -DOS_IS_W          IN32 -DRTAUDIO -DBETA -
> IC:\mingw\include -IC:\tools\libsndfile-1.0.10pre4\src -I
C:\Python233
> \include -IC:\msys\1.0\include -IC:\tools\portaudio\pa_common -IC:\t
> ools\boost_1_31_0 -I. -IH -ISDIF -I\usr\local\include -I\usr\include -c -o
> InOut          \rtpa.o InOut\rtpa.c
> In file included from H/cs.h:34,
>                  from InOut/rtpa.c:9:
> H/csoundCore.h:770:1: warning: "__cdecl" redefined
> InOut/rtpa.c:1:1: warning: this is the location of the previous definition
> InOut/rtpa.c: In function `recopen_':
> InOut/rtpa.c:59: storage size of `paStreamParameters_' isn't known
> InOut/rtpa.c:80: warning: passing arg 5 of `Pa_OpenStream' makes pointer
from
> in          teger without a cast
> InOut/rtpa.c:80: too few arguments to function `Pa_OpenStream'
> InOut/rtpa.c:59: warning: unused variable `paStreamParameters_'
> InOut/rtpa.c: In function `listPortAudioDevices':
> InOut/rtpa.c:90: `PaDeviceIndex' undeclared (first use in this function)
> InOut/rtpa.c:90: (Each undeclared identifier is reported only once
> InOut/rtpa.c:90: for each function it appears in.)
> InOut/rtpa.c:90: parse error before "deviceIndex"
> InOut/rtpa.c:94: `deviceCount' undeclared (first use in this function)
> InOut/rtpa.c:94: warning: implicit declaration of function
`Pa_GetDeviceCount'
> InOut/rtpa.c:96: `deviceIndex' undeclared (first use in this function)
> InOut/rtpa.c:97: warning: assignment discards qualifiers from pointer
target
> typ          e
> InOut/rtpa.c:105: structure has no member named `defaultSampleRate'
> InOut/rtpa.c: In function `playopen_':
> InOut/rtpa.c:113: storage size of `paStreamParameters_' isn't known
> InOut/rtpa.c:145: warning: passing arg 5 of `Pa_OpenStream' makes pointer
from
> i          nteger without a cast
> InOut/rtpa.c:145: too few arguments to function `Pa_OpenStream'
> InOut/rtpa.c:113: warning: unused variable `paStreamParameters_'
> InOut/rtpa.c: In function `rtrecord_':
> InOut/rtpa.c:170: warning: implicit declaration of function
`Pa_ReadStream'
> InOut/rtpa.c: In function `rtplay_':
> InOut/rtpa.c:198: warning: implicit declaration of function
`Pa_WriteStream'
> scons: building terminated because of errors.
> scons: *** [InOut\rtpa.o] Error 1
>
> Thanks,
> Andres
>

Date2004-05-07 04:56
Fromiainduncan@telus.net
Subject[CSOUND-DEV:4600] Re: Csound5 and Portaudio
ok, I am joining Andres, but getting stuck even further away. I have been 
essentially following the instructions in the csound.pdf file.

- installed cygwin, no problems
- installed cvs, no problems
- installed scons, fine
- installed libsnd, fine

Portaudio, not fine. Now, I know that I don't know what the hell I'm doing, 
but even then, compared to the above this seems bad. I understand we need 
PA19. I don't really understand what to do beyond "./configure, make, make 
install". The above fails for me using both snapshots on the portaudio site 
and the cvs v19 checkout. Is there something more I need to do that I don't 
know about to install portaudio? Would it perhaps be a good plan for csound to 
host a known good snapshot of portaudio v19 for now considering v19 is dev on 
the portaudio site? The problem for me is that I don't know enough to know 
whether I should be hunting through port audio docs to find out what I did 
wrong, or whether the current cvs snapshot just doesn't work. 

I also don't know which version of portaudio I should be looking through. I'm 
using cygwin but I'm trying to build for windows so I should be using the asio 
right? 

Sorry for the ignorance! 
Iain