[PD] compiling syncgrain~ on OSX

Thomas Grill gr at grrrr.org
Sat Sep 18 11:49:12 CEST 2004


Hi Hans-Christoph,
there seems to be a mismatch between the PD header file and the PD
executable.
At compilation time, flext obviously sees devel_0_37, including tooltips
etc., but the executed binary seems to be plain 0.37.

best greetings,
Thomas

>
> I am in the process of writing a Darwin makefile for [syncgrain~].  I
> got it compiling fine, but when I fun it, it crashed Pd and dumps these
> messages:
>
> dyld: ./pd Undefined symbols:
> /Users/hans/cvs/pure-data/externals/footils/syncgrain/pd-darwin/
> syncgrain~.pd_darwin undefined reference to _class_settip expected to
> be defined in the executable
> /Users/hans/cvs/pure-data/externals/footils/syncgrain/pd-darwin/
> syncgrain~.pd_darwin undefined reference to _garray_updatetime expected
> to be defined in the executable
> /Users/hans/cvs/pure-data/externals/footils/syncgrain/pd-darwin/
> syncgrain~.pd_darwin undefined reference to _inlet_settip expected to
> be defined in the executable
>
> Here's how I compiled it (FYI, I put libflext.a in
> ../../grill/flext/source):
>
> cd ../../externals/footils/syncgrain/ && make -f makefile.pd-darwin
> g++ -c -O6 -fno-rtti  -DFLEXT_SYS=2 -DFLEXT_ATTRIBUTES
> -I../../../pd/src -I/usr/local/include/SndObj
> -I../../grill/flext/source -I../../grill/flext/source
> syncgrain~/buftable.cpp -o pd-darwin/buftable.o
> g++ -c -O6 -fno-rtti  -DFLEXT_SYS=2 -DFLEXT_ATTRIBUTES
> -I../../../pd/src -I/usr/local/include/SndObj
> -I../../grill/flext/source -I../../grill/flext/source
> syncgrain~/BufSyncGrain.cpp -o pd-darwin/BufSyncGrain.o
> g++ -c -O6 -fno-rtti  -DFLEXT_SYS=2 -DFLEXT_ATTRIBUTES
> -I../../../pd/src -I/usr/local/include/SndObj
> -I../../grill/flext/source -I../../grill/flext/source
> syncgrain~/main.cpp -o pd-darwin/main.o
> g++ ../../grill/flext/source/libflext.a   -bundle -bundle_loader
> ../../../pd/bin/pd -framework veclib  pd-darwin/buftable.o
> pd-darwin/BufSyncGrain.o pd-darwin/main.o
> ../../grill/flext/source/libflext.a /usr/local/lib/libsndobj.a -lm -o
> pd-darwin/syncgrain.pd_darwin
> chmod 755 pd-darwin/syncgrain.pd_darwin
> mv pd-darwin/syncgrain.pd_darwin pd-darwin/syncgrain~.pd_darwin
> rm pd-darwin/main.o pd-darwin/BufSyncGrain.o pd-darwin/buftable.o
> install -p -m0444
> ../../externals/footils/syncgrain/pd-darwin/*.pd_darwin
> installroot/Applications/Pd.app/Contents/Resources/lib/pd/extra
>
>
>
>
> .hc
> ________________________________________________________________________
> ____
>
> "[W]e have invented the technology to eliminate scarcity, but we are
> deliberately throwing it away
> to benefit those who profit from scarcity."
> -John Gilmore





More information about the Pd-list mailing list