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
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
To copy to clipboard, switch view to plain text mode
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
/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
To copy to clipboard, switch view to plain text mode
The .pro file contains the entry:
CONFIG += c++11 crypto
CONFIG += c++11 crypto
To copy to clipboard, switch view to plain text mode
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;
}
#include <Qca-qt5/QtCrypto/QtCrypto>
#include <QtCrypto/QtCrypto>
int main(int argc, char *argv[]) {
QCA::Initializer init;
return 0;
}
To copy to clipboard, switch view to plain text mode
But I get the error
/main.cpp:37: error: undefined reference to `QCA::Initializer::Initializer(QCA::MemoryMode, int)'
/main.cpp:37: error: undefined reference to `QCA::Initializer::Initializer(QCA::MemoryMode, int)'
To copy to clipboard, switch view to plain text mode
Is there anything else I need to install or add in the .pro file?
Bookmarks