Compiling Google Cloud Storage Plugin

43 views
Skip to first unread message

Felipe Flores

unread,
Oct 2, 2020, 5:16:48 PM10/2/20
to Orthanc Users
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

Sébastien Jodogne

unread,
Oct 3, 2020, 4:40:53 AM10/3/20
to Orthanc Users
Hello,

Please could you give a try with the following patch that is pending in the mainline?

Sébastien-

Alain Mazy

unread,
Oct 5, 2020, 3:19:30 AM10/5/20
to Sébastien Jodogne, Orthanc Users
Also note that the vcpkg does not freeze, it actually takes a huge amount of time !  Can be 30-60 minutes !

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/f31132bc-1eea-4aa7-8ee7-07ca3fde89f0o%40googlegroups.com.


--

Alain Mazy / Orthanc-Studio Manager & Software Developer
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Quai Banning 6BE-4000 Liège 
www.osimis.io

Twitter LinkedIn


Felipe Flores

unread,
Oct 7, 2020, 6:07:29 PM10/7/20
to Orthanc Users
Unfortunately, I left it all night and it never got through installing google-cloud-cpp. I tried the same thing with a Debian VM (not a container) with half the cores, and it took about 30 minutes to install the vcpkg packages + however long it took to compile the actual plugin. I then copied this plugin into an osimis/orthanc container, and the plugin works great! I just find it curious that the build container behaves so differently to the VM.

I think I might just copy the contents of my vcpkg folder into the Docker image. Will make for a heavy image but it won't have to install them every time. I'll keep you guys posted when I have time and try this.

Thank you for the work you've put in! I'm really enjoying customizing Orthanc with plugins and my own scripts. I definitely couldn't do any of this with other systems I tried at first.
Reply all
Reply to author
Forward
0 new messages