<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>sunny.in.th</title>
  <link href="http://localhost:4000/atom.xml" rel="self"/>
  <link href="http://localhost:4000"/>
  <updated>2010-03-12T09:13:01+07:00</updated>
  <id>http://localhost:4000</id>
  
  <author>
    <name>Somchok Sakjiraphong</name>
    <email>s@sunny.in.th</email>
  </author>
  
  
  <entry>
    <title>Installing OpenCV on Snow Leopard</title>
    <link href="http://localhost:4000/2010/02/28/Installing-OpenCV-on-Snow-Leopard.html"/>
   <updated>2010-02-28T00:00:00+07:00</updated>
   <id>http://localhost:4000/2010/02/28/Installing-OpenCV-on-Snow-Leopard</id>
   <content type="html">&lt;h1 id='installing_opencv_on_snow_leopard'&gt;Installing OpenCV on Snow Leopard&lt;/h1&gt;

&lt;p&gt;Checkout the latest version of OpenCV from SVN: &lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='bash'&gt;&lt;span class='nv'&gt;$ &lt;/span&gt;svn co https://code.ros.org/svn/opencv/trunk opencv
&lt;span class='nv'&gt;$ &lt;/span&gt;&lt;span class='nb'&gt;cd &lt;/span&gt;opencv
&lt;span class='nv'&gt;$ &lt;/span&gt;mkdir opencv/build
&lt;span class='nv'&gt;$ &lt;/span&gt;cmake ..
&lt;span class='nv'&gt;$ &lt;/span&gt;ccmake .
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;Press &lt;code&gt;t&lt;/code&gt; to toggle to advance mode and change the following variables:&lt;/p&gt;
&lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='bash'&gt;CMAKE_CXX_COMPILER: /usr/bin/c++-4.0 
CMAKE_C_COMPILER: /usr/bin/gcc-4.0
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img src='http://img.skitch.com/20100228-q7xie23t3jsytw1j8fdbeb2fjx.jpg' alt='Terminal' /&gt;&lt;/p&gt;

&lt;p&gt;Press &lt;code&gt;c&lt;/code&gt; to to configure and then &lt;code&gt;g&lt;/code&gt; to generate and quit. Compile the code by:&lt;/p&gt;
&lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='bash'&gt;&lt;span class='nv'&gt;$ &lt;/span&gt;make -j8
&lt;span class='nv'&gt;$ &lt;/span&gt;sudo make install
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
  </entry>
  
</feed>


