[Stk] RtMidi+Cygwin

Rodrigo Segnini rsegnini@ccrma.Stanford.EDU
Wed, 12 Oct 2005 01:32:17 -0700 (PDT)


Thanks Ge. It works. 

On Tue, 11 Oct 2005, Ge Wang wrote:

> Hi Rodrigo and all,
> 
> To compile RtMidi under cygwin:
> 
>    1. make sure you have the win32 libraries for cygwin
>    2. synthesize a makefile, perhaps based this minimal one
>       just hacked together (change miditest to the names of
>       your source file modules, and verify that the indented
>       lines begin with tabs and not spaces):
> 
> CC=gcc
> FLAGS=-D__WINDOWS_MM__ $(INCLUDES) -O3 -c
> LIBS=-lwinmm -lstdc++ -lm
> 
> OBJS=   RtMidi.o miditest.o
> 
> miditest: $(OBJS)
>  	$(CC) -o miditest.exe $(OBJS) $(LIBS)
> 
> miditest.o: miditest.cpp RtMidi.h
>  	$(CC) $(FLAGS) miditest.cpp
> 
> RtMidi.o: RtMidi.h RtMidi.cpp RtError.h
>  	$(CC) $(FLAGS) RtMidi.cpp
> 
> clean:
>  	rm -f miditest.exe *~ *.o
> 
> 
> Hope this helps.
> 
> Best,
> Ge!
> 
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>