[PD] compiling osx externals / usability

david casal D.Casal at uea.ac.uk
Thu Feb 13 16:14:47 CET 2003


Hey ho,

On Wed, 12 Feb 2003, Adam Lindsay wrote:

> Looks like it. Did you see my email to Michael McGonagle 2 weeks ago? The
> linux-ish flags, for example:
> LINUXLDFLAGS = -export_dynamic  -shared

ah yes, sorry, did see that, just didn't register when I was trying this

>    should pretty much be converted into:
>
> MACOSXLDFLAGS = -bundle -bundle_loader /path/to/pd/bin/pd -flat_namespace

ok tried this, but now getting (from trying to compile cxc/counter):

ld -bundle -bundle_loader /usr/local/pd/bin/pd -flat_namespace -o
cxc.pd_darwin *.o -lc -lm
ld: Undefined symbols:
dyld_stub_binding_helper
saveFP
make: *** [darwin] Error 1

Which is just (on the topic of usability) making me nuts. I am now so
&^%@£ed off that I'm just pining for Debian. But, this is a departmental
computer, and making PD work on OSX is something I said I'd do, precisely
because a lot of MAX/MSP users here would like to/might try PD instead...

But I'm just not getting very far with this. Will try again later if I
feel less depressed  ;)

> Also, if you're modifying a makefile, best to do a bit of modified cut-
> and-paste and create a pd_darwin target alongside the pd_linux target. I
> notice from the error that your makefile is trying to make
> 'rhythm_ioi_histogram.pd_linux', which can create problems on the Mac,
> even if you succeed. ;)

Ah yes, quite. But of course, when you get a makefile like
rhythm_estimator's (which to the ignorant eye looks hugely more
complicated than, say, chaos's, which already has multiple targets), I
just don't even know where to begin separating the bits and declaring
additional targets...

Is there -any- chance that people who made 'cxc' and 'rhythm_estimator'
might take a look at their makefiles to make them more osx friendly (yup,
I realise people have lives)?

Meantime, any comment on error above would help, and be appreciated...

In general, should I just trash makefiles in there (for whatever external
does not have a darwin target) and just slink a darwin target in myself?
Because it seems to me that there is -large- differences in makefile
styles across the externals...which makes it rather confusing.

Is it possible that we (you, the actual developers) might agree on
guidelines for external makefiles, so little bugs like me can better
study/learn the practice and start to understand?

d


> Cheers,
> adam
>
>
>
> >and it does the same for other externals, too. of course, taking those
> >flags out screws things up.
> >
> >Muh?
>
> hum.
>
> >>
> >> david casal said this at Wed, 12 Feb 2003 13:58:16 +0000:
> >>
> >> >
> >> >Hi all,
> >> >
> >> >I keep getting:
> >> >
> >> >In file included from /usr/include/math.h:24,
> >> >                 from bangfilt.c:5:
> >> >/usr/include/architecture/ppc/math.h:228: warning: declaration of `exp'
> >> >shadows a global declaration
> >> >
> >> >and:
> >> >
> >> >In file included from /usr/include/math.h:24,
> >> >                 from rhythm_ioi_histogram.c:22:
> >> >/usr/include/architecture/ppc/math.h:228: warning: declaration of `exp'
> >> >shadows a global declaration
> >> >/usr/include/architecture/ppc/math.h:214: warning: shadowed declaration is
> >> >here
> >> >
> >> >the two above are (respectively) from trying to compile all externals from
> >> >a tweaked makefile in the build/darwin dir, and from trying to compile
> >> >rhythm_estimator.
> >> >
> >> >since I had success in compiling ann.pd_darwin using chaos's makefile, I
> >> >thought I'd venture into more dangerous territory. Obviously foolish of
> >> >me.
> >> >
> >> >(all I wanted was to compile cxc/counter, but it -would- indeed be nice to
> >> >crack compiling all externals on darwin from cvs)
> >> >
> >> >Any thoughts, anyone?
> >> >
> >> >d
> >> >
> >> >david casal                   --0+
> >> >    ---
> >> >d.casal at uea.ac.uk             --9+
> >> >    ---
> >> >ecdc.dyndns.org/dc	      --)+
> >> >
> >> >
> >> >_______________________________________________
> >> >PD-list mailing list
> >> >PD-list at iem.kug.ac.at
> >> >http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
> >>
> >> --
> >> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >>  Adam T. Lindsay                      atl at comp.lancs.ac.uk
> >>  Computing Dept, Lancaster University   +44(0)1524/594.537
> >>  Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
> >> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>
> >>
> >> _______________________________________________
> >> PD-list mailing list
> >> PD-list at iem.kug.ac.at
> >> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
> >>
> >
> >david casal                   --0+
> >    ---
> >d.casal at uea.ac.uk             --9+
> >    ---
> >ecdc.dyndns.org/dc	      --)+
> >
> >
> >_______________________________________________
> >PD-list mailing list
> >PD-list at iem.kug.ac.at
> >http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Adam T. Lindsay                      atl at comp.lancs.ac.uk
>  Computing Dept, Lancaster University   +44(0)1524/594.537
>  Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
>

david casal                   --0+
    ---
d.casal at uea.ac.uk             --9+
    ---
ecdc.dyndns.org/dc	      --)+







More information about the Pd-list mailing list