I’m building Qt 4.6.3 using
sudo ./configure -opengl -opensource -confirm-license
Basic XLib functionality test failed!
sudo apt-get install libxext-dev
All the OpenGL functionality tests failed!
I couldn’t figure out which exact package but I did the following which should update all required packages:
sudo apt-get build-dep libqt4-dev