title: Calling c++ function, from Python script, on a Mac OSX
body: <p>I've a c++ code on my mac that uses non-standard lybraries (in my case, OpenCV libs) and need to compile this so it can be called from other computers (at least from other mac computers). Runned from python. So I've 3 fundamental questions:</p>
  
  <ol>
  <li>How to compile my project so it can be used from python? I've read
  that I should create a *.so file but how to do so?</li>
  <li>Should it work like a lib, so python calls some specific functions,
  chosen in python level?</li>
  <li>Or should it contain a <strong>main</strong> function that is executed from
  command line?</li>
  </ol>
  
  <p>Any ideas on how to do so? PS: I'm using the eclipse IDE to compile my c++ project.</p>
  
  <p>Cheers,</p>