<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=24&amp;t=7948" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2012-05-14T09:46:56+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=24&amp;t=7948</id>
<entry>
<author><name><![CDATA[cohenguy1]]></name></author>
<updated>2012-05-14T09:46:56+01:00</updated>
<published>2012-05-14T09:46:56+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34366#p34366</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34366#p34366"/>
<title type="html"><![CDATA[Implement Opencv on DARwIn-OP]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34366#p34366"><![CDATA[
Here is out guide to install opencv2.2 on the darwin:<br /><br />sudo apt-get install cmake g++ build-essential pkg-config cmake-qt-gui libgtk2.0-dev libavformat-dev libswscale-dev <br />sudo apt-get install bzip2 libavcodec-dev libavfilter-dev libjpeg-dev libtiff-dev libjasper-dev libpng-dev zlib1g-dev<br />sudo apt-get install libgstreamer0.10-dev libv4l-dev libxine-dev libdc1394-22-dev <br /><br />extract library OpenCV-2.2.0 (from OpenCV-2.2.0.tar.bz2)<br />mv OpenCV-2.2.0/ ./Documents/opencv<br /><br />now install ffmpeg:<br /><!-- m --><a class="postlink" href="http://ubuntuforums.org/showthread.php?t=786095">http://ubuntuforums.org/showthread.php?t=786095</a><!-- m --><br /><br />Just the section about ffmpeg (no need for x264 or anything else). Don't forget to install the dependencies.<br /><br />This thread is about installing ffmpeg in full version. it is installed in /home/username/ffmpeg/ffmpeg_201111051415-git-1_i386.deb<br />You can remove it from your system anytime using:<br />dpkg -r ffmpeg<br /><br />Building the OpenCV Directory<br />=======================<br />cd ./Documents/opencv<br />mkdir release<br />cd release/<br />cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..<br /><br />Compile:<br />cd release/<br />make -j [num_of_threads]<br />make install<br /><br />includes are now in: /usr/local/include/opencv<br />links are now in: /usr/local/lib<br />-- IF THIS IS NOT WORKING, REPEAT THE LAST STEP -- IF STILL NOT WORKING, run:<br />sudo ldconfig<br /><br />configuring projects (makefile):<br />g++ -o my_example my_example.cpp -lopencv_core -lopencv_imgproc -lopencv_calib3d -lopencv_video <br />-lopencv_features2d -lopencv_ml -lopencv_highgui -lopencv_objdetect -lopencv_contrib -lopencv_legacy<br /><br />OR use the pkg:<br />1. pkg-config opencv --libs  # should print something like -lopencv_core -lopencv_imgproc ...<br />2. g++ -o my_example my_example.cpp `pkg-config opencv --cflags --libs`<br /><br /><br />ERRORS<br />========<br /><br />1. If you installed opencv on your linux machine and are able to compile opencv programs but cannot run them and are receiving the following error :<br /><br />error while loading shared libraries: libcxcore.so.2: cannot open shared object file: No such file or directory<br /><br />This means that the program is not able to locate the shared libraries it needs to execute. <br />To sort this out you to have set the LD_LIBRARY_PATH environment variable to the path of your opencv lib directory. <br />This directory should be located in your opencv installation directory(if you installed opencv using the tar rather than using your linux distribution repositories). <br />You can do this by the following command (assuming you have installed opencv in your user directory in a folder named &quot;opencv&quot; :<br /><br />export LD_LIBRARY_PATH=/home/username/Documents/opencv/release/lib<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2938">cohenguy1</a> — Mon May 14, 2012 9:46 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JaneSun]]></name></author>
<updated>2012-05-06T22:37:25+01:00</updated>
<published>2012-05-06T22:37:25+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34326#p34326</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34326#p34326"/>
<title type="html"><![CDATA[Implement Opencv on DARwIn-OP]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7948&amp;p=34326#p34326"><![CDATA[
Opencv with DARwIn-OP, anyone?? <br /><br />I upgraded DARwIn to ubuntu 10.10 and installed opencv2.2. Tries to opencv working with robotis source code. The plan was to ignore the vision part of the source code and use opencv only. So far, opencv has only succeeded to catch DARwIn's camera in opencv sample projects, it seems that Darwin's framework libraries conflict with opencv's. whoever comes first in the headers will cause (syntax) errors on the later one. <br /><br />Scratching head for 2 days.  <img src="http://forum.robosavvy.com/images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" />  <img src="http://forum.robosavvy.com/images/smilies/icon_mad.gif" alt=":x" title="Mad" /> <br />Feel free to drop me email: <!-- e --><a href="mailto:suncy0012@gmail.com">suncy0012@gmail.com</a><!-- e --> <br />Thanks enormously.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3344">JaneSun</a> — Sun May 06, 2012 10:37 pm</p><hr />
]]></content>
</entry>
</feed>