Trying to run my game as headless on a linux 64 bit server (Amazon) and getting the following error trying to start:
libGL.so.1: cannot open shared object file: No such file or directory
Obviously it seems like some GL libs are not installed on the linux installation (so I need to crack that one) but I am also wondering if it is needed in headless version? The virtual machines emulates a mid-1990’s Cirrus video card and will probably not be compatible with any of these libs today.
How are the headless engine using it? Is it possible to strip out?
Yes I saw a lot of solutions but most were depending on compatible graphics cards. I now tried installing package libglu1-mesa-dev and the engine started but threw a new error:
Failed to open X display
ERROR:ENGINE: Could not initialize glfw
The server is a computeserver with very little resources (if any) for graphics. But I know that we could run headless on the build servers @King before. Hard to know where to go further on with so little information.
Instead of the full X windows system, you can install something like Xvfb - a virtual X server that will accept all X commands, but do not engage any video devices. Everything in the memory.
Exactly. @andreas.strangequest , you can take a look at the commands I’m running when I run dmengine_headless on Travis-CI. You should be able to do something similar.
Are you absolutely sure you are running the headless version? From the errors you get, it seems to be the normal version. We run it on aws all the time as part of the test suites.
Thanks guys! Must admit that this is my first time ever on Linux territory (yes I exclude OSX ) and now after your advice I installed xvfb and could run it with xvfb-run. It now actually works as intended!
Doublechecked, its the latest headless linux version (64-bits).