Issues with compiling the plugin samples on Windows/VS (some stdint.h issue)

Hello Sébastién,

I am still struggling with getting the sample plugins compiled

CMAKE gets thru without issues (see the log below)

When I open the .sln afterwards, the project seems to be complete, but showing a lot of errors in the OrthancCPlugin.h file
It is all about integer definitions as far as I can oversee it (u_int64 not defined etc.)

In the OrthancCPlugin.h file there is a link in the comments to download a compatibility stdint.h, the link is broken
(but I guess this file should actually be the one that can be found in the \Resources\ThirdParty\VisualStudio folder?)

Here the CMake output:

– Building for: Visual Studio 14 2015
– Selecting Windows SDK version 10.0.10240.0 to target Windows 10.0.17134.
– The C compiler identification is MSVC 19.0.24215.1
– The CXX compiler identification is MSVC 19.0.24215.1
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found PythonInterp: C:/Users/Knut/AppData/Local/Programs/Python/Python37-32/python.exe (found version “3.7.2”)
– Configuring done
– Generating done
– Build files have been written to: C:/Orthanc-1.5.3/Plugins/Samples/StorageArea/build

This is the build folder after running cmake:

The same opened in the VS project explorer:

and the OrthancCPlugin.h showing the errors:

Dear Knut,

I am still struggling with getting the sample plugins compiled

CMAKE gets thru without issues (see the log below)

When I open the .sln afterwards, the project seems to be complete, but showing a lot of errors in the OrthancCPlugin.h file
It is all about integer definitions as far as I can oversee it (u_int64 not defined etc.)

In the OrthancCPlugin.h file there is a link in the comments to download a compatibility stdint.h, the link is broken
(but I guess this file should actually be the one that can be found in the \Resources\ThirdParty\VisualStudio folder?)

Indeed, I confirm this is the same compatibility header, and I’ve just fixed the mainline repository of Orthanc:
https://bitbucket.org/sjodogne/orthanc/commits/c9a71eb4edcf7030663902f649015aa28d615160

I have also been able to compile the sample plugin using Visual Studio 2008 together with this “stdint.h” compatibility header.

The error messages you report indicate that the “uint8_t” data type is undefined, but this type is defined in “stdint.h”. There is visibly a problem in your build setup. Try and run CMake on a fresh build directory.

HTH,
Sébastien-