PDA

View Full Version : QCA is not working under Ubuntu



Cerberus
7th October 2015, 17:17
I have installed the following qca packages for qca under Ubuntu 15.04:



qca2-utils
qca-qt5-2-utils
libqca2
libqca2-plugin-cyrus-sasl
libqca2-plugins
libqca-qt5-2-dev
libqca2-dbg
libqca2-plugin-gnupg
libqca-qt5-2
libqca-qt5-2-plugins
libqca2-dev
libqca2-plugin-ossl
libqca-qt5-2-dbg


When running the command dpkg -L libqca2 I get the following:



/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libqca.so.2.1.0
/usr/share
/usr/share/doc
/usr/share/doc/libqca2
/usr/share/doc/libqca2/copyright
/usr/share/doc/libqca2/changelog.Debian.gz
/usr/lib/x86_64-linux-gnu/libqca.so.2


The .pro file contains the entry:



CONFIG += c++11 crypto


and in the main.cpp I have:



#include <Qca-qt5/QtCrypto/QtCrypto>
#include <QtCrypto/QtCrypto>

int main(int argc, char *argv[]) {

QCA::Initializer init;

return 0;
}


But I get the error



/main.cpp:37: error: undefined reference to `QCA::Initializer::Initializer(QCA::MemoryMode, int)'


Is there anything else I need to install or add in the .pro file?

ChrisW67
7th October 2015, 21:06
Assuming that QCA and your distro packager has installed a suitable PRF file or the like then the "crypto" in CONFIG should do everything necessary. You need to rerun qmake after changing the file.

Cerberus
7th October 2015, 22:19
I did the rerun of qmake but that didn't change anything!?