Hi all,
I struggled a lot compiling this plugin. As with many C/C++ projects, getting my machine to the correct state, with the correct packages, libraries, etc. was quite the task.
Having done that, however, I kept running into an error that said
orthanc-object-storage/Common/…/Common/EncryptionHelpers.h:103:40: error: ‘byte’ does not name a type
103 | static std::string ToHexString(const byte* block, size_t size);
I got the exact same problem using Arch Linux and Debian Buster. To solve this, I manually changed the byte
part to unsigned char
(which a byte essentially is), and was able to compile it. I thought I’d leave this here in case anyone else runs into the same issue.
Additionally, I was wondering if anyone else has run into the same issue, and whether anyone would have a more replicable setup, like a docker container or the like. I was trying to make a builder container, but it would freeze when installing packages using vcpkg. I could keep trying to compile and install the dependencies manually instead of using vcpkg, but I figured maybe someone out there has done this before.
Best,
Felipe