From 997720d18c09050619b00b652e18075a6f065f51 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Thu, 10 Jan 2013 12:16:41 +0000 Subject: - update build instructions - add contour length to infos output of pix_opencv_contours svn path=/trunk/externals/pix_opencv/; revision=16850 --- README.txt | 86 +++++++++++++++----------------------------------------------- 1 file changed, 21 insertions(+), 65 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 3fd8108..bdeda2a 100644 --- a/README.txt +++ b/README.txt @@ -1,86 +1,42 @@ -updated for Linux on 2012-09-12 - +updated for Linux on 03/01/2013 get the source version through svn : svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data pure-data cd pure-data/trunk/externals/pix_opencv +you need a working build toolchain + pix_opencv depends on OpenCV 2.x and >1.5 (for old externals) ===== GNU/Linux ===== -(actually only tested in GNU/Linux Ubuntu) -this new version requiered OpenCV 2.3, available with apt-get since 12.04 : - +# (actually only tested in GNU/Linux Ubuntu) +# this new version requiered OpenCV 2.3, available with apt-get since 12.04 : apt-get install libopencv-dev libcv-dev libhighgui-dev -for other systems, you must build the lib from source, see this : -http://opencv.willowgarage.com/wiki/InstallGuide - -get the _SOURCES_ of the pd you are using -and of the GEM that you are loading -( it might not work if the version -is different ) - -cd into the package folder : - - cd pix_opencv - -configure the package with the appropriate command for your system : - - ./configure --with-pd= --with-gem= - -for example : - -./configure --with-pd=/usr/local/pd --with-gem=/usr/local/pd/gem - -then, compile it : +# for other systems, you can build the lib from source, see this : +# http://opencv.willowgarage.com/wiki/InstallGuide -make clean -make +# get the source : +svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/pix_opencv pix_opencv -and put the *.pd_linux and *.pd files somewhere in Pd's path. You can add the -current directory to the pd search path through Media->Preferences->Path +cd pix_opencv +make +# To use the binaries you can either put them into the same folder as your patch or to add this folder to the search paths of Pd ===== MAC OSX (intel and powerPC) ===== +# install opencv with fink : +fink install opencv-dev -first install openCV MacOS framework - download openCV private framework from http://www.ient.rwth-aachen.de/cms/software/opencv/ - copy the provided OpenCV.framework folder in your /Library/Frameworks/ directory :: - cp -Rf /Volumes/OpenCV\ Private\ Framework/OpenCV.framework /Library/Frameworks/ -this will only install OpenCV 1.5 - -you need OpenCV 2.x to use recent pix_opencv externals -you will find a step by step how to install it on Mac OSX here : -http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port -but this document is quite old... - -get the _SOURCES_ of the pd you are using -and of the GEM that you are loading -( it might not work if the version -is different ) - -cd into the package folder :: - - cd pix_opencv - -configure the package with the appropriate command for your system : - - ./configure --with-pd= --with-gem= - -for example : - -./configure --with-pd=/usr/local/pd --with-gem=/usr/local/pd/gem - -then, compile it :: - - make clean - make - -and copy the .pd_darwin to your externals folder :: +# if you don't have fink, you can build it from source by following this guide : +# http://opencv.willowgarage.com/wiki/InstallGuide - cp *.pd_darwin /Applications/Pd-0.40.3-extended-20080315.app/Contents/Resources/extra/Gem/ for example +# then get the sources and compile : +svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/pix_opencv pix_opencv +cd pix_opencv +make PD_PATH=/path/to/pdextended-app/Contents/Resources/ +# PD_PATH should be ended by something like that : Pd-0.43.4-extended-20121231.app/Contents/Resources/ -- cgit v1.2.1