Difference between revisions of "Install Build Tools"
(Installation instructions for Build_Tools) |
(Update to C++17; drop autotools) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= Build Tools for GnuCash = | = Build Tools for GnuCash = | ||
+ | The main software tools used to build GnuCash are described in [[Build Tools]].In most distributions a GUI based software manager tool is available for installation of software. It may be used to install the tools discussed below as an alternative to using the shell commands detailed below. The packages required normally have the same names given here. | ||
== build-essential== | == build-essential== | ||
Your distribution software repository may have a build-essential package which installs the common tools for building software on Linux. It will typically install the following tools (these also may vary, particularly the versions, depending upon the distribution version): | Your distribution software repository may have a build-essential package which installs the common tools for building software on Linux. It will typically install the following tools (these also may vary, particularly the versions, depending upon the distribution version): | ||
Line 17: | Line 18: | ||
or your distribution sofware manager may be used to install this package. | or your distribution sofware manager may be used to install this package. | ||
− | GnuCash | + | GnuCash 5.x requires a C++ compiler that supports ISO-standards C++17. |
− | Gcc version >= | + | :Gcc version >=8.0 and Clang version >= 6.0 are known to work. |
− | |||
Use <syntaxhighlight lang="sh"> | Use <syntaxhighlight lang="sh"> | ||
Line 25: | Line 25: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
to check your installed compiler meets these requirements. | to check your installed compiler meets these requirements. | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== make utility == | == make utility == | ||
make is usually installed by default on most Linux distributions. If not type the following in a shell: | make is usually installed by default on most Linux distributions. If not type the following in a shell: | ||
Line 48: | Line 31: | ||
sudo apt install make | sudo apt install make | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
== CMake == | == CMake == | ||
<syntaxhighlight lang="sh"> | <syntaxhighlight lang="sh"> | ||
sudo apt install cmake | sudo apt install cmake | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
== Ninja == | == Ninja == | ||
You may wish to use the Ninja build system instead of make for building GnuCash. | You may wish to use the Ninja build system instead of make for building GnuCash. | ||
Line 58: | Line 43: | ||
sudo apt install ninja-build | sudo apt install ninja-build | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | =Deprecated= | ||
+ | Some tools are in the state of replacement by better tools. | ||
+ | |||
+ | == Autotools == | ||
+ | They were last used in Gnucash-Docs 4.x. So the description moved into the [{{URL:wiki}}index.php?title=Install_Build_Tools&oldid=16759 archive]. |
Latest revision as of 04:51, 29 May 2025
Contents
[hide]Build Tools for GnuCash
The main software tools used to build GnuCash are described in Build Tools.In most distributions a GUI based software manager tool is available for installation of software. It may be used to install the tools discussed below as an alternative to using the shell commands detailed below. The packages required normally have the same names given here.
build-essential
Your distribution software repository may have a build-essential package which installs the common tools for building software on Linux. It will typically install the following tools (these also may vary, particularly the versions, depending upon the distribution version):
- dpkg-dev Debian package development tools
- g++ GNU C++ compiler;
- gcc GNU C compiler;
- libc6-dev or libc dev GNU C EmbeddedLibrary: Development Libraries and Header Files;
- libc-dev Embedded GNU C Library: Development Libraries and Header Files;
- libc6-dev-sparc64 Embedded GNU C Library: 64bit Development Libraries for UltraSPARC;
- lic6.1-dev or libc-dev Embedded GNU C Library: Development Libraries and Header Files;
- make utility for controlling compilation linking and installation;
You may install this using the following command in a shell:
sudo apt install build-essential
or your distribution sofware manager may be used to install this package.
GnuCash 5.x requires a C++ compiler that supports ISO-standards C++17.
- Gcc version >=8.0 and Clang version >= 6.0 are known to work.
gcc --version
to check your installed compiler meets these requirements.
make utility
make is usually installed by default on most Linux distributions. If not type the following in a shell:
sudo apt install make
CMake
sudo apt install cmake
Ninja
You may wish to use the Ninja build system instead of make for building GnuCash. ninja is generally named ninja-build to avoid confusion with other programs which may use the same name. To install:
sudo apt install ninja-build
Deprecated
Some tools are in the state of replacement by better tools.
Autotools
They were last used in Gnucash-Docs 4.x. So the description moved into the archive.