title: Static Qt5 build on Linux: how to handle fonts when deploying?
body: <p>I have created static versions of Qt 5.2.0 libs with these configure options (Ubuntu 12.04):</p>
  
  <blockquote>
    <p>-opensource
     -confirm-license
     -force-pkg-config
     -release
     -static
     -prefix '/home/juzzlin/qt5'
     -no-icu
     -opengl desktop
     -no-glib
     -accessibility
     -nomake examples
     -nomake tests
     -qt-zlib
     -qt-libpng
     -qt-libjpeg
     -qt-sql-sqlite
     -qt-xcb
     -qt-pcre
     -v</p>
  </blockquote>
  
  <p>Now, the problem is that when I have compiled and linked my app against these Qt libs, it tries to load fonts from the Qt installation path <code>/home/juzzlin/qt5/lib/fonts</code>. How is this supposed to work? The app works on the machine that I used to compile it, but not on some other machine. I also don't want to install Qt stuff to some system directories with the app, as applications shouldn't do that.</p>
  
  <p>This is the error I get:</p>
  
  <blockquote>
    <p>QFontDatabase: Cannot find font directory /home/juzzlin/qt5/lib/fonts - is Qt installed correctly?</p>
  </blockquote>
  
  <p>How can I force it to search for fonts in some other directory?</p>
  
  <p>The other thing I don't understand is that why I don't have this same problem when cross-compiling for Windows with <em>MXE</em>? It uses practically the same configuring options when compiling Qt libs.</p>