Introduction to Qca

Qca aims to provide a straightforward and cross-platform crypto API, using Qt datatypes and conventions. Qca separates the API from the implementation, using plugins known as Providers.

This package is known to build and work properly using an LFS-7.9 platform.

Package Information

Qca Dependencies


Certificate Authority Certificates, CMake-3.4.3, Qt-4.8.7 or Qt-5.5.1, and Which-2.21


Cyrus SASL-2.1.26, GnuPG-2.1.11, libgcrypt-1.6.5, libgpg-error-1.21, NSS-3.23, NSPR-4.12, OpenSSL-1.0.2g, p11-kit-0.23.2, Doxygen-1.8.11, and Which-2.21

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/qca

Installation of Qca

If desired, remove a lot of irritating warnings when building:

sed -i 's/BSD/DEFAULT/' CMakeLists.txt

This package can be built against Qt-4.8.7 or Qt-5.5.1. If using qt4, run:


If using qt5, run:


Install Qca by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=$QT_DIR            \
      -DCMAKE_BUILD_TYPE=Release                \
      -DQT4_BUILD=$QT4_BUILD                    \
      -DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man \
      ..                                        &&
unset QT_DIR QT4_BUILD                          &&


To test the results, issue make test.

Now, as the root user:

make install

Command Explanations

-DCMAKE_BUILD_TYPE=Release: This switch is used to apply a higher level of compiler optimizations.

-DQT4_BUILD=ON: This switch is used to force building with Qt4 even if Qt5 is found.

-DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man: Install the qca man page in the normal location.


Installed Programs: mozcerts and qcatool (if building with Qt5, the binaries have a -qt5 suffix)
Installed Libraries: libqca.so (libqca-qt5.so if building with Qt5) and plugins at $QT4DIR/lib/qca/crypto
Installed Directories: $QT4DIR/include/QtCrypto (or $QT5DIR/include/Qca-qt5), $QT4DIR/lib/cmake/Qca (or $QT5DIR/lib/cmake/Qca-qt5) and $QT4DIR/lib/qca (or $QT5DIR/lib/qca-qt5)

Short Descriptions


is a command line tool for converting certdata.txt into outfile.pem files.


is a command line tool for performing various cryptographic operations with Qca.


is the Qt Cryptography Architecture (Qca) library.

Last updated on 2016-03-04 12:19:47 -0800