Difference between revisions of "Dependencies"

From GnuCash
Jump to: navigation, search
(Libraries/Deps)
m (Libraries/Deps - 2 minor typos)
 
(15 intermediate revisions by 3 users not shown)
Line 17: Line 17:
 
still has.
 
still has.
  
This document serves to keep track of the major distributions, the date of
+
<!--This document serves to keep track of the major distributions, the date of
 
their major release[s], and the relevant library versions as part of that
 
their major release[s], and the relevant library versions as part of that
release (or an official package-upgrade path)
+
release (or an official package-upgrade path)-->
  
 
=== Libraries/Deps ===
 
=== Libraries/Deps ===
 +
The GnuCash dependencies are shown in the following table. The GnuCash version shown is either where a new dependency is introduced or a previous dependency ceases to be relevant. An ongoing requirement is indicated by "->". A blank generally indicates that the requirement no longer exists (but may also indicate that the ongoing requirement is not known). "R" or a version number of the library indicates that the specified version of the  library is required.
 
{| class = "wikitable
 
{| class = "wikitable
 
|+ style="font-size:large" | Table of GnuCash Dependency Changes With Version from 2.4.0
 
|+ style="font-size:large" | Table of GnuCash Dependency Changes With Version from 2.4.0
! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |  !! style="background-color:#999999;border=none;font-size:large;" | GnuCash !! style="background-color:#999999;font-size:large;" | Version !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |   
+
! style="background-color:#999999;" | !! style="background-color:#999999;font-size:large;border=0" colspan="9" | GnuCash Version
 
|-
 
|-
!  style="background-color:#999999;;text-align:left;font-size:large;" | Required Library !! style="background-color:#999999;font-size:large;" | 2.4.0 !! style="background-color:#999999;font-size:large;" | 2.4.1 !! style="background-color:#999999;font-size:large;" | 2.5.8 !! style="background-color:#999999;font-size:large;" | 2.6.2 !! style="background-color:#999999;font-size:large;" | 2.7.0a !! style="background-color:#999999;font-size:large;" | 2.7.3 !! style="background-color:#999999;font-size:large;" | 2.7.4 !! style="background-color:#999999;font-size:large;" | 3.1
+
!  style="background-color:#999999;;text-align:left;font-size:large;" | Required Library !! style="background-color:#999999;font-size:large;" | 2.4.0 !! style="background-color:#999999;font-size:large;" | 2.4.1 !! style="background-color:#999999;font-size:large;" | 2.5.8 !! style="background-color:#999999;font-size:large;" | 2.6.2 !! style="background-color:#999999;font-size:large;" | 3.0 !! style="background-color:#999999;font-size:large;" | 3.!! style="background-color:#999999;font-size:large;" | 3.5 !! style="background-color:#999999;font-size:large;" | 3.9-4.0 !! style="background-color:#999999;font-size:large;"| 4.1-4.11
 
|-
 
|-
! style="background-color:#bbbbbb;" | gconf2 || Required || Required || || || || || ||
+
! style="background-color:#bbbbbb;" | gconf2 || R || -> || -> || -> || -> || -> || -> || -> ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | glib2  || &ge; 2.6.0|| &ge; 2.6.4 || &ge; 2.28.0 || &ge; 2.28.0 || &ge; 2.40.0 || &ge; 2.40.0 || &ge; 2.40.0 || &ge; 2.40.0 <br />(2.46.0 preferred)
+
! style="background-color:#bbbbbb;" | glib2  || &ge; 2.6.0|| &ge; 2.6.4 || &ge; 2.28.0 || -> || &ge; 2.40.0 || -> || &ge; 2.40.0 <br />(2.46.0 preferred) || &ge; 2.56.1 || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | gtk2 || &ge; 2.6.0 || &ge; 2.6.0 || &ge; 2.24.0 || &ge; 2.24.0 || || || ||
+
! style="background-color:#bbbbbb;" | gtk2 || &ge; 2.6.0 || &ge; 2.6.0 || &ge; 2.24.0 || -> || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | gtk3 || || || || || &ge; 3.14.0 || &ge; 3.14.0 || &ge; 3.14.0 || &ge; 3.14.0
+
! style="background-color:#bbbbbb;" | gtk3 || || || || || &ge; 3.14.0 || &ge; 3.14.0 || &ge; 3.14.0 || &ge; 3.22.30 ||  ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | guile || 1.6.4 || 1.6.4 || 1.8.5 or<br /> 2.0.0 || 1.8.5 or<br /> 2.0.0 || 1.8.5 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.0
+
! style="background-color:#bbbbbb;" | guile || 1.6.4 || 1.6.4 || 1.8.5 or<br /> 2.0.0 || 1.8.5 or<br /> 2.0.0 || 1.8.5 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.0 || 2.2.0 or<br /> 2.0.9 || 3.0,<br /> 2.2.0  or<br /> 2.0.9
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgnomecanvas || || || 2.0 || 2.0 || || || ||
+
! style="background-color:#bbbbbb;" | libgnomecanvas || || || 2.0 || 2.0 || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libart2 || &ge; 2.3.11 || &ge; 2.3.11 || || || || || ||
+
! style="background-color:#bbbbbb;" | libart2 || &ge; 2.3.11 || &ge; 2.3.11 || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libglade2 || &ge; 2.3.6 || &ge; 2.3.6 || || || || || ||
+
! style="background-color:#bbbbbb;" | libglade2 || &ge; 2.3.6 || &ge; 2.3.6 || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgnomeprint2.2 || &ge; 2.8.2 || &ge; 2.8.2 || || || || || ||
+
! style="background-color:#bbbbbb;" | libgnomeprint2.2 || &ge; 2.8.2 || &ge; 2.8.2 || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgnomeui2 || &ge;  2.0.0 || &ge;  2.0.0 || || || || || ||
+
! style="background-color:#bbbbbb;" | libgnomeui2 || &ge;  2.0.0 || &ge;  2.0.0 || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgoffice || &ge; 0.4.0 || &ge; 0.4.0 || &ge; 0.7.0 || &ge; 0.7.0 || || || ||  
+
! style="background-color:#bbbbbb;" | libgoffice || &ge; 0.4.0 || &ge; 0.4.0 || &ge; 0.7.0 || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgsf1 || &ge; 1.12.2 || &ge; 1.12.2 || || || || || ||  
+
! style="background-color:#bbbbbb;" | libgsf1 || &ge; 1.12.2 || &ge; 1.12.2 || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | libxml2 || &ge; 2.4.12 || &ge; 2.4.12 || &ge; 2.5.10 || &ge; 2.5.10 || &ge; 2.5.10 || &ge; 2.5.10 || &ge; 2.5.10 || &ge; 2.5.10
+
! style="background-color:#bbbbbb;" | libxml2 || &ge; 2.4.12 || -> || &ge; 2.5.10 || -> || -> || -> || -> || &ge; 2.9.4 || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | gettext || || || || || || || || &ge; 0.19.6  
+
! style="background-color:#bbbbbb;" | gettext || || || || || || || &ge; 0.19.6 <ref>&ge; 0.20 since 3.9</ref><ref>Can be overridden by "cmake ... -DALLOW_OLD_GETTEXT=ON"</ref> || &ge; 0.20 ||  ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | libxslt || || || || || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | libxslt || || || || || R || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | ICU || || || || || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | ICU || || || || || R || -> || -> || -> || ->
 
|-
 
|-
!  style="background-color:#bbbbbb;" |boost || || || || || &ge; 1.50.0 || &ge; 1.50.0 || &ge; 1.50.0 || &ge; 1.53.0
+
!  style="background-color:#bbbbbb;" |boost || || || || || &ge; 1.50.0 || -> || &ge; 1.53.0 || &ge; 1.67.0 || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | pango || &ge; 1.8.1 || &ge; 1.8.1 || || || || || ||  
+
! style="background-color:#bbbbbb;" | pango || &ge; 1.8.1 || -> || -> || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | swig ** || &ge; 1.6.7 || &ge; 1.6.7 || &ge; 2.0.10 || &ge; 2.0.10 || &ge; 2.0.10 || &ge; 2.0.10 || &ge; 2.0.10 || &ge; 2.0.10
+
! style="background-color:#bbbbbb;" | swig <ref>swig is only required if source is obtained from git, not required for tarballs.</ref> || &ge; 1.6.7 || -> || &ge; 2.0.10 || -> ||  -> || -> || -> || &ge; 3.0.12 || &ge; 3.0.12
 
|-
 
|-
! style="background-color:#bbbbbb;" | libgtkhtml3  || one of  || one of || || || || || ||  
+
! style="background-color:#bbbbbb;" | libgtkhtml3  || one of  || one of || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" | webkit || one of || one of || 1.0 || 1.0 || || || ||
+
! style="background-color:#bbbbbb;" | webkit || one of || one of || 1.0 || 1.0 || -> || -> || -> || 2.4.1 <br />(2.4.11 Windows) || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | webkit2gtk3.0 / webkitgtk-3.0(Windows) || || || ||  || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | webkit2gtk3.0 / webkitgtk-3.0(Windows) || || || ||  || Required || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | googletest/gtest/gmock || || || || || ||  || 1.7.0 || &ge; 1.7.0
+
! style="background-color:#bbbbbb;" | googletest/gtest/gmock || || || || || || 1.7.0 || &ge; 1.7.0 || &ge; 1.8.0 ||  ->
 
|-
 
|-
! style="background-color:#999999;;text-align:left;font-size:large;" | Libraries for Options !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |
+
! style="background-color:#bbbbbb;" | zlib || || || || || || || || &ge; 2.1.1 || ->
 
|-
 
|-
! style="background-color:#bbbbbb;;text-align:left;" | On Line Banking and Import|| style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |  
+
! style="background-color:#999999;;text-align:left;font-size:large;" | Libraries for Options !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |
 
|-
 
|-
! style="background-color:#bbbbbb;" | aqbanking || Required || Required || 4.0.0 || 4.0.0 || 4.0.0 || 4.0.0 || 4.0.0 || 4.0.0
+
! style="background-color:#bbbbbb;;text-align:left;" | Online Banking and Import|| style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |  || style="background-color:#bbbbbb;" |  || style="background-color:#bbbbbb;" |
 
|-
 
|-
! style="background-color:#bbbbbb;" | gwenhwyfar || Required || Required || Required || Required || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | aqbanking || R || -> || 4.0.0 - 5.7.8 || -> || -> || -> || 5.3.5 || 5.7.8/6.1.0<ref name="PSD2">The european [{{URL:wp}}Payment_Services_Directive Revised Payment Services Directive (PSD2, Directive (EU) 2015/2366)] requires
 +
:aqbanking &ge; 6.0.0,
 +
:gwenhywfar &ge; 5.1.2 and
 +
:GnuCash &ge; 3.8</ref>. || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" |ktoblzcheck || Required || Required || Required || Required || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | gwenhywfar || R || -> || -> || -> || -> || -> || -> || &ge; 4.20.0/5.1.2<ref name="PSD2" /> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;;text-align:left;" | Database Support || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |
+
! style="background-color:#bbbbbb;" |ktoblzcheck || R || -> || -> || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | libdbi || Required + || Required + || 0.8.3 + || 0.8.3 + || 0.8.3 + || 0.8.3 + || 0.8.3 + || 0.8.3 +
+
! style="background-color:#bbbbbb;;text-align:left;" | Database Support || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |  || style="background-color:#bbbbbb;" |  || style="background-color:#bbbbbb;" |
 
|-
 
|-
! style="background-color:#bbbbbb;" | libdbd-mysql ****|| one of || one of || one of || one of || one of || one of || one of || one of
+
! style="background-color:#bbbbbb;" | libdbi +one of || R + || -> || 0.8.3 + || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | libdbd-pgsql ****|| one of || one of || one of || one of || one of || one of || one of || one of
+
! style="background-color:#bbbbbb;" | libdbd-mysql <ref name="FedoraSQL">On Fedora these libraries are named libdbi-dbd-mysql, libdbi-dbd-postgresql, libdbi-dbd-sqlite</ref>|| -> || ->|| ->|| -> || -> || -> || -> || ->  || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" |libdbd-sqlite3 ****|| one of || one of || one of || one of || one of || one of || one of || one of
+
! style="background-color:#bbbbbb;" | libdbd-pgsql <ref name="FedoraSQL" />|| -> || -> || -> || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;;text-align:left;" | OFX File Import || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |  
+
! style="background-color:#bbbbbb;" |libdbd-sqlite3 <ref name="FedoraSQL" />|| -> || -> || -> || -> || -> || -> || -> || ->  || ->
 +
|-
 +
! style="background-color:#bbbbbb;;text-align:left;" | OFX File Import || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |
 
|-  
 
|-  
! style="background-color:#bbbbbb;" | libofx || R || R || 0.9.0 || 0.9.0 || 0.9.0 || 0.9.0 || 0.9.0 || 0.9.0
+
! style="background-color:#bbbbbb;" | libofx || R || -> || 0.9.0 || ->|| -> || -> || -> || 0.9.12 || ->
 
|-  
 
|-  
! style="background-color:#bbbbbb;;text-align:left;" | Python Bindings || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |  
+
! style="background-color:#bbbbbb;;text-align:left;" | Python Bindings || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" | || style="background-color:#bbbbbb;" |
 +
|-
 +
!style="background-color:#bbbbbb;" |  python || || R || 2.4.0 || -> || -> || -> || &ge; 3.2.0 || &ge; 3.6.0 || ->
 +
|-
 +
! style="background-color:#999999;text-align:left;font-size:large" | Runtime libraries !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |  !! style="background-color:#999999;" |  !! style="background-color:#999999;" |
 
|-
 
|-
!style="background-color:#bbbbbb;" | python || || R || 2.4.0 || 2.4.0 || 2.4.0 || 2.4.0 || 2.4.0 || &ge; 3.2.0
+
! style="background-color:#bbbbbb;" | isocodes || Suggested || -> || -> || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#999999;text-align:left;font-size:large" | Runtime libraries !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |
+
! style="background-color:#bbbbbb;" | gsettings<ref>Global preferences storage. Note that the osx and windows backends are built-in in gio for their respective platforms. On linux and similar systems, the dconf package should be installed.</ref> Linux: dconf/Windows: registry/MacOSX: plists || || || || R || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | isocodes || Suggested || Suggested || Suggested || Suggested || Suggested || Suggested || Suggested || Suggested
+
! style="background-color:#999999;;text-align:left;font-size:large" | Other Libraries !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |  
 
|-
 
|-
! style="background-color:#bbbbbb;" | gsettings Linux: dconf/Windows: registry/MacOSX: plists *** || || || || Required || Required || Required || Required || Required
+
! style="background-color:#bbbbbb;" | cairo || &ge; 0.5.0 || -> || -> || -> || -> || -> || -> || -> || ->
 
|-
 
|-
! style="background-color:#999999;;text-align:left;font-size:large" | Other Libraries !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" | !! style="background-color:#999999;" |
+
! style="background-color:#bbbbbb;" | libsecret || || || || || || || || 0.18 || ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | cairo || &ge; 0.5.0 || &ge; 0.5.0 || || || || || ||
+
! style="background-color:#bbbbbb;" |gtk-mac-integration (MacOS only)|| || || || || || || || ||
 
|-
 
|-
! style="background-color:#bbbbbb;" |  makeinfo || || || || || || || Required || Required
+
! style="background-color:#bbbbbb;" |  makeinfo || || || || || || ||  -> || -> ||  ->
 
|-
 
|-
! style="background-color:#bbbbbb;" | doxygen || || || || || || || || Required
+
! style="background-color:#bbbbbb;" | doxygen <ref>To check or generate the '''API documentation''' AKA ''develdoc''.</ref>|| || || || || || || R || -> || ->
 
|}
 
|}
** swig is only required if source is obtained from git, Not required for tarballs.
+
==== Notes ====
*** Global preferences storage. Note that the osx and windows backends are built-in in gio for their respective platforms. On linux and similar systems, the dconf package should be installed.
+
<references />
**** On Fedora these libraries are named libdbi-dbd-mysql, libdbi-dbd-postgresql, libdbi-dbd-sqlite
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Eventually we should transform this list in a table of the form GnuCash-Version|required-lib*?
 
 
 
* required:
 
** glib2 (>= 2.40.0, >=2.46.0 preferred)
 
** gtk+3 (>= 3.14.0)
 
** guile (>= 2.0.0)
 
** libxml2 (>= 2.5.10)
 
** libxslt
 
** swig (>=b2.0.10) Only required to build from git.
 
** webkit (>= 2.4.9)    Windows and Mac require *exactly* 2.4.9, as they use the WebKit1 API
 
** boost (>=1.53.0)
 
** googletest (>=1.7.0)  Build only, not required for binary packages.
 
* optional:
 
** aqbanking (>= 4.0.0) optional for online banking and import; also requires gwehywfar and ktoblzcheck
 
** libdbi (>=0.8.3)    for SQL backends,
 
*** don't forget to install your preferred database driver ! On Fedora for example you can choose between libdbi-dbd-mysql, libdbi-dbd-postgresql and libdbi-dbd-sqlite. On Debian the drivers are named libdbd-mysql, libdbd-postgresql and libdbd-sqlite3. Other distributions may use other variants of these names still.
 
** libofx (>= 0.9.0)
 
** python (>= 3.2.0) python bindings; headers required, not just binaries.
 
 
 
  
* at runtime:
+
=== Package Version Search by Distribution ===
** required:
+
;.deb based:
*** a gsettings backend to store the gnucash global preferences in. This backend is platform dependent:
+
:[https://www.debian.org/distrib/packages debian]
***:linux:       dconf
+
:[https://packages.ubuntu.com/ ubuntu]
***:osx/quarz:    plists
+
;.rpm based:
***:windows:     registry
+
:[https://rpms.remirepo.net/rpmphp/ Fedora / RHEL / CentOS / EPEL]
**:Note that the osx and windows backends are built-in in gio for their respective platforms. On linux and similar systems, the dconf package should be installed.
+
:[https://software.opensuse.org/package/ opensuse]
** suggested:
 
***isocodes, (translation of currencies) since Gnucash r19131/2.3.13 [https://bugzilla.gnome.org/show_bug.cgi?id=118391]
 
  
 
=== What if my distro doesn't have a required dependency? ===
 
=== What if my distro doesn't have a required dependency? ===
Line 169: Line 147:
 
In other cases you may have a dependency but not at the required version. First look at the available repositories for your distro's package manager. For Debian based distros there's [[http://www.getdeb.net/welcome/ GetDeb]], for RPM based ones try [[https://rpmfind.net/linux/RPM/ RPMFind]].
 
In other cases you may have a dependency but not at the required version. First look at the available repositories for your distro's package manager. For Debian based distros there's [[http://www.getdeb.net/welcome/ GetDeb]], for RPM based ones try [[https://rpmfind.net/linux/RPM/ RPMFind]].
 
Failing that you may have to download and build the dependency from source. If it's a system dependency as well, for example glib or gtk+, you'll want to install it into a prefix not on the built-in search paths and then add the prefix to PKG_CONFIG_PATH and the library path to LD_LIBRARY_PATH so that CMake and GnuCash can find the updated versions.
 
Failing that you may have to download and build the dependency from source. If it's a system dependency as well, for example glib or gtk+, you'll want to install it into a prefix not on the built-in search paths and then add the prefix to PKG_CONFIG_PATH and the library path to LD_LIBRARY_PATH so that CMake and GnuCash can find the updated versions.
 +
 +
'''Return to:'''
 +
 +
[[Installing_Dependencies |Installing Dependencies]]
 +
 +
[[Building_On_Linux | Building On Linux]]
 +
 +
[[Building |Building GnuCash]]
 +
 
<!--
 
<!--
 
=== Available Versions by Dependency and Distribution ===
 
=== Available Versions by Dependency and Distribution ===
Line 210: Line 197:
 
! Distribution !! aqbanking !! cairo !! glib2 !! gtk+3 !! guile !! WebKit !! libofx !! libxml2 !! pango !! swig
 
! Distribution !! aqbanking !! cairo !! glib2 !! gtk+3 !! guile !! WebKit !! libofx !! libxml2 !! pango !! swig
 
|}
 
|}
 +
 +
  
 
==== References ====
 
==== References ====

Latest revision as of 07:48, 18 July 2022

General

This page is intended to capture various library build and runtime dependency information. The goal is to provide a more dynamic source than maint/README.dependencies/master/README.dependencies for tracking this replace data.

See Building for details on building Gnucash.

GnuCash Library Dependency Policy

GnuCash desires to only depend on library versions and packages that are practically available. Specifically, we choose to depend only on versions that have been in the major distributions for 6 months. This is motivated in part by the 1.6 release, which required a large set of relatively-recent dependencies. Specifically, as most user's (distributions) did not have the required versions packaged, it was exceedingly painful for end users to upgrade to the anticipated release, leading to a reputation that gnucash still has.


Libraries/Deps

The GnuCash dependencies are shown in the following table. The GnuCash version shown is either where a new dependency is introduced or a previous dependency ceases to be relevant. An ongoing requirement is indicated by "->". A blank generally indicates that the requirement no longer exists (but may also indicate that the ongoing requirement is not known). "R" or a version number of the library indicates that the specified version of the library is required.

Table of GnuCash Dependency Changes With Version from 2.4.0
GnuCash Version
Required Library 2.4.0 2.4.1 2.5.8 2.6.2 3.0 3.1 3.5 3.9-4.0 4.1-4.11
gconf2 R -> -> -> -> -> -> ->
glib2 ≥ 2.6.0 ≥ 2.6.4 ≥ 2.28.0 -> ≥ 2.40.0 -> ≥ 2.40.0
(2.46.0 preferred)
≥ 2.56.1 ->
gtk2 ≥ 2.6.0 ≥ 2.6.0 ≥ 2.24.0 ->
gtk3 ≥ 3.14.0 ≥ 3.14.0 ≥ 3.14.0 ≥ 3.22.30 ->
guile 1.6.4 1.6.4 1.8.5 or
2.0.0
1.8.5 or
2.0.0
1.8.5 or
2.0.0
2.2.0 or
2.0.0
2.2.0 or
2.0.0
2.2.0 or
2.0.9
3.0,
2.2.0 or
2.0.9
libgnomecanvas 2.0 2.0
libart2 ≥ 2.3.11 ≥ 2.3.11
libglade2 ≥ 2.3.6 ≥ 2.3.6
libgnomeprint2.2 ≥ 2.8.2 ≥ 2.8.2
libgnomeui2 ≥ 2.0.0 ≥ 2.0.0
libgoffice ≥ 0.4.0 ≥ 0.4.0 ≥ 0.7.0 -> -> -> -> -> ->
libgsf1 ≥ 1.12.2 ≥ 1.12.2
libxml2 ≥ 2.4.12 -> ≥ 2.5.10 -> -> -> -> ≥ 2.9.4 ->
gettext ≥ 0.19.6 [1][2] ≥ 0.20 ->
libxslt R -> -> -> ->
ICU R -> -> -> ->
boost ≥ 1.50.0 -> ≥ 1.53.0 ≥ 1.67.0 ->
pango ≥ 1.8.1 -> -> -> -> -> -> -> ->
swig [3] ≥ 1.6.7 -> ≥ 2.0.10 -> -> -> -> ≥ 3.0.12 ≥ 3.0.12
libgtkhtml3 one of one of
webkit one of one of 1.0 1.0 -> -> -> 2.4.1
(2.4.11 Windows)
->
webkit2gtk3.0 / webkitgtk-3.0(Windows) Required -> -> -> ->
googletest/gtest/gmock 1.7.0 ≥ 1.7.0 ≥ 1.8.0 ->
zlib ≥ 2.1.1 ->
Libraries for Options
Online Banking and Import
aqbanking R -> 4.0.0 - 5.7.8 -> -> -> 5.3.5 5.7.8/6.1.0[4]. ->
gwenhywfar R -> -> -> -> -> -> ≥ 4.20.0/5.1.2[4] ->
ktoblzcheck R -> -> -> -> -> -> -> ->
Database Support
libdbi +one of R + -> 0.8.3 + -> -> -> -> -> ->
libdbd-mysql [5] -> -> -> -> -> -> -> -> ->
libdbd-pgsql [5] -> -> -> -> -> -> -> -> ->
libdbd-sqlite3 [5] -> -> -> -> -> -> -> -> ->
OFX File Import
libofx R -> 0.9.0 -> -> -> -> 0.9.12 ->
Python Bindings
python R 2.4.0 -> -> -> ≥ 3.2.0 ≥ 3.6.0 ->
Runtime libraries
isocodes Suggested -> -> -> -> -> -> -> ->
gsettings[6] Linux: dconf/Windows: registry/MacOSX: plists R -> -> -> -> ->
Other Libraries
cairo ≥ 0.5.0 -> -> -> -> -> -> -> ->
libsecret 0.18 ->
gtk-mac-integration (MacOS only)
makeinfo R -> -> ->
doxygen [7] R -> ->

Notes

  1. ≥ 0.20 since 3.9
  2. Can be overridden by "cmake ... -DALLOW_OLD_GETTEXT=ON"
  3. swig is only required if source is obtained from git, not required for tarballs.
  4. 4.0 4.1 The european Revised Payment Services Directive (PSD2, Directive (EU) 2015/2366) requires
    aqbanking ≥ 6.0.0,
    gwenhywfar ≥ 5.1.2 and
    GnuCash ≥ 3.8
  5. 5.0 5.1 5.2 On Fedora these libraries are named libdbi-dbd-mysql, libdbi-dbd-postgresql, libdbi-dbd-sqlite
  6. Global preferences storage. Note that the osx and windows backends are built-in in gio for their respective platforms. On linux and similar systems, the dconf package should be installed.
  7. To check or generate the API documentation AKA develdoc.

Package Version Search by Distribution

.deb based
debian
ubuntu
.rpm based
Fedora / RHEL / CentOS / EPEL
opensuse

What if my distro doesn't have a required dependency?

It happens. Sometimes we need functionality that some distros decline to provide. All of our dependencies are free software and so the sources are readily available for you to download and use. If you're not on the latest version of your distro you may not have the needed versions for every dependency.

For example, OpenSuSE is believed at the time of writing to not provide GoogleTest. That happens to be the simplest of all because GnuCash only needs the sources, which can be cloned from [Github]. Just put it somewhere convenient and add

 -DGTEST_ROOT=/path/to/googletest/googletest
 -DGMOCK_ROOT=/path/to/googletest/googlemock

to your CMake arguments when building GnuCash.

In other cases you may have a dependency but not at the required version. First look at the available repositories for your distro's package manager. For Debian based distros there's [GetDeb], for RPM based ones try [RPMFind]. Failing that you may have to download and build the dependency from source. If it's a system dependency as well, for example glib or gtk+, you'll want to install it into a prefix not on the built-in search paths and then add the prefix to PKG_CONFIG_PATH and the library path to LD_LIBRARY_PATH so that CMake and GnuCash can find the updated versions.

Return to:

Installing Dependencies

Building On Linux

Building GnuCash