2017-01-04 18:47:29 -05:00
Install KeePassXC
2016-10-26 08:19:28 -04:00
=================
2017-01-04 18:47:29 -05:00
This document will guide you across the steps to install KeePassXC.
2017-09-05 04:39:20 -04:00
You can visit the online version of this document at the following link
2016-10-26 08:19:28 -04:00
https://github.com/keepassxreboot/keepassx/wiki/Install-Instruction-from-Source
Build Dependencies
==================
The following tools must exist within your PATH:
* make
* cmake (>= 2.8.12)
* g++ (>= 4.7) or clang++ (>= 3.0)
The following libraries are required:
* Qt 5 (>= 5.2): qtbase and qttools5
* libgcrypt (>= 1.6)
* zlib
* libmicrohttpd
* libxi, libxtst, qtx11extras (optional for auto-type on X11)
Prepare the Building Environment
================================
2017-07-10 15:35:07 -04:00
* Building Environment on Linux ==> https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Linux
* Building Environment on Windows ==> https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Windows
* Building Environment on MacOS ==> https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-OS-X
2016-10-26 08:19:28 -04:00
Build Steps
===========
To compile from source, open a **Terminal (on Linux/MacOS)** or a **MSYS2-MinGW shell (on Windows)** < br />
**Note:** on Windows make sure you are using a **MINGW shell** by checking the label before the current path
2017-01-04 18:47:29 -05:00
Navigate to the path you have downloaded KeePassXC and type these commands:
2016-10-26 08:19:28 -04:00
```
2011-12-29 17:24:01 -05:00
mkdir build
cd build
2016-10-26 08:19:28 -04:00
cmake -DWITH_TESTS=OFF
make
```
**Note:** If you are on MacOS you must add this parameter to **Cmake** , with the Qt version you have installed< br /> `-DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.6.2/lib/cmake/`
2011-12-29 17:24:01 -05:00
2017-01-04 18:47:29 -05:00
You will have the compiled KeePassXC binary inside the `./build/src/` directory.
2016-10-26 08:19:28 -04:00
Common cmake parameters
```
2012-04-25 14:22:44 -04:00
-DCMAKE_INSTALL_PREFIX=/usr/local
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=< RelWithDebInfo / Debug / Release >
-DWITH_GUI_TESTS=ON
2016-10-26 08:19:28 -04:00
```
2012-04-25 14:22:44 -04:00
2011-12-29 17:24:01 -05:00
2016-10-26 08:19:28 -04:00
Installation
============
To install this binary execute the following:
```bash
sudo make install
```
You can specify the destination dir with
```
DESTDIR=X
```
Packaging
=========
2017-01-04 18:47:29 -05:00
You can create a package to redistribute KeePassXC (zip, deb, rpm, dmg, etc..)
2016-10-26 08:19:28 -04:00
```
2013-11-30 06:49:29 -05:00
make package
2016-10-26 08:19:28 -04:00
```
Testing
=======
2013-11-30 06:49:29 -05:00
2016-10-26 08:19:28 -04:00
You can perform test on the executable
```
make test
```
2012-05-28 06:11:44 -04:00
2016-10-26 08:19:28 -04:00
Common parameters:
```
CTEST_OUTPUT_ON_FAILURE=1
ARGS+=-jX
ARGS+="-E testgui"
```