title: Cross Compilation for iOS! what it takes at all?
body: <p>I am supposed to use <a href="http://podofo.sourceforge.net/" rel="nofollow noreferrer">Podofo</a>
  library in my iPhone project, in order to deal with PDF. Podofo is a library written in 'C', which allows you to play with PDF's. Now this Podofo does already have some other dependencies on other libraries or frameworks, like ..</p>
  
  <p>freetype2,
  fontconfig,
  etc.
   which can all be satisfied just by installing <a href="http://www.macports.org/" rel="nofollow noreferrer">Macports</a> on your Mac OSX. </p>
  
  <p>Intially I tried to create a static library from Podofo source files using commands given on the Podofo website. It did create a library, but it was not build for arm architecture. So when I tried to include that library in my Project, it threw error. So I started searching for the steps for cross compilation for iOS. The posts that I read says, that the process is quite painful. </p>
  
  <p>I see one around, in which I can directly add the C-Source files to my project and use it. 
  But still I have some question regarding cross-compilation+static library.</p>
  
  <p>Is it really <a href="https://sites.google.com/site/michaelsafyan/software-engineering/haunted-by-an-ancient-post-about-iphone-cross-compilation-and-cmake-based-builds" rel="nofollow noreferrer">a very complex process</a>? I know <a href="https://stackoverflow.com/questions/897289/what-is-cross-compilation">what is cross compilation</a>. But I don't know the exact steps to do it using XCode or <a href="https://stackoverflow.com/questions/10315039/what-must-i-do-with-c-libraries-on-cross-compilation">any other tool</a>, so that the compiled build can be used in iPhone project. Can anyone put some time and effort, to list down all the possible steps and pointers, so that guys like me can have it as a reference in future. </p>