aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-08-27 17:04:17 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-08-27 17:04:17 +0000
commit1a20f9a54e86a5b9b96f595f094419cc7cc3dc7f (patch)
tree6427235c79452bcb19ec73272f58f1a71dad4795
parent59a4f95ef23aad1bced9ebfb5157cbb9edc84a4c (diff)
updated installation instruction for MAC OSX
svn path=/trunk/externals/pdp_opencv/; revision=12118
-rw-r--r--INSTALL36
-rw-r--r--Makefile6
2 files changed, 28 insertions, 14 deletions
diff --git a/INSTALL b/INSTALL
index 75ff14d..02e8297 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,4 @@
-GNU/Linux
+===== GNU/Linux =====
(actually only tested in GNU/Linux Ubuntu Gutsy)
@@ -9,7 +9,6 @@ apt-get install libcv-dev
apt-get install libcvaux-dev
apt-get install libhighgui-dev
-
then get the _SOURCES_ of the pd you are using
and of the GEM or PDP that you are loading
( it might not work if the version
@@ -17,17 +16,11 @@ is different )
then compile the externals :
-cd pix_opencv
-
-or
-
cd pdp_opencv
-edit the Makefile to fit your pd and GEM/PDP sources paths :
-
-for pix_opencv edit the Makefile and change the values for PD_DIR and GEM_DIR variables
+edit the Makefile to fit your pd and PDP sources paths :
-for pix_opencv edit the Makefile and change the values for PD_DIR and PDP_DIR variables
+edit the Makefile and change the values for PD_DIR and PDP_DIR variables
then, compile it ::
@@ -38,4 +31,27 @@ and copy the .pd_linux to your externals folder ::
cp *.pd_linux /usr/local/lib/pd/extra/
+===== 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 /System/Library/Frameworks/ directory ::
+ cp -Rf /Volumes/OpenCV\ Private\ Framework/OpenCV.framework /System/Library/Frameworks/
+
+cd into the library folder ::
+
+ cd pdp_opencv
+
+edit the Makefile to fit your system and sources folders:
+
+edit the Makefile and change the values for PD_DIR and PDP_DIR variables
+
+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/ for example
diff --git a/Makefile b/Makefile
index 8405cb1..afd9b60 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,9 @@ ifeq ($(UNAME),Linux)
EXTENSION = pd_linux
endif
ifeq ($(UNAME),Darwin)
- export MACOSX_DEPLOYMENT_TARGET = 10.3
- OPENCV_DIR = /Users/pd/opencv-1.0.0
- INCLUDES += -I$(OPENCV_DIR)/cv/include -I$(OPENCV_DIR)/cxcore/include -I$(OPENCV_DIR)/cvaux/include -I/sw/include
+ INCLUDES += -I/System/Library/Frameworks/OpenCV.framework/Headers/
LDFLAGS = -bundle -undefined dynamic_lookup
- LIBS = -lm $(OPENCV_DIR)/build/cv/src/.libs/lib_cv.a -L/sw/lib
+ LIBS = -lm -framework OpenCV
EXTENSION = pd_darwin
endif
ifeq (MINGW,$(findstring MINGW,$(UNAME)))