Re: [Audacity-devel] Patch to compile with Cygwin
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Bill E. <bi...@rf...> - 2003-09-22 09:20:20
|
Dave Fancella wrote: > PortAudio is required, and at the time of writing PortAudio does not > have a Makefile for > >Cygwin that is directly compatible with Audacity's build system under Cygwin. There is a >Makefile for PortAudio that works with Cygwin, but will either require tweaking or will >require tweaking Audacity's configure script. This makefile will compile PortAudio as a shared >library, and will require additional arguments to gcc for proper linking. A binary compiled >with it will require the PortAudio shared library to be distributed with it. However, there >is a Makefile for PortAudio that works directly with Audacity's build system that was pending >acceptance at the time of this writing. If you do not have this Makefile, you can create it >yourself with these instructions: > >1. Copy the Makefile from pa_unix_oss into pa_win_wmme. >2. Edit the Makefile in pa_win_wmme. Remove object files that are in the pa_unix_oss directory. >Add as an object the only .c file in pa_win_wmme. > > For DirectX, I think it should be very similar: DXDIR=/usr/local/dx7sdk override CFLAGS += -g -O -ansi -I../pa_common -I$DXDIR/include^M override LIBS += -L$DXDIR/lib -ldsound -lole32^M PASRC = ../pa_common/pa_lib.c pa_win_ds.c dsound_wrapper.c^M PAINC = ../pa_common/portaudio.h^M PAOBJ = ../pa_common/pa_lib.o pa_win_ds.o dsound_wrapper.o^M ^M There's no pa_asio dir included, but ASIO should be something like: ASIODIR=/usr/local/asiosdk2 override CFLAGS += -g -O -ansi -I../pa_common -I$ASIODIR/host/pc \ -I$ASIODIR/common -I$ASIODIR/host^M override LIBS += -L$DXDIR/lib -lstdc++ -lole32 -luuid^M PASRC = ../pa_common/pa_lib.c iasiothiscallresolver.cpp $ASIODIR/common/asio.cpp \ $ASIODIR/host/asiodrivers.cpp $ASIODIR/host/asiodrivers.cpp \ $ASIODIR/host/pc/asiolist.cpp^M PAINC = ../pa_common/portaudio.h^M PAOBJ = ../pa_common/pa_lib.o iasiothiscallresolver.o $ASIODIR/common/asio.o \ $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o ^M For portmixer, I imagine it will work similarly, but there's not a px_win_ds or px_asio directory. >PortMixer is not required, but is recommended. If you have the Makefile submitted for acceptance >for PortAudio already, then chances are you have the Makefile for PortMixer. If not, then you can >create this makefile by following the instructions for PortAudio, replacing pa with px. Since >you will either already have the PortMixer makefile for Cygwin or you will have had to create >one for PortAudio, there's really no excuse for not taking a few extra minutes to get PortMixer >working. However, if all else fails, --disable it on your configure command line. > > > > |