title: Python.h: No such file or directory
body: <p>I recently installed KDevelop 4 for C++ development on my Macbook Pro running Ubuntu 12.04 LTS.</p>
  
  <p>I want to embed Python application in my C++ code. To do that, one needs to include the Python.h header file. So, I did that.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;Python.h&gt;
  
  int main(int argc, char **argv) {
      Py_Initialize();
      return 0;
  }
  </code></pre>
  
  <p>However, on running, I received the following response from the IDE:</p>
  
  <pre><code>fatal error: Python.h: No such file or directory
  </code></pre>
  
  <p>However, I found the problem soon enough. I hadn't downloaded the python-dev package. So, I did that. I ran again but the same error was there again. So, I thought it must be an issue with the header file not being included by KDevelop. Thus, I added the relevant folder to the include path and KDevelop immediately recognized that by removing the red underline beneath the second include statement in the code above.</p>
  
  <p>But still, the problem remains. I get the same error. Would appreciate any help or inputs you guys can provide :-)</p>
  
  <p>Thanks a lot.</p>
  
  <p>EDIT: Some details that I missed mentioning earlier are that KDevelop is using cmake for my project. I guess the reason my problem is occurring is because cmake doesn't know the appropriate compiler and linker paths. I would appreciate any help in setting the correct paths for cmake.</p>