tce-load -i compiletc scons yasm Xorg-7.7-3d-dev pulseaudio-dev python3.6-setuptools libtheora-dev libvpx18-dev libwebp1-dev opusfile-dev wget https://github.com/godotengine/godot/archive/refs/tags/3.3.2-stable.tar.gz cd godot-3.3.2-stable find . -name detect.py -type f -exec sed -i 's/-O2//g' {} \; find . -name detect.py -type f -exec sed -i 's/-g2//g' {} \; find . -name detect.py -type f -exec sed -i 's/DEBUG_ENABLED/NDEBUG/g' {} \; [fails] scons PREFIX=/usr/local CCFLAGS="-mtune=generic -Os -pipe" tools=yes target=release_debug bits=64 platform=x11 udev=yes yasm=yes use_lto=True verbose=True builtin_freetype=False builtin_libogg=False builtin_libpng=False builtin_libtheora=False builtin_libvorbis=False builtin_libvpx=False builtin_libwebp=False builtin_opus=False builtin_zlib=False builtin_zstd=False [-fno-rtti fails] cp bin/ git clone https://github.com/godotengine/godot-demo-projects/ Make sure to click Edit instead of Run at least once in the Project Manager, so that assets such as textures can be imported by the editor. mkdir -p ~/.config/godot/projects mkdir -p ~/.local/share mkdir -p ~/.cache/godot # Compilation environment setup opts.Add("CXX", "C++ compiler") opts.Add("CC", "C compiler") opts.Add("CCFLAGS", "Custom flags for both the C and C++ compilers") opts.Add("CFLAGS", "Custom flags for the C compiler") opts.Add("CXXFLAGS", "Custom flags for the C++ compiler")