No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so’,
Do NOT do this, for a bunch of reasons.
1) Make sure you have opengl installed. do
locate libGL.so
or more slowly
find / -name libGL.so
You should see something like (for example)
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.290.10
The first two items are symlinks pointing to the next file in that list. Here, the libGL.so.290.10 is the actual library
2) Make sure you build config file matches what you found in step 1.
If you do not have OpenGL, you need to install it.
at last :
sudo ln -s -f -i /usr/lib/libGL.so.1.2 /usr/lib/x86_64-linux-gnu/libGL.so