GnuCash 3.x kompilieren (Debian): Unterschied zwischen den Versionen

Aus MattWiki
Zeile 29: Zeile 29:
  # apt-get install googletest
  # apt-get install googletest
Alternativ selbst bauen. Anleitung hier: https://wiki.gnucash.org/wiki/Google_Test
Alternativ selbst bauen. Anleitung hier: https://wiki.gnucash.org/wiki/Google_Test
Es werden noch Umgebungsvariablen benötigt:
# export GMOCK_ROOT=/usr/src/googletest/googlemock
# export GTEST_ROOT=/usr/src/googletest/googletest
== Kompilieren / Bauen und Installation ==
# cd /opt/gnucash-3.x
# mkdir bin                # create build directory
# cd bin                   # change into the build directory
# cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash-3.3/bin -DCMAKE_PREFIX_PATH=/opt/gnucash-3.3/bin /opt/gnucash-3.3     
                            # As shown this will install in the /opt/gnucash-3.x/bin directory.
# make                     # builds the program and associated libraries
# make install             # to install to /usr/local or /opt admin privileges are required.


= Quellen =
= Quellen =

Version vom 10. November 2018, 20:44 Uhr

Dieser Artikel beschreibt, wie GnuCash 3.x aus den Quellcodes gebaut werden kann..

Für GnuCash ab Version 3.0 bestehen neue Anforderungen an das Build-System. Dadurch verändert sich auch der Build-Prozess.

Vorarbeiten

Voraussetzungen

Build essentials

apt install build-essential
gcc --version
autoconf --version 

Autotools

apt install autoconf      # loads autoscan, autoconf and associated macros 
apt install automake 
apt install libtool 
apt install m4

Make und CMake

# apt-get install gcc cmake

Download

Nach /usr/local oder /opt (Root notwendig)

Quellcodedownload siehe https://www.gnucash.org/index.phtml

# wget <url>
# sha256sum gnucash-version.tar.bz2       # Check checksum against README-File from Download-Page
# tar -xjvf gnucash-version.tar.bz2 -C 

Installation Google Test

Google Test Version 1.8.0 wird benötigt. Installation under Debian:

# apt-get install googletest

Alternativ selbst bauen. Anleitung hier: https://wiki.gnucash.org/wiki/Google_Test

Es werden noch Umgebungsvariablen benötigt:

# export GMOCK_ROOT=/usr/src/googletest/googlemock
# export GTEST_ROOT=/usr/src/googletest/googletest

Kompilieren / Bauen und Installation

# cd /opt/gnucash-3.x
# mkdir bin                # create build directory
# cd bin                   # change into the build directory
# cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash-3.3/bin -DCMAKE_PREFIX_PATH=/opt/gnucash-3.3/bin /opt/gnucash-3.3     
                           # As shown this will install in the /opt/gnucash-3.x/bin directory.
# make                     # builds the program and associated libraries
# make install             # to install to /usr/local or /opt admin privileges are required.

Quellen

Quelle URL
Übersicht des Bau-Prozesses https://wiki.gnucash.org/wiki/Building
Anleitung zum Bauen unter Linux https://wiki.gnucash.org/wiki/Building_On_Linux
Übersicht Voraussetzungen / Build Tools https://wiki.gnucash.org/wiki/Install_Build_Tools