title: Cannot get FreeType library to work in Mac OS X Mountain Lion
body: <p>I have an OpenGL project which works/compiles fine in Windows.<br>
  I wanted to port the application to Mac OS.<br>
  I got the application up and running on Mac, but the text inside the project is not visible.<br> So I decided to use a 3rd party library for text rendering in Mac, I came across FreeType, which has many advantages such as anti-aliasing and UNICODE support.</p>
  
  <p>So, I downloaded the library on my Mac, './configure'd it, did 'make' and 'make install' as I would normally do. 
  <br>Then in Xcode I set search paths for both include and library directories,
  <br><br> <strong>/usr/local/include</strong> and <strong>/usr/local/lib</strong> respectively. <br><br>Then I added 'other linker flags' in Xcode, <strong>freetype-configure --libs</strong> gave me following flags- <br> -<strong>L/usr/local/lib  -lfreetype -lz -lbz2</strong>, I added them in Xcode.</p>
  
  <p>Now, whenever I include a freetype header there is no problem, but when I call any method from the freetype library, it gives me following linker error.</p>
  
  <p><img src="https://i.stack.imgur.com/gYpfv.png" alt="Linker Errors By Xcode"></p>
  
  <p>After looking up on google I found out that I have to set the build targets accordingly, I did that, now my application builds for <strong>i386 x86</strong> the issue still persist.</p>
  
  <p>I also tried following flags while configuring freetype ./<strong>configure CC="gcc -arch i386" CXX="g++ -arch i386"</strong>
  which did not help either.</p>
  
  <p>I am relatively new to Mac OS X/Unix environment, I have previously got freetype working on windows with VS 2008. Any help would be greatly appreciated. </p>