UnrealEngine 4.21.2 won't start on Ubuntu 16.04.

I installed unreal on ubuntu 16.04 and when i run the editor with this command** ./UE4Editor**, i get this error:

And when i run the command with ./UE4Editor -opengl3, i get this error:

After clicking “Okay”, another message appears:

I click “Okay” and then everything closes.

I have Nvidia GTX1070Ti on my pc.

How can this be fixed?

I found the solution. I followed everything said in this link: