aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
blob: e7e537f7ca47009bb6221ac7878385ac98354828 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105



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