title: DLib build on Mac
body: <p>I am trying to build dlib18.18. I run the following commands on terminal</p>
  
  <pre><code>cd examples
  cd build
  make -G Xcode ..
  cmake --build . --config Release
  </code></pre>
  
  <p>but I get these errors on below after a while</p>
  
  <blockquote>
    <p>/Users/gyillikci/Downloads/dlib-18.18/dlib/../dlib/gui_core/gui_core_kernel_2.h:11:2: error: "DLIB_NO_GUI_SUPPORT is defined so you can't use the GUI code. Turn
          DLIB_NO_GUI_SUPPORT off if you want to use it."<br/>
    #error "DLIB_NO_GUI_SUPPORT is defined so you can't use the GUI code.  T...
     ^
    /Users/gyillikci/Downloads/dlib-18.18/dlib/../dlib/gui_core/gui_core_kernel_2.h:12:2: error: 
          "Also make sure you have libx11-dev installed on your system"<br/>
    #error "Also make sure you have libx11-dev installed on your system"
     ^
    2 errors generated.</p>
  </blockquote>
  
  <p>How can I overcome DLIB_NO_GUI_SUPPORT and libx11-dev problems.</p>