title: Getting started with the Halide programming language?
body: <p>I'm trying to get started with a <strong>domain-specific language (C++ extension) for image processing</strong> called <a href="http://halide-lang.org/" rel="nofollow"><strong>Halide</strong></a>.</p>
  
  <p>Following the <a href="https://github.com/halide/Halide#readme" rel="nofollow">Halide README</a>, here's what I've tried:</p>
  
  <ol>
  <li>Downloaded the <a href="https://github.com/halide/Halide/downloads" rel="nofollow">Ubuntu 12.04 Halide binary</a>, and extracted in a directory called <code>~/halide</code>.</li>
  <li>In the <code>~/halide</code> directory, I created <code>hello_halide.cpp</code>, as described in the <code>Using Halide</code> section of <a href="https://github.com/halide/Halide#readme" rel="nofollow">this page</a>.</li>
  <li><p>Tried to compile <code>hello_halide.cpp</code>: </p>
  
  <p><code>g++-4.6 -std=c++0x hello_halide.cpp -L halide -lHalide -ldl -lpthread -o hello_halide</code></p>
  
  <p>But, g++ can't find libhalide:</p>
  
  <p><code>/usr/bin/ld: error: cannot find -lHalide</code></p></li>
  <li><p>Tried adding <code>~/halide</code> to my <code>$PATH</code> and <code>$LD_LIBRARY_PATH</code>, but this didn't help.</p></li>
  </ol>
  
  <p><strong>How can I compile this basic <code>hello_halide.cpp</code> Halide program?</strong></p>
  
  <hr>
  
  <p>Notes:</p>
  
  <ul>
  <li>CUDA is one of Halide's dependencies. I have CUDA installed, and I can compile/run CUDA programs.</li>
  <li>I'm using Ubuntu 12.04.</li>
  <li>My g++ version is 4.6.3.</li>
  </ul>