title: How to build ZBar SDK with the project instead of using the static library?
body: <p>I am building an iOS, code scanner project using <a href="http://zbar.sourceforge.net/iphone/index.html">ZBar SDK</a>. I am trying to build my project directly from the source of ZBar, rather than including the libzbar.a static library.</p>
  
  <p>I have downloaded the ZBar source which includes the XCode project to build libzbar.a. I tried copying all source files from the project but it didn't work. I keep on getting undefined symbol errors.  </p>
  
  <p>What  source files should be included, considering that I need to support only iOS? </p>
  
  <p>Should the folder structure be strictly followed to build the project?</p>
  
  <p>Would there be any need of build settings if I direcly include the source files?</p>
  
  <p><strong>EDIT:</strong>
  I followed the same folder structure and build settings used in the XCode project of libzbar. I have managed to build the library but it's still failing while linking. I get the error: <code>ld: duplicate symbol _OBJC_METACLASS</code> for all the source files. I have double checked, there are no references to the original libzbar.a static library in the project or more than one occurrence of these source files. If I remove the references for them, the project builds fine, but then fails whenever any symbol from the library is referenced. I think I am still missing something!!</p>