Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile Crypto++ in kvazaar. #359

Open
Kt0911925 opened this issue Jun 22, 2023 · 2 comments
Open

Unable to compile Crypto++ in kvazaar. #359

Kt0911925 opened this issue Jun 22, 2023 · 2 comments

Comments

@Kt0911925
Copy link

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

@Jovasa
Copy link
Member

Jovasa commented Jun 26, 2023

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

@fador
Copy link
Member

fador commented Jul 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants