libQtGui.so: undefined reference to `FcFreeTypeQueryFace’

When building in QT I got the following error:

/software/qt/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace’
collect2: ld returned 1 exit status

The solution can be found here but that wasn’t enough. While compiling fontconfig-2.4.2 I had missing dependencies:

checking for LIBXML2… configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:  No package ‘libxml-2.0′ found

Installing libxml2-devel (not libxml2) got me moving again.