Qt has hard coded X11 paths in its files. This is how I change them to tell Qt to look elsewhere for the X11 files it needs
Code:
for file in $(grep -lr "X11R6" *)
do
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $file
done
However, as I stated in my first post, Qt is looking for the header file, not the library.