Skip to content

Commit

Permalink
Merge pull request #2025 from ElonKou/master
Browse files Browse the repository at this point in the history
[BUG#2024] fixed crypto/Qt version issues for ubuntu 20.04 compile.
  • Loading branch information
legobadman authored Oct 10, 2024
2 parents 4bb0d40 + 9f529f9 commit 1f1e308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you use Linux the setup would be much easier, simply run these commands:

```bash
sudo apt-get install -y git cmake make g++
sudo apt-get install -y qt5-default libqt5svg5-dev
sudo apt-get install -y qt5-default libqt5svg5-dev libcrypto++-dev
```

> NOTE: We highly recommend to use **Ubuntu 20.04 (or above)** whenever possible.
Expand Down
4 changes: 2 additions & 2 deletions zenovis/xinxinoptix/OptiXStuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ inline void calc_sky_cdf_map(cuTexture* tex, int nx, int ny, int nc, std::functi
}

static std::string calculateMD5(const std::vector<char>& input) {
CryptoPP::byte digest[CryptoPP::Weak::MD5::DIGESTSIZE];
CryptoPP::Weak::MD5().CalculateDigest(digest, (const CryptoPP::byte*)input.data(), input.size());
unsigned char digest[CryptoPP::Weak::MD5::DIGESTSIZE];
CryptoPP::Weak::MD5().CalculateDigest(digest, (const unsigned char*)input.data(), input.size());
CryptoPP::HexEncoder encoder;
std::string output;
encoder.Attach(new CryptoPP::StringSink(output));
Expand Down

0 comments on commit 1f1e308

Please sign in to comment.