You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove individual feature flags in favor of a single `KPXC_MINIMAL` flag that removes advanced features from the build. Basic features are no longer guarded by feature flags.
* Basic features: Auto-Type, Yubikey, KeeShare
* Advanced features include: Browser (and passkeys), SSH Agent, and Secret Service
* Networking, Documentation, and Update Checking remain as feature flags to accommodate various distro requirements.
This change also cleans up the main CMakeLists.txt by re-arranging some content and placing macros into a dedicated include file. The minimum CMake version was bumped to 3.16.0 to conform to our minimum Ubuntu support of Focal (20.04). This also allows us to default to C++20, we fall back to C++17 for Qt versions less than 5.15.0 due to lack of support.
Lastly this change removes the KEEPASSXC_BUILD_TYPE="PreRelease" which is never used. We only support "Snapshot" and "Release" now.
Copy file name to clipboardExpand all lines: INSTALL.md
+31-42Lines changed: 31 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,17 @@
1
-
Build and Install KeePassXC
2
-
=================
1
+
# Build and Install KeePassXC
3
2
4
3
This document will guide you through the steps to build and install KeePassXC from source.
5
4
For more information, see also the [_Building KeePassXC_](https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC) page on the wiki.
6
5
7
6
The [QuickStart Guide](https://keepassxc.org/docs/KeePassXC_GettingStarted.html) gets you started using KeePassXC on your Windows, macOS, or Linux computer using pre-compiled binaries from the [downloads page](https://keepassxc.org/download).
8
7
9
-
Toolchain and Build Dependencies
10
-
================================
8
+
## Toolchain and Build Dependencies
11
9
12
10
The following build tools must exist within your PATH:
13
11
14
-
* cmake (>= 3.10.0)
12
+
* cmake (>= 3.16.0)
15
13
* make (>= 4.2) or ninja (>= 1.10)
16
-
* g++ (>= 4.9) or clang++ (>= 6.0)
14
+
* g++ (>= 9.3.0) or clang++ (>= 10.0)
17
15
* asciidoctor (>= 2.0)
18
16
19
17
* Besides a working C++ toolchain, KeePassXC also has a number of direct build and runtime dependencies. For detailed information about how to install them, please refer to the GitHub wiki:
@@ -22,8 +20,8 @@ The following build tools must exist within your PATH:
22
20
*[Set up Build Environment on Windows](https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-Windows)
23
21
*[Set up Build Environment on macOS](https://github.com/keepassxreboot/keepassxc/wiki/Set-up-Build-Environment-on-macOS)
24
22
25
-
Build Steps
26
-
===========
23
+
## Build Steps
24
+
27
25
We recommend using the release tool to perform builds, please read up-to-date instructions [on our wiki](https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC#building-using-the-release-tool).
28
26
29
27
To compile from source, open a **Terminal (Linux/MacOS)**, the **MSVC Tools Command Prompt (Windows)**, or **MSYS2-MinGW shell (Windows)**. For code development on Windows, you can use Visual Studio 2022, Visual Studio Code, or CLion.
@@ -55,10 +53,10 @@ To compile from source, open a **Terminal (Linux/MacOS)**, the **MSVC Tools Comm
55
53
```
56
54
mkdir build
57
55
cd build
58
-
cmake -DWITH_XC_ALL=ON ..
56
+
cmake ..
59
57
make
60
58
```
61
-
59
+
62
60
If you have `vcpkg` installed, add `-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake` to the `cmake` command to automatically download and install all required build and runtime dependencies locally to your build directory before compiling KeePassXC. Using `vcpkg` is the preferred way to install dependencies on macOS and required on Windows if using the MSVC toolchain.
63
61
64
62
For more detailed build instructions for each platform, please refer to the [GitHub wiki](https://github.com/keepassxreboot/keepassxc/wiki/Building-KeePassXC).
@@ -77,58 +75,47 @@ When building with ASAN support on macOS, you need to use `export ASAN_OPTIONS=d
77
75
78
76
If you are using MSYS2, you have to add ```-G "MSYS Makefiles"``` at the beginning of the cmake command.
79
77
80
-
CMake Configuration Options
81
-
==========================
82
-
83
-
## Recommended CMake Build Parameters
84
-
85
-
```
86
-
-DCMAKE_VERBOSE_MAKEFILE=ON
87
-
-DCMAKE_BUILD_TYPE=<RelWithDebInfo/Debug/Release>
88
-
-DWITH_GUI_TESTS=ON
89
-
```
90
-
91
78
## Additional CMake Parameters
92
79
93
-
KeePassXC comes with a variety of build options that can turn on/off features. Most notably, we allow you to build the application with all TCP/IP networking code disabled. Please note that we still require and link against Qt5's network library in order to use local named pipes on all operating systems. Each of these build options are supplied at the time of calling cmake:
80
+
KeePassXC comes with a variety of build options that can turn on/off features. Each of these build options are supplied at the time of calling cmake:
-DWITH_APP_BUNDLE=[ON|OFF] Enable Application Bundle for macOS (default: ON)
98
+
-DWITH_CCACHE=[ON|OFF] Use ccache for build speed optimization (default: OFF)
99
+
-DWITH_X11=[ON|OFF] Enable building with X11 dependencies (default: ON)
114
100
115
-
-DKEEPASSXC_BUILD_TYPE=[Snapshot|PreRelease|Release] Set the build type to show/hide stability warnings (default: "Snapshot")
116
-
-DKEEPASSXC_DIST_TYPE=[Snap|AppImage|Other] Specify the distribution method (default: "Other")
101
+
-DKEEPASSXC_BUILD_TYPE=[Snapshot|Release] Set the build type to show/hide stability warnings (default: "Snapshot")
102
+
-DKEEPASSXC_DIST_TYPE=[Snap|AppImage|Flatpak|Native] Specify the distribution method (default: "Native")
117
103
-DOVERRIDE_VERSION=[X.X.X] Specify a version number when building. Used with snapshot builds (default: "")
118
104
-DGIT_HEAD_OVERRIDE=[XXXXXXX] Specify the 7 digit git commit ref for this build. Used with distribution builds (default: "")
119
105
```
120
106
121
-
Installation
122
-
============
107
+
Note: Even though you can build the application with all TCP/IP networking code disabled, we still require and link against
108
+
Qt5's network library to use local named pipes on all operating systems.
109
+
110
+
## Installation
123
111
124
112
After you have successfully built KeePassXC, install the binary by executing the following:
125
113
126
114
```
127
115
sudo make install
128
116
```
129
117
130
-
Packaging
131
-
=========
118
+
## Packaging
132
119
133
120
You can create a package to redistribute KeePassXC (zip, deb, rpm, dmg, etc..). Refer to [keepassxc-packaging](https://github.com/keepassxreboot/keepassxc-packaging) for packaging scripts.
134
121
@@ -138,21 +125,23 @@ To package using CMake, run the following command using whichever [generators](h
138
125
cpack -G "ZIP;WIX"
139
126
```
140
127
141
-
Testing
142
-
=======
128
+
## Testing
143
129
144
130
You can perform tests on the built executables with:
131
+
145
132
```
146
133
make test ARGS+="--output-on-failure"
147
134
```
148
135
149
136
On Linux, if you are not currently running on an X Server or Wayland, run the tests as follows:
137
+
150
138
```
151
139
make test ARGS+="-E test\(cli\|gui\) --output-on-failure"
152
140
xvfb-run -e errors -a --server-args="-screen 0 1024x768x24" make test ARGS+="-R test\(cli\|gui\) --output-on-failure"
[](https://bestpractices.coreinfrastructure.org/projects/6326)
[KeePassXC](https://keepassxc.org) is a modern, secure, and open-source password manager that stores and manages your most sensitive information. You can run KeePassXC on Windows, macOS, and Linux systems. KeePassXC is for people with extremely high demands of secure personal data management. It saves many different types of information, such as usernames, passwords, URLs, attachments, and notes in an offline, encrypted file that can be stored in any location, including private and public cloud solutions. For easy identification and management, user-defined titles and icons can be specified for entries. In addition, entries are sorted into customizable groups. An integrated search function allows you to use advanced patterns to easily find any entry in your database. A customizable, fast, and easy-to-use password generator utility allows you to create passwords with any combination of characters or easy to remember passphrases.
11
12
12
13
## Quick Start
14
+
13
15
The [QuickStart Guide](https://keepassxc.org/docs/KeePassXC_GettingStarted.html) gets you started using KeePassXC on your Windows, macOS, or Linux computer using pre-compiled binaries from the [downloads page](https://keepassxc.org/download). Additionally, individual Linux distributions may ship their own versions, so please check your distribution's package list to see if KeePassXC is available. Detailed documentation is available in the [User Guide](https://keepassxc.org/docs/KeePassXC_UserGuide.html).
14
16
15
17
## Features List
18
+
16
19
KeePassXC has numerous features for novice and power users alike. Our goal is to create an application that can be used by anyone while still offering advanced features to those that need them.
17
20
18
-
### Basic
21
+
### Core Features
22
+
19
23
* Create, open, and save databases in the KDBX format (KeePass-compatible with KDBX4 and KDBX3)
24
+
* All information is encrypted at rest and never exposed outside the program
20
25
* Store sensitive information in entries that are organized by groups
21
-
* Search for entries
22
26
* Password generator
27
+
* Search for entries
28
+
* TOTP storage and generation
29
+
* YubiKey/OnlyKey challenge-response support
23
30
* Auto-Type passwords into applications
24
31
* Browser integration with Google Chrome, Mozilla Firefox, Microsoft Edge, Chromium, Vivaldi, Brave, and Tor-Browser
25
32
* Support for passkeys using the browser integration
@@ -33,10 +40,7 @@ KeePassXC has numerous features for novice and power users alike. Our goal is to
33
40
* Field references between entries
34
41
* File attachments and custom attributes
35
42
* Entry history and data restoration
36
-
* YubiKey/OnlyKey challenge-response support
37
43
* Command line interface (keepassxc-cli)
38
-
* Auto-Open databases
39
-
* KeeShare shared databases (import, export, and synchronize)
40
44
* SSH Agent integration
41
45
* FreeDesktop.org Secret Service (replace Gnome keyring, etc.)
42
46
* Additional encryption choices: Twofish and ChaCha20
0 commit comments