title: Trouble installing Dlib for python on Mac OSX 10.10
body: <p>I'm trying to install dlib-18.16 for python on my computer (running Mac OSX 10.10). I have boost python installed as well as X11, but I've been running into trouble when running ./compile_dlib_python_module.bat as instructed to after downloading the files.</p>
  
  <p>The errors I get are numerous, but look something like this </p>
  
  <pre><code>[  1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o
  In file included from /Users/xxx/Downloads/dlib-18.16/dlib/gui_widgets/fonts.cpp:14:
  /Users/xxx/Downloads/dlib-18.16/dlib/gui_widgets/nativefont.h:313:21: error: use
        of undeclared identifier 'XAllocColor'
                      XAllocColor(d, cmap, &amp;xcol);
  </code></pre>
  
  <p>This continues for a while and ends with </p>
  
  <pre><code>/Users/xxx/Downloads/dlib-18.16/dlib/gui_widgets/nativefont.h:400:21: error: use
        of undeclared identifier 'XFillRectangle'
                      XFillRectangle(d, pix, gc, 0, 0, width, height);
                      ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  make[2]: *** [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1
  make[1]: *** [dlib_build/CMakeFiles/dlib.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>I've checked for some of the missing functions like XFillRectangle, and found them declared in some .h files in the anaconda install of python (when looking at the dlib_build files, the installer seems to have located the anaconda install). Does anyone have any ideas as to how to fix this? </p>