hi folks
been struggling this evening with getting gridflow to compile on OS X anyone have a success story with this yet?
cheers
Patrick Pagano, B.S.,M.F.A Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2070
On Apr 24, 2005, at 9:19 PM, Patrick Pagano wrote:
been struggling this evening with getting gridflow to compile on OS X anyone have a success story with this yet?
...it runs, that's for sure! but without much other description of
what you've been struggling with, I can only describe some of the
things that I did:
fink's ruby 1.8.1, ruby18-dev, libjpeg, and perhaps other stuff: check
the page above for other stuff...
4. here's what I use for prepare the compile environment (they depend
on pd having been installed by "make" & "make install", where you have
selected your home directory as the pd install prefix...this is very
important!):
export PATH=/sw/bin:/Users/yourlogin/pd-0.38-4/bin:$PATH
export LD_LIBRARY_PATH=/sw/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/sw/lib:$LIBRARY_PATH
export
C_INCLUDE_PATH=/sw/include:/Users/yourlogin/pd-0.38-4/
include:$C_INCLUDE_PATH
export
CPLUS_INCLUDE_PATH=/sw/include:/Users/yourname/pd-0.38-4/
include:$CPLUS_INCLUDE_PATH
./configure --no-aalib --prefix=/sw
.pdrc 7. I also do the following at the new pd ruby prompt:
GridFlow.data_path << "home/projects/gridflow/images" GridFlow.formats[:window] = GridFlow.formats[:quartz]
...the "home/projects/.." should be the path to your
"../gridflow/images" directory, and the second line makes quartz the
default window output...IIRC, this only needs to be typed in once, and
then is remembered at least within the session of pd...
enjoy! jamie
On Mon, 25 Apr 2005, james tittle wrote:
- I also do the following at the new pd ruby prompt:
GridFlow.data_path << "home/projects/gridflow/images" GridFlow.formats[:window] = GridFlow.formats[:quartz]
...the "home/projects/.." should be the path to your "../gridflow/images" directory, and the second line makes quartz the default window output...IIRC, this only needs to be typed in once, and then is remembered at least within the session of pd...
No, it does not remember it. Lines written in the Ruby prompt are per-session. To make them permanent, you have to put them in a file called "~/.gridflow_startup", e.g. "/Users/patrick/.gridflow_startup".
,-o---------o---------o---------o-. ,----. |
| The Diagram is the Program (TM) | | ,-o----------------------------o-.
-o-----------------------------o-' | | Mathieu Bouchard (Montréal QC) | | |---' | http://artengine.ca/matju | | |
-o------------------------------'
i don't think i had set the PATHS correctly. i will try this tonight i built Ruby from source (not fink), that should not matter?
On Apr 25, 2005, at 2:41 PM, Mathieu Bouchard wrote:
On Mon, 25 Apr 2005, james tittle wrote:
- I also do the following at the new pd ruby prompt:
GridFlow.data_path << "home/projects/gridflow/images" GridFlow.formats[:window] = GridFlow.formats[:quartz]
...the "home/projects/.." should be the path to your "../gridflow/images" directory, and the second line makes quartz the default window output...IIRC, this only needs to be typed in once, and then is remembered at least within the session of pd...
No, it does not remember it. Lines written in the Ruby prompt are per-session. To make them permanent, you have to put them in a file called "~/.gridflow_startup", e.g. "/Users/patrick/.gridflow_startup".
,-o---------o---------o---------o-. ,----.
| | The Diagram is the Program (TM) | |
,-o----------------------------o-.-o-----------------------------o-' | | Mathieu Bouchard (Montréal QC) | | |---' | http://artengine.ca/matju | | |
-o------------------------------' _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Patrick Pagano, B.S., M.F.A. Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2082
Patrick Pagano, B.S., M.F.A. Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2082
On Apr 25, 2005, at 2:50 PM, shree wrote:
i don't think i had set the PATHS correctly. i will try this tonight i built Ruby from source (not fink), that should not matter?
...well, I haven't done that, so can't really comment on whether or not it'll matter...as long as it's in a path that gridflow's configure can find, you should be ok...
l8r, jamie
following that instruction i get
In file included from format/quicktimeapple.c.fcs:29:
base/grid.h.fcs:526: warning: declaration does not declare anything
format/quicktimeapple.c.fcs:182: error: 'SeqGrabComponent' is used as a
type,
but is not defined as a type.
format/quicktimeapple.c.fcs:183: error: 'SGChannel' is used as a type,
but is
not defined as a type.
format/quicktimeapple.c.fcs: In member function void FormatQuickTimeCamera::initialize(int, Ruby*, long unsigned int, long unsigned int, long unsigned int)': format/quicktimeapple.c.fcs:214: error:
SeqGrabComponentType'
undeclared
(first use this function)
format/quicktimeapple.c.fcs:214: error: (Each undeclared identifier is
reported
only once for each function it appears in.)
format/quicktimeapple.c.fcs:235: error: m_sg' undeclared (first use this function) format/quicktimeapple.c.fcs:237: error:
SGInitialize' undeclared
(first use
this function)
format/quicktimeapple.c.fcs:239: error: seqGrabDontMakeMovie' undeclared (first use this function) format/quicktimeapple.c.fcs:239: error:
SGSetDataRef' undeclared
(first use
this function)
format/quicktimeapple.c.fcs:241: error: m_vc' undeclared (first use this function) format/quicktimeapple.c.fcs:241: error:
SGNewChannel' undeclared
(first use
this function)
format/quicktimeapple.c.fcs:243: error: SGSetChannelBounds' undeclared (first use this function) format/quicktimeapple.c.fcs:245: error:
seqGrabPreview' undeclared
(first use
this function)
format/quicktimeapple.c.fcs:245: error: SGSetChannelUsage' undeclared (first use this function) format/quicktimeapple.c.fcs:249: error:
channelPlayNormal' undeclared
(first
use this function)
format/quicktimeapple.c.fcs:249: error: SGSetChannelPlayFlags' undeclared (first use this function) format/quicktimeapple.c.fcs:250: error:
channelPlayHighQuality'
undeclared
(first use this function)
format/quicktimeapple.c.fcs:251: error: channelPlayFast' undeclared (first use this function) format/quicktimeapple.c.fcs:252: error:
channelPlayAllData' undeclared
(first
use this function)
format/quicktimeapple.c.fcs:268: error: SGSetGWorld' undeclared (first use this function) format/quicktimeapple.c.fcs:269: error:
SGStartPreview' undeclared
(first use
this function)
format/quicktimeapple.c.fcs: In member function void FormatQuickTimeCamera::close(int, Ruby*)': format/quicktimeapple.c.fcs:313: error:
::SGDisposeChannel' undeclared
(first
use here)
make: *** [format/quicktimeapple.o] Error 1
On Apr 25, 2005, at 3:09 PM, james tittle wrote:
On Apr 25, 2005, at 2:50 PM, shree wrote:
i don't think i had set the PATHS correctly. i will try this tonight i built Ruby from source (not fink), that should not matter?
...well, I haven't done that, so can't really comment on whether or not it'll matter...as long as it's in a path that gridflow's configure can find, you should be ok...
l8r, jamie
Patrick Pagano, B.S., M.F.A. Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2082
Patrick Pagano, B.S., M.F.A. Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2082
On Apr 25, 2005, at 3:22 PM, shree wrote:
following that instruction i get
In file included from format/quicktimeapple.c.fcs:29: base/grid.h.fcs:526: warning: declaration does not declare anything format/quicktimeapple.c.fcs:182: error: 'SeqGrabComponent' is used as a type, but is not defined as a type.
...hmm, seems I haven't updated since Feb! Anyway, it's a simple fix:
somehow an include or two got changed...change the following
Quicktime.framework #includes in /format/quicktimeapple.c:
#include <Quicktime/quicktime.h> #include <Quicktime/movies.h>
should be:
#include <Quicktime/Quicktime.h> #include <Quicktime/Movies.h>
...that should help... jamie
i get a completed gridflow.bundle file is this correct?
i see why you choose no -aalib jamie
but alas
/Users/patrickp/pd/bin/pd -lib gridflow gridflow: can't load library
shoudl there not be a pd.darwin binary?
is it a path?
On Apr 25, 2005, at 2:41 PM, Mathieu Bouchard wrote:
On Mon, 25 Apr 2005, james tittle wrote:
- I also do the following at the new pd ruby prompt:
GridFlow.data_path << "home/projects/gridflow/images" GridFlow.formats[:window] = GridFlow.formats[:quartz]
...the "home/projects/.." should be the path to your "../gridflow/images" directory, and the second line makes quartz the default window output...IIRC, this only needs to be typed in once, and then is remembered at least within the session of pd...
No, it does not remember it. Lines written in the Ruby prompt are per-session. To make them permanent, you have to put them in a file called "~/.gridflow_startup", e.g. "/Users/patrick/.gridflow_startup".
,-o---------o---------o---------o-. ,----.
| | The Diagram is the Program (TM) | |
,-o----------------------------o-.-o-----------------------------o-' | | Mathieu Bouchard (Montréal QC) | | |---' | http://artengine.ca/matju | | |
-o------------------------------' _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Patrick Pagano, B.S.,M.F.A Candidate Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2070
On Apr 25, 2005, at 5:30 PM, Patrick Pagano wrote:
i get a completed gridflow.bundle file is this correct?
i see why you choose no -aalib jamie
but alas
/Users/patrickp/pd/bin/pd -lib gridflow gridflow: can't load library
shoudl there not be a pd.darwin binary?
...here's the last few lines of my compilation:
ruby -w base/source_filter.rb format/quicktimeapple.c
format/quicktimeapple.c.fcs
g++ -fno-common -g -O2 -fno-common -pipe -fno-common
-I/Applications/Pd.app/Contents/Resources/include -I/usr/local/include
-I/include -xc++ -fno-operator-names -fno-omit-frame-pointer
-I/usr/X11R6/include -I /sw/lib/ruby/1.8/powerpc-darwin
-falign-functions=4 -Wall -Wno-unused -O3 -funroll-loops
-fno-omit-frame-pointer -g -fPIC -I.
-I/Users/tigital/puredataDev/gridflow -I -I. -I/sw/include -c
format/quicktimeapple.c.fcs -o format/quicktimeapple.o
In file included from format/quicktimeapple.c.fcs:29:
base/grid.h.fcs:526: warning: declaration does not declare anything
g++ -dynamic -bundle -L"/sw/lib" -o gridflow.bundle base/grid.o
base/main.o base/number.1.o base/number.2.o base/number.3.o
base/bitpacking.o base/flow_objects.o base/flow_objects_for_image.o
base/flow_objects_for_matrix.o format/x11.o format/quartz.o
format/jpeg.o format/png.o format/quicktimeapple.o -L/usr/local/lib
-L/Applications/Pd.app/Contents/Resources/lib -lm -L/usr/X11R6/lib
-lX11 -lXext -lobjc -framework Cocoa -ljpeg -lpng -lz -framework
Quicktime -lruby -ldl -lobjc
ld: warning -L: directory name
(/Applications/Pd.app/Contents/Resources/lib) does not exist
ruby -w base/source_filter.rb bridge/puredata.c bridge/puredata.c.fcs
g++ -Ibundled/pd -lm -lruby -bundle -flat_namespace -fno-common -g
-O2 -fno-common -pipe -fno-common
-I/Applications/Pd.app/Contents/Resources/include -I/usr/local/include
-I/include -xc++ -fno-operator-names -fno-omit-frame-pointer
-I/usr/X11R6/include -I /sw/lib/ruby/1.8/powerpc-darwin
-falign-functions=4 -Wall -Wno-unused -O3 -funroll-loops
-fno-omit-frame-pointer -g -fPIC -bundle -undefined suppress
bridge/puredata.c.fcs -xnone -o gridflow.pd_darwin
...and yes, it produces both a gridflow.bundle and a gridflow.pd_darwin: the gridflow.pd_darwin goes in yr typical extras/externals folder, but the gridflow.bundle goes in your ruby installation...I've found that I have to type "sudo make install" in order to get over the permissions in the fink tree:
tiggity:~/puredataDev/gridflow tigital$ sudo make install
Password:
install -c -p -m 0755 gridflow.bundle
/sw/lib/ruby/site_ruby/1.8/powerpc-darwin
mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//base/
install -m 644 base/main.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//base//main.rb
install -m 644 base/flow_objects.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//base//flow_objects.rb
install -m 644 base/test.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//base//test.rb
install -m 644 base/source_filter.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//base//source_filter.rb
mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//bridge/
install -m 644 bridge/puredata.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//bridge//puredata.rb
install -m 644 bridge/placebo.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//bridge//placebo.rb
mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//format/
install -m 644 format/main.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//format//main.rb
mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//extra/
install -m 644 extra/smpte.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//smpte.rb
install -m 644 extra/server_2.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_2.rb
install -m 644 extra/server_1_grid.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_1_grid.rb
install -m 644 extra/server_1_ppm.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_1_ppm.rb
install -m 644 extra/jmax_format.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//jmax_format.rb
install -m 644 extra/puredata_format.rb
/sw/lib/ruby/site_ruby/1.8/gridflow//extra//puredata_format.rb
cp bin/jmax2pd /sw/bin; chmod 755 /sw/bin/jmax2pd
mkdir -p
/Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow/flow_classes
cp pd_help/*.pd /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow
cp doc/*.html /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow
cp doc/flow_classes/*.p*
/Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow/flow_classes
cp gridflow.pd_darwin pd_abstractions/*.pd
/Users/tigital/pd-0.38-4/lib/pd/extra
for z in camera_control motion_detection color mouse centroid
centre_of_gravity fade
apply_colormap_channelwise checkers contrast posterize ravel
remap_image solarize spread
rgb_to_greyscale greyscale_to_rgb rgb_to_yuv yuv_to_rgb; do
cp pd_abstractions/#$z.pd
/Users/tigital/pd-0.38-4/lib/pd/extra/@$z.pd; done
mkdir -p /Users/tigital/pd-0.38-4/lib/pd/extra/gridflow/icons
install -m 644 java/peephole.gif
/Users/tigital/pd-0.38-4/lib/pd/extra/gridflow/icons/peephole.gif
(cd devices4ruby; make install)
install -m644 ioctl.rb /sw/lib/ruby/1.8/linux//ioctl.rb
install -m644 SoundPCM.rb /sw/lib/ruby/1.8/linux//SoundPCM.rb
install -m644 ParallelPort.rb /sw/lib/ruby/1.8/linux//ParallelPort.rb
install -m644 SoundMixer.rb /sw/lib/ruby/1.8/linux//SoundMixer.rb
tiggity:~/puredataDev/gridflow tigital$
hth, jamie
not working for me i still get
/Users/patrickp/pd/bin/pd -lib ~/pd/GRIDFLOW/gridflow load_object: Symbol "_gridflow_setup" not found /Users/patrickp/pd/GRIDFLOW/gridflow: can't load library
where exactly should .bundle end up?
On Apr 25, 2005, at 6:31 PM, james tittle wrote:
On Apr 25, 2005, at 5:30 PM, Patrick Pagano wrote:
i get a completed gridflow.bundle file is this correct?
i see why you choose no -aalib jamie
but alas
/Users/patrickp/pd/bin/pd -lib gridflow gridflow: can't load library
shoudl there not be a pd.darwin binary?
...here's the last few lines of my compilation:
ruby -w base/source_filter.rb format/quicktimeapple.c format/quicktimeapple.c.fcs g++ -fno-common -g -O2 -fno-common -pipe -fno-common -I/Applications/Pd.app/Contents/Resources/include -I/usr/local/include -I/include -xc++ -fno-operator-names -fno-omit-frame-pointer -I/usr/X11R6/include -I /sw/lib/ruby/1.8/powerpc-darwin -falign-functions=4 -Wall -Wno-unused -O3 -funroll-loops
-fno-omit-frame-pointer -g -fPIC -I. -I/Users/tigital/puredataDev/gridflow -I -I. -I/sw/include -c format/quicktimeapple.c.fcs -o format/quicktimeapple.o In file included from format/quicktimeapple.c.fcs:29: base/grid.h.fcs:526: warning: declaration does not declare anything g++ -dynamic -bundle -L"/sw/lib" -o gridflow.bundle base/grid.o base/main.o base/number.1.o base/number.2.o base/number.3.o base/bitpacking.o base/flow_objects.o base/flow_objects_for_image.o base/flow_objects_for_matrix.o format/x11.o format/quartz.o format/jpeg.o format/png.o format/quicktimeapple.o -L/usr/local/lib -L/Applications/Pd.app/Contents/Resources/lib -lm -L/usr/X11R6/lib -lX11 -lXext -lobjc -framework Cocoa -ljpeg -lpng -lz -framework Quicktime -lruby -ldl -lobjc ld: warning -L: directory name (/Applications/Pd.app/Contents/Resources/lib) does not exist ruby -w base/source_filter.rb bridge/puredata.c bridge/puredata.c.fcs g++ -Ibundled/pd -lm -lruby -bundle -flat_namespace -fno-common -g -O2 -fno-common -pipe -fno-common -I/Applications/Pd.app/Contents/Resources/include -I/usr/local/include -I/include -xc++ -fno-operator-names -fno-omit-frame-pointer -I/usr/X11R6/include -I /sw/lib/ruby/1.8/powerpc-darwin -falign-functions=4 -Wall -Wno-unused -O3 -funroll-loops
-fno-omit-frame-pointer -g -fPIC -bundle -undefined suppress
bridge/puredata.c.fcs -xnone -o gridflow.pd_darwin...and yes, it produces both a gridflow.bundle and a gridflow.pd_darwin: the gridflow.pd_darwin goes in yr typical extras/externals folder, but the gridflow.bundle goes in your ruby installation...I've found that I have to type "sudo make install" in order to get over the permissions in the fink tree:
tiggity:~/puredataDev/gridflow tigital$ sudo make install Password: install -c -p -m 0755 gridflow.bundle /sw/lib/ruby/site_ruby/1.8/powerpc-darwin mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//base/ install -m 644 base/main.rb /sw/lib/ruby/site_ruby/1.8/gridflow//base//main.rb install -m 644 base/flow_objects.rb /sw/lib/ruby/site_ruby/1.8/gridflow//base//flow_objects.rb install -m 644 base/test.rb /sw/lib/ruby/site_ruby/1.8/gridflow//base//test.rb install -m 644 base/source_filter.rb /sw/lib/ruby/site_ruby/1.8/gridflow//base//source_filter.rb mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//bridge/ install -m 644 bridge/puredata.rb /sw/lib/ruby/site_ruby/1.8/gridflow//bridge//puredata.rb install -m 644 bridge/placebo.rb /sw/lib/ruby/site_ruby/1.8/gridflow//bridge//placebo.rb mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//format/ install -m 644 format/main.rb /sw/lib/ruby/site_ruby/1.8/gridflow//format//main.rb mkdir -p /sw/lib/ruby/site_ruby/1.8/gridflow//extra/ install -m 644 extra/smpte.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//smpte.rb install -m 644 extra/server_2.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_2.rb install -m 644 extra/server_1_grid.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_1_grid.rb install -m 644 extra/server_1_ppm.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//server_1_ppm.rb install -m 644 extra/jmax_format.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//jmax_format.rb install -m 644 extra/puredata_format.rb /sw/lib/ruby/site_ruby/1.8/gridflow//extra//puredata_format.rb cp bin/jmax2pd /sw/bin; chmod 755 /sw/bin/jmax2pd mkdir -p /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow/flow_classes cp pd_help/*.pd /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow cp doc/*.html /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow cp doc/flow_classes/*.p* /Users/tigital/pd-0.38-4/lib/pd/doc/5.reference/gridflow/flow_classes cp gridflow.pd_darwin pd_abstractions/*.pd /Users/tigital/pd-0.38-4/lib/pd/extra for z in camera_control motion_detection color mouse centroid centre_of_gravity fade
apply_colormap_channelwise checkers contrast posterize ravel remap_image solarize spread
rgb_to_greyscale greyscale_to_rgb rgb_to_yuv yuv_to_rgb; do
cp pd_abstractions/#$z.pd /Users/tigital/pd-0.38-4/lib/pd/extra/@$z.pd; done mkdir -p /Users/tigital/pd-0.38-4/lib/pd/extra/gridflow/icons install -m 644 java/peephole.gif /Users/tigital/pd-0.38-4/lib/pd/extra/gridflow/icons/peephole.gif (cd devices4ruby; make install) install -m644 ioctl.rb /sw/lib/ruby/1.8/linux//ioctl.rb install -m644 SoundPCM.rb /sw/lib/ruby/1.8/linux//SoundPCM.rb install -m644 ParallelPort.rb /sw/lib/ruby/1.8/linux//ParallelPort.rb install -m644 SoundMixer.rb /sw/lib/ruby/1.8/linux//SoundMixer.rb tiggity:~/puredataDev/gridflow tigital$hth, jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Patrick Pagano, B.S.,M.F.A Candidate Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2070
On Mon, 25 Apr 2005, james tittle wrote:
GridFlow.formats[:window] = GridFlow.formats[:quartz]
Forgot to mention, that when using GridFlow-cvs, the above line is not only not needed, but not valid anymore. GridFlow will set [#out window] to be either quartz, x11, or sdl, in that order.
,-o---------o---------o---------o-. ,---. | |
| The Diagram is the Program (TM) | | ,-o-------------o--------------o-.
-o-----------------------------o-' | | Mathieu Bouchard (Montréal QC) | |
---' `-o-- http://artengine.ca/matju -'