I got stuck in launching Unreal Enigine 4 on an AWS Ubuntu instance, so I summarized it

Introduction

When I tried to launch Unreal Engine 4 on an Ubuntu instance on AWS, I got stuck in a swamp as the title suggests. I wrote this article in the hope that it would help similar people.

Summary in 2 lines

When I tried to use UE4 on an AWS Ubuntu instance, it could not be started due to an error of Vulkan Driver or OpenGL. I lowered the version of UE4 to 4.22.1, changed the graphic driver of the instance and raised the version of OpenGL, and it started successfully.

Things necessary

--Unreal Engine 4 booted with OpenGL (this time booted with 4.22.1) --OpenGL 4.3 compatible graphics driver --AWS Ubuntu 18.04 instance (this time using g4dn.4xlarge)

What happened

Trying to use UE4 on an Ubuntu instance on AWS, download the latest version of UE4 (certainly 4.25) from github When I execute the command according to the boot procedure on Linux, an error appears at the boot part of UE4 Editor.

v.png Vulkan Driver error? I saw it for the first time ...

I learned that there is a way to start with OpenGL instead of Vulkan Driver, so I tried to start with OpenGL o.png I said that Vulkan is useless, but now I can use Vulkan ...?

I couldn't understand the reason like this

What was the problem

--I didn't know that the visualization method of UE4 has changed since 4.23.

OpenGL ES2 has been deprecated in 4.23 and removed in 4.24.

Unreal Engine Official Document

--Don't know that the graphics driver needs to be set manually on Ubuntu instances

What i did

--Install UE4 that supports OpenGL --Change instance graphics driver

Download UE4

It was deprecated in 4.23, so download version 4.22.1 of UE4. To change the graphics driver specification after proceeding with the normal Linux installation procedure Comment out the line TargeteRHIs = VULKAN_SMS and uncomment TargeteRHIs = GLSL_430 to make it look like the image. comment.png

OpenGL version check

Execute the following command to check the OpenGL version. If the number after OpenGL version string is 4.3 or less, change the graphics driver.

$ glxinfo | grep "OpenGL version"
OpenGL version string: 1.4 (2.1 Mesa 7.7.1)

Graphic driver installation

This time I installed the NVIDIA driver.

  1. Add NVIDIA driver repository to apt repository sudo add-apt-repository ppa:graphics-drivers/ppa

  2. Update sudo apt update

  3. Check the recommended driver ubuntu-drivers devices

  4. Driver installation This time the recommended version was 455 sudo apt install nvidia-driver-455

  5. Reboot sudo reboot

  6. Check the specified graphic driver Success if nvidia is returned

$ prime-select query
nvidia
  1. You can start UE4Editor by executing the ./UE4Editor command. スクリーンショット 2020-12-16 21.35.43.png

Summary

--UE4 uses Vulkan or OpenGL depending on the version, so check carefully. --Let's install a graphic driver whose OpenGL version is 4.3 or higher

References

-Unreal Engine Official Document

-How to install/reinstall NVIDIA driver on Ubuntu

Recommended Posts

I got stuck in launching Unreal Enigine 4 on an AWS Ubuntu instance, so I summarized it
[JAVA] Project Euler, I got stuck in Q8, so make a note
I can't remember the text file input / output in Java, so I summarized it.
I stumbled on the Java version in Android Studio, so I will summarize it
I got an "ActionView :: Template :: Error: Permission denied" error in the test of 3.3.1 of Rails tutorial 6th edition, so I solved it.
Where I got stuck in today's "rails tutorial" (2020/10/05)
Build a Laravel environment on an AWS instance
Where I got stuck in today's "rails tutorial" (2020/10/04)
I tried installing docker on an EC2 instance
Where I got stuck in today's "rails tutorial" (2020/10/07)