Download the package here : [[http://hangar.org/wikis/lab/pd/pdp_opencv-0.1a.tar.gz|pdp_opencv-0.1a.tar.gz]] [[http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz|pix_opencv-0.1a.tar.gz]] ===== GNU/Linux ===== (actually only tested in GNU/Linux Ubuntu Gutsy) unpack it :: tar xzvf pix_opencv-0.1a.tar.gz cd into the library folder :: cd pix_opencv or cd pdp_opencv edit the Makefile to fit your system and sources folders: for pix_opencv edit the Makefile and change the values for PD_DIR and GEM_DIR variables for pdp_opencv edit the Makefile.config and change the values for OPENCV_CPPFLAGS, PD_CPPFLAGS, PDP_CFLAGS variables then, compile it :: make clean make and copy the .pd_linux to your externals folder :: cp *.pd_linux /usr/local/lib/pd/extra/ ===== MAC OSX (macintel) ===== (This is only for pix_opencv Actually there is no MACOSX makefile for pdp_opencv.) Just overwrite the Makefile with this one : [[http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin|Makefile.darwin]] then follow the same steps of the GNU/Linux Install (but with pd_darwin instead of pd_linux) ===== MAC OSX (powerPC) ===== • Download this three libraries with Fink : libjpeg + libpng3 + libtiff • In Terminal : cvs -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/opencvlibrary login ----> then hit 'enter' on your keyboard cvs -z3 -d:pserver:anonymous@opencvlibrary.cvs.sourceforge.net:/cvsroot/opencvlibrary co -P opencv ----> download opencv sources • with a text editor, open the file : cvcap_qt.cpp look for '__BEGIN__' and change it by '__BEGIN__{' look for '__END__' and change it by '}__END__' ----> save • In Terminal ----> go to your opencv folder you just download and create a new folder 'build' : cd blabla/opencv mkdir build cd build ../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" make sudo make install ----> enter your password • With you browser go to : http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv ----> download pix_opencv-0.1a.tar.gz and decompress all : http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz ----> download PD-extended sources and decompress all : http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2 ----> download the makefile for macosx : http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin • In the Finder : ----> change 'Makefile.darwin' by 'Makefile' and then overwrite the 'Makefile' in 'pix_opencv' folder you just download • With a text editor : ----> open this new 'Makefile' and change : PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd' folder in 'Pd-0.39.3-extended' folder you just download from sourceforge) GEM_DIR = /*/Pd-0.39.3-extended/Gem (enter the path of the 'Gem' folder in 'Pd-0.39.3-extended' folder you just download from sourceforge) ----> save • In Terminal : ----> go to the folder 'pix_opencv' with 'cd ' export MACOSX_DEPLOYMENT_TARGET=10.4 make clean make • Then copy the '.pd_darwin' create in the 'pix_opencv' folder in your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/Resources/extra/Gem/' for exemple