I believe cgc said this around Sat, 9 Nov 2002:
i compiled 0.36 test for for OSX 10.2.1 with the following changes:
add to Makefile INCLUDE:
-I/Library/Frameworks/Tk.framework/Versions/8.4/PrivateHeaders
huh. ./configure on my machine picked this one up automatically (test5), or in any case didn't much need it.
i commented out expr~ since it didn't have a darwin makefile:
#cd ../extra/expr~;make pd_darwin
I reconstructed the makefile from elsewhere (it's also fixed in CVS, IIRC). You should append the code at the end of the message to the existing extra/expr~/makefile.
Additionally, change lines in vexpr.c and vexpr_if.c from: #ifndef MSP ... to ... #if !defined(MSP) && !defined(MACOSX)
Seems to compile fine after that.
i also changed the OPT level to -03.
Hmm, I wonder about that. Someone :) should do some profiling some time. Apple seems to recommend optimizing for code size rather than speed, in general. (I'm also curious about what could be gained by altivec optimizations...)
it runs but the audio on my g3/400 powerbook clicks and drops out when moving windows or adjusting number boxes. renice -20 does help, but doesn't completely eliminate the problem. i'm wondering if maybe portaudio needs some tweaking?
Let's see, you mentioned you're on Jaguar. Moving windows is probably going to continue to be a problem for those of us without Quartz Extreme. Changing number boxes (and just about anything on the TK-GUI level) are in my observation more of a problem in 10.2 than 10.1 because of the patch the MacOSX/Tcl-Tk people made to fix an update bug. In order to fix screen updates, they have made TkAqua more "interrupt-y". :|
Hope that's of some use to someone.
Best, adam
This should be appended to extra/expr~/makefile:
pd_darwin: expr.pd_darwin expr~.pd_darwin fexpr~.pd_darwin MACOSXOBJ = vexp.pd_darwin_o vexp_fun.pd_darwin_o vexp_if.pd_darwin_o .SUFFIXES: .pd_darwin_o
MACOSXCFLAGS = -DMACOSX -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes
-Wno-unused -Wno-parentheses -Wno-switch
MACOSXINCLUDE = -I../../src
.c.pd_darwin_o: cc -g $(MACOSXCFLAGS) $(MACOSXINCLUDE) -o $*.pd_darwin_o -c $*.c
expr.pd_darwin: $(MACOSXOBJ)
cc -bundle -undefined suppress -flat_namespace
-o expr.pd_darwin $(MACOSXOBJ) -lm
rm -f ../expr.pd_darwin
ln -s expr~/expr.pd_darwin ..
expr~.pd_darwin: expr.pd_darwin ln -s expr.pd_darwin expr~.pd_darwin rm -f ../expr~.pd_darwin ln -s expr~/expr~.pd_darwin ..
fexpr~.pd_darwin: expr.pd_darwin ln -s expr.pd_darwin fexpr~.pd_darwin rm -f ../fexpr~.pd_darwin ln -s expr~/fexpr~.pd_darwin ..
install_darwin:
install expr.pd_darwin $(PDEXTERN)
rm -f $(PDEXTERN)/expr~.pd_darwin
rm -f $(PDEXTERN)/fexpr~.pd_darwin
cd $(PDEXTERN);
ln -s expr.pd_darwin expr~.pd_darwin;
ln -s expr.pd_darwin fexpr~.pd_darwin
darwin_clean: rm -f *.pd_darwin_o *.o
Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=