I noticed while building wxWidgets library on linux or FreeBSD that wxWidgets required other GUI libraries such as GTK+, Motif etc. whereas the GTK+, Motif or FLTK libraries are seem to be independent as they don't need any other GUI libs.
Although these libs need xlib but we don't have to do anything with xlib.
I don't understand it.