Ubuntu QT5 "cannot find -lGL"

I have been using qt5 for a while on WIN7 and now wish to use it on my Ubuntu partition.
I downloaded the LINUX 64 QT5 and initially got the error something like' no compiler in kit'
I then installed gcc but now get the following compiler output;