How to compile for linux on Ubuntu 20?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cris177

I’m following this tutorial: Compiling for X11 (Linux, *BSD) — Godot Engine (3.4) documentation in English

I’ve installed all the dependencies and cloned the repo. When I run the scon command I get this error:

scons: Reading SConscript files ...
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable 
No package 'x11' found
Error: X11 libraries not found. Aborting.
Automatically detected platform: x11
Invalid target platform "x11".

How can I solve this issue?

:bust_in_silhouette: Reply From: skysphr

If you’re compiling master (aka Godot 4), the platform has been renamed to linuxbsd:

scons -j$(nproc) platform=linuxbsd

I’m compiling version 3.4

cris177 | 2021-10-17 01:09