kvazaar icon indicating copy to clipboard operation
kvazaar copied to clipboard

Unable to compile Crypto++ in kvazaar.

Open Kt0911925 opened this issue 1 year ago • 2 comments

Hi

I need to enable selective encryption in kvazaar. i tried to compile kvazzar using visual studio 2019 in windows 10 using the following steps but its not succesful.

Get cryptopp and compile it (just open the cryptest.sln)

Then in Kvazaar Visual Studio project change these settings:

Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions: Add KVZ_SEL_ENCRYPTION to the list Kvazaar_lib -> crypto.cpp right click properties -> Configuration Properties -> C/C++ -> Advanced -> Compile as: Compile as C++ Code Kvazaar_lib right click properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories: Add cryptopp directory (if you cloned it to c:\cryptopp\ just put "C:" here) Kvazaar_lib right click properties -> Configuration Properties -> Librarian -> General -> Additional Dependancies: cryptopp.lib Kvazaar_lib right click properties -> Configuration Properties -> Librarian -> General -> Additional Library Directories: Directory where the cryptopp.lib is found Finally, if you compiled the crypto++ as a dynamic library, you need to copy the cryptopp.dll to the kvazaar .exe directory.

What happens is i am getting a lot of Link errors in kvazaar_cli. Could some one provide me step by step instructions on how to compile Crypto++ in kvazaat using visual studio 2019

Kt0911925 avatar Jun 22 '23 12:06 Kt0911925

Could you perhaps show the list of the linker errors so that we can try to figure out what is missing?

Jovasa avatar Jun 26 '23 06:06 Jovasa

Hi,

I created a new branch for kvazaar builtin_crypto to use the selective encryption without needing cryptopp library. The encryption is also enabled by default in that branch, if you are using x86 platform you can also define KVZ_ENABLE_BUILTIN_CRYPTO_SIMD to get some speedup with AES CPU instructions.

fador avatar Jul 04 '23 18:07 fador