[Stk] Compilation Fails

Ian Stevenson i.stevenson@uws.edu.au
Mon, 12 Jun 2006 13:56:21 +1000


Many thanks Michael,

I created the "Release" directory and it compiled. A little more thought on
my behalf would have solved it but thanks again!

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.
***************************************************************
 



> From: Michael Chinen <mchinen@gmail.com>
> Date: Sun, 11 Jun 2006 15:21:56 +0900
> To: Ian Stevenson <i.stevenson@uws.edu.au>
> Subject: Re: [Stk] Compilation Fails
> 
> Hi Ian,
> 
> I was hoping someone else would reply, because I'm no expert at gcc either.
> 
> But since no one else has I will tell you what I can in case it might be of
> help for you.
> 
> It looks like the problem isn't gcc or g++ compiling the RtMidi.cpp file ,
> but that it can't write the results of compilation, the .o file out for some
> reason.  Verify that the /Release directory exists and that programs have
> permissions to write in it.
> 
> This, you may have tried long ago, or may not be the problem, but anyways,
> good luck and I hope you get it working.
> 
> Best,
> Michael Chinen
> 
> 
> On 6/10/06, Ian Stevenson <i.stevenson@uws.edu.au> wrote:
>> 
>> 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.
>> ***************************************************************
>> 
>> 
>> 
>> _______________________________________________
>> Stk mailing list
>> Stk@ccrma.stanford.edu
>> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>>