Ah, no. That will be your problem. Just run: qmake make qmake -project is a whole other beast. It generates a qmake project, based on the .cpp and .h files in the current directory. That will (of course) then overwrite my project, which tells it what libraries it needs to link against to use Xrandr.