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.
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.
--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)
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.
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 I said that Vulkan is useless, but now I can use Vulkan ...?
I couldn't understand the reason like this
--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
--Install UE4 that supports OpenGL --Change instance graphics driver
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.
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)
This time I installed the NVIDIA driver.
Add NVIDIA driver repository to apt repository
sudo add-apt-repository ppa:graphics-drivers/ppa
Update
sudo apt update
Check the recommended driver
ubuntu-drivers devices
Driver installation
This time the recommended version was 455
sudo apt install nvidia-driver-455
Reboot
sudo reboot
Check the specified graphic driver
Success if nvidia
is returned
$ prime-select query
nvidia
./UE4Editor
command.
--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
-Unreal Engine Official Document
-How to install/reinstall NVIDIA driver on Ubuntu
Recommended Posts