Skip to content
Vitaly edited this page Dec 2, 2021 · 14 revisions

Quick Start

Compilation on Ubuntu Linux

apt-get install git build-essential libqt4-dev cmake
cd /usr/src
git clone https://github.com/frankosterfeld/qtkeychain.git
cd qtkeychain
mkdir build
cd build
cmake ..
make

For installing after compilation, pass -DCMAKE_INSTALL_PREFIX=/some/path to cmake and run "make install" after "make".

For a debug build, pass -DCMAKE_BUILD_TYPE=Debug.

Compilation on Windows

  • Qt5 should be already installed
  • %QTDIR% should point to the Qt install directory e.g C:\Qt\5.11.1\msvc2015_x86
  • install cmake
  • download and extract the qtkeychain source
  • open cmd.exe and navigate to the source folder
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=%QTDIR%\lib\cmake
cmake --build .

Compilation on MacOS

  • Qt5 should be already installed
  • $QTDIR should point to the Qt install directory e.g ~/Qt/5.12.1/clang_64
  • install cmake (brew install cmake)
git clone https://github.com/frankosterfeld/qtkeychain.git
cd qtkeychain
md build
cd build
cmake .. -DCMAKE_PREFIX_PATH=${QTDIR}/lib/cmake
make

Compilation with VCPKG (all platforms)

git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg.exe install qtkeychain