can't compile the UE4 Game works on ubuntu

About my setup:

  • ubuntu 18.04
  • g++6
    -mono 3
    -cuda 9.2
    Nvedia Driver
    When building the UE4 GameWorks on ubuntu, the program Doesn’t make and crashes with many of the errors such as the following error:
      destructor called on non-final 'FRHICommandResolveTXAA' that has virtual
      functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]

Would appreciat your comments on how I should solve this issue.