Re: cannot find -lGL
I don't believe that you stated which libraries g++ is looking for. The nvidia driver installs OpenGL headers by default, along with libGL.so.
You haven't provided very much information. What is the command and output that you're seeing? Please post the bug report I requested.