title: Qt5 install on OSX -qt-xcb
body: <p>I am stuck with a problem installing Qt5 on OSX.</p>
  
  <p>The <a href="http://qt-project.org/doc/qt-5.0/qtdoc/requirements-mac.html" rel="nofollow noreferrer">Qt Requirements for Mac OSX</a> are done - Xcode and command line are installed. Then I followed the steps:</p>
  
  <pre><code> # mkdir qt5
   # cd qt5
   # git clone git://gitorious.org/qt/qtbase.git
   # cd qt5
   # ./configure
   The test for linking against libxcb and support libraries failed!
   You might need to install dependency packages, or pass -qt-xcb.
  </code></pre>
  
  <p>Then I also tried</p>
  
  <pre><code> # cd qtbase
   # ./configure -prefix $HOME/development/macosx/qt5  -nomake docs -nomake examples -nomake demos -nomake tests  -opensource -confirm-license -release -no-c++11
   Unknown part docs passed to -nomake.
   # ./configure
   The test for linking against libxcb and support libraries failed!
   You might need to install dependency packages, or pass -qt-xcb.
  </code></pre>
  
  <p>Some other links on related problems are:</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without">&quot;Failed to load platform plugin &quot;xcb&quot; &quot; while launching qt5 app on linux without qt installed</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/14424158/qt5-installation-problems">Qt5 installation problems</a></p></li>
  </ul>
  
  <p>Then <a href="http://xquartz.macosforge.org/landing/" rel="nofollow noreferrer">Xquartz</a> was also installed, supposing that the problem is because X11 is missing on OSX Mountain Lion, restarted the computer and tried the installation again. It didn't solved the problem a bit.</p>
  
  <p>On Linux Qt5 installation was nice with no hustle. But on OSX it doesn't work.</p>
  
  <p>I hope someone can give any suggestions.</p>