Skip to content

Instantly share code, notes, and snippets.

@andrepg
Created January 9, 2022 18:42
Show Gist options
  • Save andrepg/b67a3ac55119781fd80aad3f4aeabd32 to your computer and use it in GitHub Desktop.
Save andrepg/b67a3ac55119781fd80aad3f4aeabd32 to your computer and use it in GitHub Desktop.
Build MoneyManagerEX
# install apt repository key and host to install packages
sudo apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc
sudo apt-add-repository 'deb https://repos.codelite.org/wx3.1.5/ubuntu focal universe'
sudo apt update
sudo apt install -y --no-install-recommends \
tcl \
build-essential \
ccache \
cmake \
file \
gettext \
git \
lsb-release \
pkg-config \
rapidjson-dev \
libcurl4-openssl-dev \
liblua5.3-dev \
wx3.1-i18n \
libgtk2.0-dev \
libwxgtk-webview3.0-gtk3-dev \
libwebkit2gtk-4.0-dev
# renew and recreate the path set to build app
echo "Changing to Downloads path"
cd ~/Downloads
sudo rm -r BuildMMEX
mkdir BuildMMEX && cd BuildMMEX
# clone and download all dependencies
curl -fsSL -O https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2
git clone https://github.com/moneymanagerex/moneymanagerex --depth=1 --recursive --branch v1.5.11
tar -xvjf wxWidgets-*.tar.bz2 && rm wxWidgets-*.tar.bz2
# build wxWidgets dependencies
mkdir -p wxWidgets-3.1.5/mmexbuild && cd wxWidgets-3.1.5/mmexbuild
../configure --disable-shared --enable-cxx11 --with-cxx=11 --without-libtiff --enable-webview --with-gtk=3 --enable-unicode --enable-intl
make
# build mmex packages
cd ../../moneymanagerex
mkdir -p build && cd build
export MAKEFLAGS=-j4
cmake -DCMAKE_BUILD_TYPE=Release \
-DwxWidgets_CONFIG_EXECUTABLE=../../wxWidgets-3.1.5/mmexbuild/wx-config ..
cmake --build .
cpack -G DEB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment