Hey all,
I'm almost there! so building gem works, but linking dies with the PD symbols.
I have the right m_pd.h stuff in /usr/local/include, but being on OSX no binary in /usr/local/bin.
Should I just copy the binary from the .app into /usr/local/bin? Or is something else different happening here?
g++ -o Gem.pd_darwin -framework QuickTime -framework Carbon -framework AGL -framework OpenGL Base/*.o Controls/*.o Geos/*.o Manips/*.o MarkEx/*.o Nongeos/*.o Particles/*.o Pixes/*.o openGL/*.o -ldl -lz -lm -lpthread ld: Undefined symbols: _main _canvas_getcurrent _error _gensym _atom_getint _class_addmethod _outlet_anything _outlet_free _outlet_new _post _inlet_free _inlet_new _clock_delay _clock_getsystime _clock_gettimesince _clock_new _clock_unset _atom_getfloat _atom_getsymbol _class_doaddfloat _garray_class _pd_findbyclass _startpost _s_float _atom_string _class_addlist _class_addcreator _class_new _class_sethelpsymbol _pd_new _class_addbang _outlet_list _outlet_float _outlet_symbol _s_list _clock_free _s_ _outlet_bang _canvas_makefilename _class_addanything _dsp_add _nullfn _s_signal _garray_getfloatarray _canvas_getdir _open_via_path _atom_getfloatarg _freebytes _getbytes _s_bang _floatinlet_new _class_addsymbol _resizebytes _pd_bind _pd_unbind _s_symbol _garray_redraw recordQT::getCodecName(int) recordQT::getCodecDescription(int) make: *** [Gem.pd_darwin] Error 1
Thanks all.
Almost there!
.b.
Hi again,
So after more wrestling I noticed this in the gem configure output:
checking whether linker accepts "-bundle -bundle_loader no pd in /bin /sbin /usr/bin /usr/sbin /opt/local/bin /usr/local/bin"... no
So I copied the Resources/bin/pd files to /usr/local/bin and boom all the pd symbols are resvolved.
Still gem does not link:
g++ -o Gem.pd_darwin -bundle -bundle_loader /usr/local/bin/pd -framework QuickTime -framework Carbon -framework AGL -framework OpenGL Base/*.o Controls/*.o Geos/*.o Manips/*.o MarkEx/*.o Nongeos/*.o Particles/*.o Pixes/*.o openGL/*.o -ldl -lz -lm -lpthread ld: Undefined symbols: recordQT::getCodecName(int) recordQT::getCodecDescription(int) make: *** [Gem.pd_darwin] Error 1
I'll just remove the pix_record stuff for now I guess.
.b.
On Fri, May 5, 2006 12:10 pm, B. Bogart said:
Hey all,
I'm almost there! so building gem works, but linking dies with the PD
symbols.
I have the right m_pd.h stuff in /usr/local/include, but being on OSX no
binary in /usr/local/bin.
Should I just copy the binary from the .app into /usr/local/bin? Or is
something else different happening here?
g++ -o Gem.pd_darwin -framework QuickTime -framework Carbon -framework
AGL
-framework OpenGL Base/*.o Controls/*.o Geos/*.o Manips/*.o MarkEx/*.o
Nongeos/*.o Particles/*.o Pixes/*.o openGL/*.o -ldl -lz -lm -lpthread ld: Undefined symbols:
_main _canvas_getcurrent _error _gensym _atom_getint _class_addmethod _outlet_anything _outlet_free _outlet_new _post _inlet_free _inlet_new _clock_delay _clock_getsystime _clock_gettimesince _clock_new _clock_unset _atom_getfloat _atom_getsymbol _class_doaddfloat _garray_class _pd_findbyclass _startpost _s_float _atom_string _class_addlist _class_addcreator _class_new _class_sethelpsymbol _pd_new _class_addbang _outlet_list _outlet_float _outlet_symbol _s_list _clock_free _s_ _outlet_bang _canvas_makefilename _class_addanything _dsp_add _nullfn _s_signal _garray_getfloatarray _canvas_getdir _open_via_path _atom_getfloatarg _freebytes _getbytes _s_bang _floatinlet_new _class_addsymbol _resizebytes _pd_bind _pd_unbind _s_symbol _garray_redraw recordQT::getCodecName(int) recordQT::getCodecDescription(int) make: *** [Gem.pd_darwin] Error 1
Thanks all.
Almost there!
.b.
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
On May 5, 2006, at 2:49 PM, B. Bogart wrote:
Hi again,
So after more wrestling I noticed this in the gem configure output:
checking whether linker accepts "-bundle -bundle_loader no pd in /bin /sbin /usr/bin /usr/sbin /opt/local/bin /usr/local/bin"... no
...sorry I've been incommunicado this week, but I had a performance last night, and it's kentucky derby festival time 8^P
...starting sunday I'll be back to "normal", and will get the configure/make stuff working again on osx...but as a quick hack for you now, I wanted to point out that I no longer compile it as a bundle, but rather as dynamiclib: here's the current xcode 2.2 link line:
/usr/bin/g++-4.0 -o /Users/tigital/puredataDev/Gem/build/Deployment/ Gem.pd_darwin -L/Users/tigital/puredataDev/Gem/build/Deployment - L../../dev/libs -L../GemLibs/FTGL/mac/build -F/Users/tigital/ puredataDev/Gem/build/Deployment -F/Users/tigital/Library/Frameworks - filelist /Users/tigital/puredataDev/Gem/build/GEM_darwin.build/ Deployment/gem_darwin.build/Objects-normal/ppc/Gem.LinkFileList - framework AGL -framework Carbon -framework GLUT -framework OpenGL - framework QuickTime -lftgl -arch ppc -Wl,-single_module -install_name @executable_path/../Resources/extra/Gem.pd_darwin -dynamiclib - mmacosx-version-min=10.3 -undefined dynamic_lookup -lz -lfreetype - Xlinker -Y -Xlinker 100
...two things you'll have to do before you try this:
1. in order to use "-undefined dynamic_lookup" you need to "MACOSX_DEPLOYMENT_TARGET=10.3" + the above or... 2. change that to "-undefined suppress"
hth, jamie