[Stk] RtMidi+Cygwin

Ge Wang gewang@CS.Princeton.EDU
Tue, 11 Oct 2005 09:40:47 -0400 (EDT)


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!