aboutsummaryrefslogtreecommitdiff
path: root/README.txt
blob: 3fd81089cdc7e4ec6742d7bd76fd6be359c5b7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
updated for Linux on 2012-09-12


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

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 :

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=<path to pd _sources_> --with-gem=<path to gem _sources_>

for example :

./configure --with-pd=/usr/local/pd --with-gem=/usr/local/pd/gem

then, compile it :

make clean
make

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


===== MAC OSX (intel and powerPC) =====


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=<path to pd _sources_> --with-gem=<path to gem _sources_>

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 ::

  cp *.pd_darwin /Applications/Pd-0.40.3-extended-20080315.app/Contents/Resources/extra/Gem/ for example