Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.02 KB

BUILDING_STUFF.md

File metadata and controls

44 lines (36 loc) · 1.02 KB

This file is for me to remember how to build xdelta/gptokeyb/gptokeyb2/sdl_resolution

TODO: document the others.

GPTOKEYB2 Compilation

DEVICE_ARCH="aarch64"
git clone "https://github.com/PortsMaster/gptokeyb2.git"
cd gptokeyb2
mkdir build
cd build
cmake ..
make
patchelf --replace-needed libinterpose.so libinterpose.$DEVICE_ARCH.so gptokeyb2
patchelf --set-soname libinterpose.$DEVICE_ARCH.so lib/libinterpose.so
mv lib/libinterpose.so libinterpose.$DEVICE_ARCH.so
mv gptokeyb2 gptokeyb2.$DEVICE_ARCH

XDELTA3 Compilation

Compile liblzma statically

./configure --enable-static=yes --enable-shared=no
make -j4
sudo make install

Compile xdelta3 statically with liblzma

git clone "https://github.com/jmacd/xdelta.git"
cd xdelta
git checkout release3_1_apl
wget https://patch-diff.githubusercontent.com/raw/jmacd/xdelta/pull/241.diff
git apply 241.diff
cd xdelta3

./generate_build_files.sh
LDFLAGS=-L/usr/local/lib/ CXXFLAGS=-I/usr/local/include ./configure --with-liblzma
make -j4
strip xdelta3