To fix "error: Can't find X includes", just type: apt-cache search xlibs-static-dev apt-get install xlibs-static-dev Fixed. and any other errors, try apt-get install kde-devel