[Stk] Compilation Fails

Ian Stevenson i.stevenson@uws.edu.au
Sat, 10 Jun 2006 21:23:06 +1000


Dear STK List,

I am an absolute beginner at gcc on the Mac. Any assistance with the
following appreciated. OSX 10.4.6

When I run make I get the following:
###################################################################
Ian-Stevensons-Computer:/Downloads/STK/stk-4.2.1/projects/MIDITest
ianstevenson$ make
g++ -O3 -Wall -g -D__GXX__ -I../../include   -D__MACOSX_CORE__ -c
../../src/RtMidi.cpp -o Release/RtMidi.o
/var/tmp//cctxiNsh.s:unknown:FATAL:can't create output file:
Release/RtMidi.o
make: *** [RtMidi.o] Error 1
###################################################################
My makefile looks like this:
###################################################################
### MIDITest Makefile

PROGRAMS = MIDITest
RM = /bin/rm
SRC_PATH = ../../src
OBJECT_PATH = Release
vpath %.o $(OBJECT_PATH)

INCLUDE = 
ifeq ($(strip $(INCLUDE)), )
    INCLUDE = ../../include
endif
vpath %.h $(INCLUDE)

CC       = g++
DEFS     = 
DEFS    += 
CFLAGS   = -O3
CFLAGS  += -Wall -g -D__GXX__ -I$(INCLUDE)
LIBRARY = -lpthread -lm
LIBRARY += -framework CoreAudio -framework CoreMIDI -framework
CoreFoundation

REALTIME = yes
ifeq ($(REALTIME),yes)
    DEFS    += -D__MACOSX_CORE__
endif

%.o : $(SRC_PATH)/%.cpp
    $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@

all : $(PROGRAMS)

$(OBJECTS) : Stk.h

clean : 
    -rm $(OBJECT_PATH)/*.o
    -rm $(PROGRAMS)

strip : 
    strip $(PROGRAMS)

MIDITest: MIDITest.cpp RtMidi.o
    $(CC) $(CFLAGS) $(DEFS) -o MIDITest MIDITest.cpp $(OBJECT_PATH)/RtMidi.o
$(LIBRARY)
###################################################################

Regards,
Ian

Ian Stevenson
Lecturer in Music Technology
School of Communication Arts, University of Western Sydney
Room BD1.17, Werrington South Campus
Locked Bag 1797, SOUTH PENRITH  DC  NSW  1797
t:  02 9852 5403, f: 02 9852 5534, e: i.stevenson@uws edu.au
***************************************************************
This email is confidential correspondence. If you are not the intended
recipient of this message as set out in the distribution fields above,
please contact the School of Communication Arts on 61 2 9852 5570 to
advise. Please remove the message from your system and consciousness, and do
not forward the message to any other person or entity. The views expressed
herein are not necessarily those of the University of Western Sydney.
***************************************************************