Couldn't initialize SDL (No available video device) while running AlephOne

I’m trying to build and run AlephOne. I downloaded the source files from the website. Output from “uname”:

5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I originally downloaded the SDL2 packages separately. I believe I compiled the wrong packages or compiled them in the wrong order. I then I followed the instructions here:

These are the warnings and errors that I AlephOne on git:
They want to pass it of so I am contacting you.

alephone MarathonInfinity-20220115-Data/&

Aleph One Linux 2022-01-15 1.5

This is free software with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
For details, see the file COPYING.

Built with network play enabled.

Built with Lua scripting enabled.
Couldn’t initialize SDL (No available video device)

[2]+ Exit 1 alephone MarathonInfinity-20220115-Data/

I fixed the issue by first compiling SDL2-2.0.20 from source, then compiling AlephOne. So I must have compiled the wrong libraries or installed the wrong packages.