Compiled on PI4B4G with 5.10.77-piCore-v8 Compile Flags: CC='gcc' CXX='g++' CPPFLAGS='-DNDEBUG' CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' LDFLAGS="-Wl,-O1" export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS Dependencies: cmake compiletc gettext-dev git glib2-dev glibc_gconv gob2 gtk2-dev gtk3-dev ibus-dev libchewing-dev Commands: # Adjusting system # fix LTO 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 git clone https://github.com/definite/ibus-chewing.git wget https://releases.pagure.org/cmake-fedora/cmake-fedora-2.9.2-modules-only.tar.gz cd ibus-chewing/ tar -xf ../cmake-fedora-2.9.2-modules-only.tar.gz mkdir build && cd build # On aarch64, libexec is the default # Move libexec back to where it should be # remove: -DLIBEXEC_DIR='/usr/local/lib/ibus-chewing' # optionally add "-Wno-deprecated -Wno-dev" # to suppress deprecated functionality warnings # this project is old... cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX='/usr/local' \ -DDATA_DIR='/usr/local/share' \ -DPRJ_DOC_DIR='/usr/local/share/doc/ibus-chewing' \ -DPRJ_DATA_DIR='/usr/local/share/ibus-chewing' \ -Wno-deprecated -Wno-dev time make -j4 real 0m 35.51s user 1m 45.32s sys 0m 20.91s DESTDIR=/tmp/packing-ibus-chewing make install cd /tmp/packing-ibus-chewing strip --strip-unneeded ./usr/local/libexec/* # schemas sed -i 's@/desktop/ibus@/org/freedesktop/ibus@g' ./usr/local/share/glib-2.0/schemas/org.freedesktop.IBus.Chewing.gsc # example file cp /tmp/startup_script.example ./usr/local/share/doc/ibus-chewing/startup_script.example mkdir -p /tmp/packing-ibus-chewing-locale/usr/local/share mv ./usr/local/share/locale /tmp/packing-ibus-chewing-locale/usr/local/share/