"The project does not target or OpenGL RHIs, check project settings or pass -nullrhi"

I’m using the “release” branch, everything compiles fine. Then I get the error shown in the title launching the compiled editor. Even when not specifying a project. Does anyone know what I can change to make it target an RHI?

I guess you using some ready project with already set configuration. Set (add if needed) those to DefaultEnigne.ini of your project in shown ini section:

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
....
+TargetedRHIs=GLSL_430
+TargetedRHIs=SF_VULKAN_SM5

You can do the same on LinuxTargetPlatform.LinuxTargetSettings

Other option is to go to Windows and set those settings in Project Settings

I don’t have Linux set up (but i planning to do so) so i not sure if this gonna work

I am also seeing this issue on Linux, and just as Toasterist mentioned, it occurs when launching the editor but not specifying a particular project.

same here. Fresh build of UE4 from branch 4.23 on Ubuntu 16.04 with attached console log

same here on Ubuntu 16.04, with fresh built UE4 from branch 4.23
link text

I ended up changing Linux distros to Xubuntu 18.04 and once compiled everything now seems ok. I wouldn’t call that a real answer and I’m sure not everyone is in a position to do that, but it worked in my case.

I changed Linux distros and now it’s working. I think the problem may not necessarily be in Unreal Engine. I’ll leave this up though in case someone does know a way to diagnose and fix this problem regardless of distro.

I had the same issue. The problem seemed to be with it started working when I installed -tools and -utils. Before that I also got it working by modifying the BaseEngine.ini file and uncommenting the +TargetedRHIs=GLSL_430 line to use opengl when is unavailable

[/Script/LinuxTargetPlatform.LinuxTargetSettings]
; Possible values for architecture: X86_64UnknownLinuxGnu, ArmUnknownLinuxGnueabihf, AArch64UnknownLinuxGnueabi, I686UnknownLinuxGnu
TargetArchitecture=X86_64UnknownLinuxGnu

; the engine will default to the first targeted RHI.
+TargetedRHIs=SF_VULKAN_SM5

; OpenGL4 is deprecated, you can comment this back in to add it to your targeted RHI list
+TargetedRHIs=GLSL_430

@Apii1z, thanks, this is great info! Out of curiosity, what version of Linux are you on and what commands did you use to install -tools and -utils. I found some seemingly relevant info here:

https://linuxconfig.org/install-and-test--on-linux

but there is no mention of -tools

I am using ubuntu 18.04. I actually used info from the same site so under the ubuntu and nvidia tutorial. I added the repository and attempted to install and -utils but there was no package so I checked and the two packages available were -utils and -tools so just in case I installed both, maybe it isn’t necessary.

$ sudo add-apt-repository ppa:graphics-drivers/ppa

$ sudo apt upgrade
$ sudo apt install -utils -tools

I already had the latest nvidia driver so that was not necessary

In my case I use this type of installation:

sudo apt update
sudo apt install mesa--drivers

First line is for repository update. And the second one is for drivers installation.

After that the error disappeared and Unreal started. Now it works fine.
I run Linux Mint 18.3, which runs on Ubuntu 16.04. Hope it helps.

I’m on RHEL 7.6 and had the same problem. Installing appears to have fixed the problem for me:

Blockquote
sudo yum install
Installing : -1.1.73.0-1.el7.x86_64
Verifying : -1.1.73.0-1.el7.x86_64
Installed:
.x86_64 0:1.1.73.0-1.el7