<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Argghh, I didn't try the objects and they freeze (or sometime crash) my PD.<div>The objects draw perfectly under PD but i got this error :</div><div>error: [pix_opencv_contours_convexity]: cannot handle this format (1234567) !</div><div>or</div><div>[pix_opencv_haarcascade]: ERROR: Could not load classifier cascade</div><div>Why ?</div><div><div>Any idea ?</div><div>++</div><div><br></div><div>Jack</div><div><br></div><div><br><div><div>Le 30 avr. 08 à 19:57, Jack a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"> OK, now it works on PowerPC, MacOSX.4.11<div><br><div>Here the method :</div><div><br></div><div>• Download this three libraries with Fink : libjpeg + libpng3 + libtiff</div><div><br></div><div>• In Terminal :</div><div>cvs -d:pserver:<a href="mailto:anonymous@opencvlibrary.cvs.sourceforge.net">anonymous@opencvlibrary.cvs.sourceforge.net</a>:/cvsroot/opencvlibrary login</div><div>---->  then hit 'enter' on your keyboard</div><div>cvs -z3 -d:pserver:<a href="mailto:anonymous@opencvlibrary.cvs.sourceforge.net">anonymous@opencvlibrary.cvs.sourceforge.net</a>:/cvsroot/opencvlibrary co -P opencv</div><div>----> download opencv sources</div><div><br></div><div>• with a text editor, open the file : cvcap_qt.cpp</div><div>look for '<span class="Apple-style-span" style="font-family: Courier; ">__BEGIN__<span class="Apple-style-span" style="font-family: Helvetica; ">' and change it by '<span class="Apple-style-span" style="font-family: Courier; ">__BEGIN__{<span class="Apple-style-span" style="font-family: Helvetica; ">'</span></span></span></span></div><div><div>look for '<span class="Apple-style-span" style="font-family: Courier; ">__END__</span>' and change it by '<span class="Apple-style-span" style="font-family: Courier; ">}__END__</span>'</div><div><div>---->  save</div><div><br></div></div></div><div>• In Terminal</div><div>---->  go to your opencv folder you just download and create a new folder 'build' :</div><div>cd blabla/opencv</div><div>mkdir build</div><div>cd build</div><div>../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"</div><div>make</div><div>sudo make install</div><div>---->   enter your password</div><div><br></div><div>• With you browser go to :</div><div><a href="http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv">http://hangar.org/wikis/lab/doku.php?id=start:puredata_opencv</a></div><div>---->   download pix_opencv-0.1a.tar.gz and decompress all :</div><div><a href="http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz">http://hangar.org/wikis/lab/pd/pix_opencv-0.1a.tar.gz</a></div><div>---->   download PD-extended sources and decompress all :</div><div><a href="http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2">http://downloads.sourceforge.net/pure-data/Pd-0.39.3-extended.tar.bz2</a></div><div><div>---->   download the makefile for macosx :</div><div><div><a href="http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin">http://hangar.org/wikis/lab/pd/opencv/Makefile.darwin</a></div><div><br></div><div><div>• In the Finder :</div></div><div>---->   change 'Makefile.darwin' by 'Makefile' and then overwrite the 'Makefile' in 'pix_opencv' folder you just download</div><div><br></div><div><div><div>• With a text editor :</div></div></div><div>---->   open this new 'Makefile' and change :</div><div></div><div>PD_DIR = /*/Pd-0.39.3-extended/pd (enter the path of the 'pd' folder in '<span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">Pd-0.39.3-extended' folder you just download from sourceforge)</span></div><div>GEM_DIR = /*/Pd-0.39.3-extended/Gem  (enter the path of the 'Gem' folder in '<span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">Pd-0.39.3-extended' folder you just download from sourceforge)</span></div><div><font class="Apple-style-span" face="'Lucida Grande'"><span class="Apple-style-span" style="font-family: Helvetica; "><div>---->   save</div><div></div></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'"><span class="Apple-style-span" style="font-family: Helvetica; "><div><div><div><br></div><div>• In Terminal :</div><div>---->   go to the folder 'pix_opencv' with 'cd '</div><div>export MACOSX_DEPLOYMENT_TARGET=10.4</div><div>make clean</div><div>make</div><div><br></div><div>• Then copy the '<span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">.pd_darwin' create in the <span class="Apple-style-span" style="font-family: Helvetica; ">'pix_opencv' folder in your '/Applications/Pd-0.40.3-extended-20080315.app/Contents/Resources/extra/Gem/' for exemple</span></span></div><div><br></div><div>Hope it will help and hope i have not made mistake.</div><div>Thx to Lluis for his help.</div><div>++</div><div><br></div><div>Jack</div><div><br></div></div></div></span></font></div><div><br></div></div></div><div><div><div>Le 28 avr. 08 à 12:29, Jack a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hello PD users,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">When i compile opencv, i get this error on macos X.4.11, G4 powerbook :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp: In function `int <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">icvWriteFrame_QT(CvVideoWriter*, const IplImage*)':</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1183: warning: unused <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">variable 'status'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp: In function `CvVideoWriter* <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">cvCreateVideoWriter_QT(const char*, int, double, CvSize, int)':</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1425: error: jump to label <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">'exit'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1310: error: <span class="Apple-converted-space">  </span>from here</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1361: error: <span class="Apple-converted-space">  </span>crosses <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">initialization of 'MediaType** video'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1350: error: <span class="Apple-converted-space">  </span>crosses <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">initialization of 'TrackType** video_track'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">../../../otherlibs/highgui/cvcap_qt.cpp:1330: error: <span class="Apple-converted-space">  </span>crosses <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">initialization of 'const __CFString* out_path'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[3]: *** [cvcap_qt.lo] Error 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[2]: *** [all-recursive] Error 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[1]: *** [all-recursive] Error 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make: *** [all] Error 2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Any idea ?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I followed the instructions from :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port">http://opencvlibrary.sourceforge.net/Mac_OS_X_OpenCV_Port</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanx.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">++</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Jack</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Le 26 avr. 08 à 06:17, marius schebella a écrit :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">got it working!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:lluisgomez@hangar.org">lluisgomez@hangar.org</a> wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However, when I try to load any of them PD gives me this error::</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dlopen(/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">10): Symbol not found: __ZN7GemBase10isRunnableEv</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">  </span>Referenced from:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">/Users/lluisgomezbigorda/pix_opencv/pix_opencv_edge.pd_darwin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">  </span>Expected in: dynamic lookup</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I got this error too, but only when gem was not loaded. when gem is</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">loaded, everything is fine.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">In order to make the opencv objects work I always had to set <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">colorspace</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">RGB. otherwise, I did no see any effect. I think the default on osx is</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">yuv. anyway, will test a little more. great stuff!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">marius.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info">http://lists.puredata.info</a>/<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">listinfo/pd-list</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a></div> </blockquote></div><br></div></div></blockquote></div><br></div></div></body></html>