My precedent mail was wrong. [#out window] works fine with macosx.
Here what i do (I think this is not the best method because things like camera control don't work. But a lot of exemples work fine. Perhaps Mathieu can help to improve operation) :
Put a // like this :
//#include <execinfo.h>
void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; i<nSize; i++) fprintf(stderr,"%d:%s\n",i,symbols[i]); // free(symbols); } in main.c
Put a // before all lines that contain 'gfpost' in /format/quartz.m and in /format/quicktimeapple.c
Copy your gridflow folder in /Pd-extended/Contents/Resources/extra/
In the Terminal : enter 'cd ' and drag your gridflow folder in the Terminal window, then push 'enter'
Enter './configure' and after 'make' At the end you should have a 'gridflow.bundle' file and a 'gridflow.pd_darwin' file in your gridflow folder.
Start PD. Create a new document. Create the object [import gridflow].
It should work.
Hope it will help you. ++
Jack
it seems that i must replace [#out window] by [#out quartz] with macosx. So i have a big problem because i think that it is not good to do ./configure --no-quartz before. Hmm. ++
Jack
Oops, i remove 'gridflow_bundle' from the gridflow folder and it was an error, now ALL WORKS FINE !!!! Yeah ! I can load GF in PD. But i got [#out window] : couldn't create. Any idea ? ++
Jack
I get gridflow.pd_darwin and gridflow_bundle after : //#include <execinfo.h> void blargh () { // void *array[25]; // int nSize = backtrace(array, 25); // char **symbols = backtrace_symbols(array, nSize); // for (int i=0; i<nSize; i++) fprintf(stderr,"%d: %s\n",i,symbols[i]); // free(symbols); } in main.c And : ./configure ./configure --no-quartz --no-quicktimeapple (because i get errors)
Then i put gridflow folder with gridflow.pd_darwin in '/Contents/Resources/Extra' and gridflow_bundle in '/sw/libruby/1.8/powerpc-darwin'.
Then after [import gridflow] i get : setting up Ruby-for-PureData... gridflow.pd_darwin found itself in /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow we are using Ruby version 1.8.2 DIR = "/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/gridflow" ERROR: Cannot load GridFlow-for-Ruby (gridflow.so)
[import] loaded library: gridflow
Can i do //#include <execinfo.h> and ./configure ./configure --no-quartz --no-quicktimeapple ? If it's ok what is the next step ? thx. ++
Jack
On Thu, 13 Dec 2007, Jack wrote:
g++ -bundle -undefined suppress -o gridflow.bundle base/main.o base/ grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/ number.2.o base/number.3.o base/number.4.o format/x11.o format/ quartz.o format/aalib.o format/jpeg.o format/png.o format/ quicktimeapple.o -L/Users/rybn12/lib -L/usr/local/lib -L/sw/lib -lm - L/usr/X11R6/lib -L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/ lib64 -lX11 -lXext -lobjc -framework Cocoa -laa -ljpeg -lpng -lz - framework Quicktime -L. -lruby -ldl -lcrypt -lm /usr/bin/ld: -undefined error or -undefined define_a_way must be used when -twolevel_namespace is in effect
apparently, this is fixed in 0.8.5... now if you fix the problem with 0.8.5 the way I just said in another mail, it might work. Please tell me if it does, so that I can fix it in my copy too.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada