The error message does not provide much information about the actual XLib failure error.
To get additional information about the error that caused the error, you can do the xlib tests:
$ cd <Qt_Source_Directory>/config.tests/x11/xlib/ $ make g++ -Wl,-O1 -o xlib xlib.o -L/usr/X11R6/lib -ltcg -lXext -lX11 -lm /usr/bin/ld: cannot find -ltcg collect2: error: ld returned 1 exit status make: *** [xlib] Error 1
In my case above, I used -ltcg, which was interpreted as an explicit library for inclusion. I used this option since it is specified in qt 4.8 configure options as:
Using time code time code
When I looked at the configuration options using ./configure --help , I noticed that this option was not specified. Removing the option from my configuration line fixed my problem.
source share