I try to use this example code of using AES algorithm. I am new to qt and linux and try to figure out how should I use this library.
I downloaded the file Crypto++ 5.0 from here and unzip it . Now I have direcory in ~/Downloads/crypto with many cpp and header files but I dont know what's next. which file should I compile? how can I integrate this to small Qt project? If I copy the code from the link , the compiler cant find all the include files (which is make sense). so what i need to do to run this small example?
I use Qt 5.4.1, th compiler is g++
I found the blog describing Crypto++, Qt and Linux:
https://inphamousdevelopment.wordpress.com/2011/05/06/crypto-and-linux/
The main idea is that you should not using downloaded files but use terminal:
sudo apt-get install libcrypto++8 libcrypto++8-dbg libcrypto++-dev
To add library to the project use the following:
LIBS += -L/usr/lib/crypto++ -lcrypto++
INCS += -I/usr/include/crypto++
See the first link for more details, hope it helps.