[GNC] Compiling under Ubuntu 18 thru 22
Stephen M. Butler
Stephen.M.Butler51 at gmail.com
Tue Aug 9 22:26:15 EDT 2022
Someone on this list shared the following script with me to load the
build dependencies.
I ran it back around Ubuntu 18.? and now am up on 22.04 with GnuCash 4.x
Come to think, there may have been a module update since then, but that
will become obvious if you compile.
#!/bin/bash
clear
# this script was developed to install a basic development environment
# for GnuCash > V3 on a Linux Mint 19 OS
echo "Script to install development environment for GnuCash ~V3.0"
echo ""
echo "Installing build environment:"
echo " build-essential"
sudo apt install build-essential
echo " cmake"
sudo apt install cmake
echo " ninja-build"
sudo apt install ninja-build
echo ""
echo "Installing GnuCash dependencies and development headers:"
echo " libglib2.0 and dev headers"
sudo apt install libglib2.0 libglib2.0-dev
echo " libxml2 libxml++2.6-dev libxml2-utils"
sudo apt install libxml2 libxml++2.6-dev libxml2-utils
echo " libxslt1.1 libxslt1-dev"
sudo apt install libxslt1.1 libxslt1-dev
echo " libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev"
sudo apt install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
echo " gtk+3.0 libgtk-3-dev"
sudo apt install gtk+3.0 libgtk-3-dev
echo " zlib1g zlib1g-dev"
sudo apt install zlib1g zlib1g-dev
echo " guile-2.0 guile-2.0-dev"
sudo apt install guile-2.0 guile-2.0-dev
echo " swig 3.0 on LM19 2.0 on Lm18?"
sudo apt install swig
echo " sudo apt-get install libboost-all-dev"
sudo apt-get install libboost-all-dev
echo " libsecret-1-0 libsecret-1-0-dev"
sudo apt-get install libsecret-1-0 libsecret-1-0-dev
echo " AqBanking Tools"
echo " aqbanking-tools libaqbanking-dev"
sudo apt-get install aqbanking-tools libaqbanking-dev
echo " gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev"
sudo apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
echo " ktoblzcheck libktoblzcheck1-dev"
sudo apt-get install ktoblzcheck libktoblzcheck1-dev
echo " OFX support"
echo " libofx libofx-dev"
sudo apt-get install libofx-dev
echo " xsltproc"
sudo apt-get install xsltproc
echo " Database backend support"
echo " libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3"
sudo apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql
libdbd-sqlite3
echo " Python support"
sudo apt-get install python3-pytest
echo " Google Test"
sudo apt install googletest
=========================================
I do compile from a git repository located on my box at
/home/steve/Projects/GnuCash/gnucash
The below script is run from /home/steve/Projects/GnuCash (one level up
from the git repository). I just pulled the latest commits from the
master and ran this script to compile:
#!/bin/bash
#
# build-gnucash
#
# NOte: do a git pull followed by git checkout of version desired
before starting script
cd $HOME/Projects/GnuCash/gnucash
GITVER=$(git describe)
MYVER=${GITVER%-*}
MYRPR=Build-gnucash_${MYVER}
echo $MYVER
cd ..
rm -rf $MYRPR > /dev/null
mkdir $MYRPR
cd $MYRPR
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../gnucash
make
echo ## sudo make install
-------------------------------------------------------
--Steve
--
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint: 8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
More information about the gnucash-user
mailing list