hi,
...just updated cvs and was re-compiling when I noticed it failing when compiling bonk~? Here's the relevent output:
gcc -O3 -faltivec -maltivec -isysroot /Developer/SDKs/ MacOSX10.4.0.sdk -fPIC -DNEWHASH -DLOCKFREE -DUNISTD -DPA_BIG_ENDIAN - DPA_USE_COREAUDIO -DMACOSX -DUSEAPI_PORTAUDIO -DPA19 -DNDEBUG -DPD -I/ Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/ Tcl.framework/Headers -Iextra -Iportmidi_osx -Iportaudio/pa_common - Iportaudio/pablio -Isrc -c -o extra/bonk~/bonk~.os extra/bonk~/bonk~.c gcc -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework Carbon -framework CoreMIDI -Wl,-syslibroot,/Developer/SDKs/ MacOSX10.4.0.sdk -O3 -faltivec -maltivec -isysroot /Developer/SDKs/ MacOSX10.4.0.sdk -dynamiclib -o extra/bonk~.pd_darwin extra/bonk~/ bonk~.os -Lextra -lm -ltcl -ltk -lpthread ld: Undefined symbols: _class_addbang _class_addmethod _class_new _clock_delay
...blahblahblah...
...I tried looking at the sconscript to see where the -dynamiclib stuff is coming from, but got lost at "extras.append (extra_env.SharedLibrary(extra, extra+'/'+extra+'.c'))"
...anyway, the way to do this now would either be "-dynamiclib - undefined suppress" or preferably "-bundle -bundle_loader path/to/pd/ binary"...
thanx, jamie
ps: It also seems as tho x_list.c didn't get upped to devel_0_39? or did I just update before the commit was finished?
...I tried looking at the sconscript to see where the -dynamiclib stuff is coming from, but got lost at "extras.append (extra_env.SharedLibrary(extra, extra+'/'+extra+'.c'))"
above that , in the PLATFORM section youll see something similar for windows:
extra_env.Append(LINKFLAGS='src/pd.dll')
so under extra_env['PLATFORM'] == 'darwin', try something like this: extra_env.Append(LINKFLAGS='-bundle -bundle_loader src/pd')
ps: It also seems as tho x_list.c didn't get upped to devel_0_39? or did I just update before the commit was finished?
yeah, it was missing the other day..
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On Aug 3, 2005, at 1:27 PM, ix@replic.net wrote:
...I tried looking at the sconscript to see where the -dynamiclib stuff is coming from, but got lost at "extras.append (extra_env.SharedLibrary(extra, extra+'/'+extra+'.c'))"
above that , in the PLATFORM section youll see something similar for windows:
extra_env.Append(LINKFLAGS='src/pd.dll')
so under extra_env['PLATFORM'] == 'darwin', try something like this: extra_env.Append(LINKFLAGS='-bundle -bundle_loader src/pd')
...good idea, in that it does insert the correct linkflags, but - bundle conflicts with -dynamiclib, so we need to figure out where that's coming from: I'd guess it's something to do with the extra_env.SharedLibrary() directive, but I don't know where that's pulling info from...
thanx, jamie
sorry ... x_list.c is in now ...
so under extra_env['PLATFORM'] == 'darwin', try something like this: extra_env.Append(LINKFLAGS='-bundle -bundle_loader src/pd')
...good idea, in that it does insert the correct linkflags, but - bundle conflicts with -dynamiclib, so we need to figure out where that's coming from: I'd guess it's something to do with the extra_env.SharedLibrary() directive, but I don't know where that's pulling info from...
ok ... this is fixed ... please test ...
t
On Aug 4, 2005, at 7:02 AM, Tim Blechmann wrote:
sorry ... x_list.c is in now ...
so under extra_env['PLATFORM'] == 'darwin', try something like this: extra_env.Append(LINKFLAGS='-bundle -bundle_loader src/pd')
...good idea, in that it does insert the correct linkflags, but - bundle conflicts with -dynamiclib, so we need to figure out where that's coming from: I'd guess it's something to do with the extra_env.SharedLibrary() directive, but I don't know where that's pulling info from...
ok ... this is fixed ... please test ...
...cool, just tried it and it works! Well, it does use the old "- bundle -undefined suppress -flat_namespace" thing, but at least we aren't "dynamiclib"-ing anymore :-)
back to testing, jamie
...cool, just tried it and it works! Well, it does use the old "- bundle -undefined suppress -flat_namespace" thing, but at least we aren't "dynamiclib"-ing anymore :-)
feel free to do a clean solution ;-)
t