Compiled on PI4B4G with 5.10.77-piCore-v8 Compile Flags: (non) Dependencies: alsa-plugins-dev alsa-utils boost-dev cmake compiletc curl-dev git gloox-dev libxml2-dev llvm-dev glu-dev icu70-dev libenet-dev libfmt-dev libogg-dev libpng-dev libsodium-dev libvorbis-dev miniupnpc-dev sdl2-dev openal-dev pixz python2.7 rust squashfs-tools tar wxwidgets-dev Commands: # fix lto for gcc P=/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so.0.0.0 sudo mkdir -p /usr/local/lib/bfd-plugins sudo ln -sfv $P /usr/local/lib/bfd-plugins/liblto_plugin.so # making sure that sound works aplay /usr/local/share/sounds/alsa/Front_Center.wav # downloaded from official site tar -I pixz -xf 0ad-0.0.25b-alpha-unix-build.tar.xz tar -I pixz -xf 0ad-0.0.25b-alpha-unix-data.tar.xz # /mnt/mmcblk0p2/compile/0ad/0ad-0.0.25b-alpha/build/workspaces cd 0ad-0.0.25b-alpha/build/workspaces # "configure" options # https://github.com/0ad/0ad/blob/master/build/premake/premake5.lua # --without-pch Disable generation and usage of precompiled headers nohup time ./update-workspaces.sh -j4 \ --bindir=/usr/local/bin \ --libdir='/usr/local/games/0ad' \ --datadir='/usr/local/games/0ad' \ --without-pch \ --without-tests 2>&1 | tee u.log & # there should be a new directory named "gcc" cd gcc # now build config=release verbose=1 nohup time make -j4 2>&1 | tee ../m.log & # copy the files manually # there's no make install =============================================================================================== The old incorrect commands for references: # main ======================================================================================== # libs mkdir -p /mnt/mmcblk0p3/packing-0ad/usr/local/games/0ad install -Dm755 binaries/system/*.so /mnt/mmcblk0p3/packing-0ad/usr/local/games/0ad rm -f /mnt/mmcblk0p3/packing-0ad/usr/local/games/0ad/libmozjs78-ps-debug.so # bin install -Dm755 binaries/system/pyrogenesis /mnt/mmcblk0p3/packing-0ad/usr/local/bin/pyrogenesis install -m755 build/resources/0ad.sh /mnt/mmcblk0p3/packing-0ad/usr/local/bin/0ad # icon install -Dm644 build/resources/0ad.desktop /mnt/mmcblk0p3/packing-0ad/usr/local/share/applications/0ad.desktop install -Dm644 build/resources/0ad.png /mnt/mmcblk0p3/packing-0ad/usr/local/share/pixmaps/0ad.png # edit 0ad.desktop manually # strip du -bhd0 /mnt/mmcblk0p3/packing-0ad/ # before 847.0M # after 23.8M # That's a lot~ of stripping O.o # locale ====================================================================================== # belongs in datadir mkdir -p /mnt/mmcblk0p3/packing-0ad-locale/usr/local/games/0ad/ cp -r binaries/data/l10n/ /mnt/mmcblk0p3/packing-0ad-locale/usr/local/games/0ad/ # remember to move the required config files back into the main extension # data ======================================================================================== mkdir -p /mnt/mmcblk0p3/packing-0ad-data/usr/local/games/0ad/mods cp -r binaries/data/tools/ /mnt/mmcblk0p3/packing-0ad-data/usr/local/games/0ad/ cp -r binaries/data/mods/mod/ /mnt/mmcblk0p3/packing-0ad-data/usr/local/games/0ad/mods cp -r binaries/data/mods/public/ /mnt/mmcblk0p3/packing-0ad-data/usr/local/games/0ad/mods # binaries/data/mods/public/public.zip --> 3G cp -r binaries/data/config/ /mnt/mmcblk0p3/packing-0ad-data/usr/local/games/0ad/