%general-entities; ]> $LastChangedBy$ $Date$ Qca-&qca-qt5-version; Qca 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. &lfs77_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &qca-qt5-md5sum; Download size: &qca-qt5-size; Estimated disk space required: &qca-qt5-buildsize; Estimated build time: &qca-qt5-time; Qca Dependencies Required and Recommended Optional , , , , , , Botan and pkcs11-helper Even though this package can be built against Qt4, the instructions below don't cover such installation because the changes needed to the instructions below are too invasive. If you need Qt4 version of the library, check the "General Libraries" chapter for instructions. User Notes: Installation of Qca First, silence a lot of warnings caused by using the latest toolchain by running the following command: sed -i "/BSD_SOURCE/d" CMakeLists.txt Install Qca by running the following commands: mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DQCA_SUFFIX=qt5 \ -DQCA_DOC_INSTALL_DIR=/usr/share/doc/qca-qt5-&qca-qt5-version; \ -DQCA_FEATURE_INSTALL_DIR=/usr/lib/qt5/mkspecs/features \ -DQCA_INCLUDE_INSTALL_DIR=/usr/include/qt5 \ -DQCA_PRIVATE_INCLUDE_INSTALL_DIR=/usr/include/qt5 \ -DQCA_PLUGINS_INSTALL_DIR=/usr/lib/qt5/plugins \ -Wno-dev .. && make To test the results, issue make test. Now, as the root user: make install If Qt5 isn't installed in /usr, ensure it can properly find the modules installed by this package by running the following commands as the root user: if [[ ${QT5DIR} != "/usr" ]] then ln -sfv /usr/include/qt5/QtCrypto \ ${QT5DIR}/include/qt5/ && ln -sfv /usr/lib/qt5/mkspecs/features/crypto.prf \ ${QT5DIR}/lib/qt5/mkspecs/features/ && install -v -dm755 ${QT5DIR}/lib/qt5/plugins/crypto && for file in /usr/lib/qt5/plugins/crypto/* do ln -sfv ${file} ${QT5DIR}/lib/qt5/plugins/crypto/ done && unset file fi If you upgrade Qt5 per BLFS instructions, make sure you re-run the commands above. Command Explanations -DQCA_SUFFIX=qt5: This switch is used to ensure that the programs and libraries installed by this package don't conflict with Qt4 equivalents. -DQCA_*_INSTALL_DIR=...: These switches are used to ensure that files depending on the Qt5 installation prefix are installed in the correct locations. Contents Installed Programs Installed Libraries Installed Directories mozcerts-qt5 and qcatool-qt5 libqca-qt5.so /usr/include/qt5/QtCrypto, /usr/lib/cmake/Qca, /usr/lib/qt5/plugins/crypto and, depending on the Qt5 installation prefix, $QT5DIR/include/qt5/QtCrypto and $QT5DIR/lib/qt5/plugins/crypto Short Descriptions mozcerts-qt5 is a command line tool for converting certdata.txt into outfile.pem files. mozcerts-qt5 qcatool-qt5 is a command line tool for performing various cryptographic operations with Qca. qcatool-qt5 libqca-qt5.so is the Qt Cryptography Architecture (Qca) library. libqca-qt5.so