Discussion:
[ITK-users] Problem compiling ITK with windows 7
Marc michel Rohe
2017-10-16 14:04:51 UTC
Permalink
Hello,

I have compiled several times ITK under linux but I cannot make it work with windows with which I am not really familiar.

I configure and generate files using CMake and then use MinGW with the command promt (mingw32-make) to build the project. Building start correctly and then I get the following output on the command promt (see below)

Thanks a lot for your help !



ommon\gdcmCAPICryptographicMessageSyntax.cxx:62:109: error: 'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, N
ULL, &certBinLen, NULL, NULL ) )

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:69:54: error: 'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:69:112: error: 'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::ParseKeyFile(const char*)':
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:102:55: error: 'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:102:114: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:108:55: error: 'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:108:122: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:114:69: error: 'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:120:69: error: 'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&, const char*, size_t
) const':
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:164:3: error: 'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:165:3: error: 'EncryptParams' was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:176:163: error: 'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams, (DWORD)certifList.size(), (PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE *)output, (DWORD *)&out
len) )


^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:180:21: error: 'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&, const char*, size_t
) const':
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:194:3: error: 'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:38: error: 'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:103: error: 'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:154: error: 'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:215:59: error: 'CryptMsgUpdate' was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:222:31: error: 'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:222:84: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:228:23: error: 'CMSG_ENVELOPED' was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:248:31: error: 'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:248:97: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:262:33: error: 'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:262:92: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:267:5: error: 'recipientInfo' was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new BYTE[cbRecipientInfoLen];
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:268:33: error: 'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:268:101: error: 'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:298:31: error: 'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:298:81: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:304:31: error: 'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:304:83: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:341:31: error: 'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:341:75: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:347:31: error: 'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:347:82: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))

^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:370:33: error: 'CryptMsgClose' was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'bool gdcm::CAP
ICryptographicMessageSyntax::Initialize()':
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:426:43: error: 'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontrol not workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:442:47: error: 'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Prototype
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/, PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:447:72: error: expected ')' before
string constant
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Proto
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\gdcmCommon.dir\build.m
ake:787: recipe for target 'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj' failed
mingw32-make[2]: *** [Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj] Error 1
CMakeFiles\Makefile2:6027: recipe for target 'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: *** [Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Matt McCormick
2017-10-16 14:40:17 UTC
Permalink
Hello Marc,

Please try the latest release (4.12.2) or ITK Git master, which have
updated versions of GDCM and let us know how it goes.

Thanks,
Matt

On Mon, Oct 16, 2017 at 10:04 AM, Marc michel Rohe
Post by Marc michel Rohe
Hello,
I have compiled several times ITK under linux but I cannot make it work with
windows with which I am not really familiar.
I configure and generate files using CMake and then use MinGW with the
command promt (mingw32-make) to build the project. Building start correctly
and then I get the following output on the command promt (see below)
Thanks a lot for your help !
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, N
ULL, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0, CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:165:3: error: 'EncryptParams' was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams, (DWORD)certifList.size(), (PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE *)output, (DWORD *)&out
len) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL, NULL)) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:215:59: error: 'CryptMsgUpdate' was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:228:23: error: 'CMSG_ENVELOPED' was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:267:5: error: 'recipientInfo' was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new BYTE[cbRecipientInfoLen];
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:370:33: error: 'CryptMsgClose' was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'bool gdcm::CAP
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontrol not workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Prototype
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/, PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:447:72: error: expected ')' before
string constant
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Proto
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\gdcmCommon.dir\build.m
ake:787: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj' failed
mingw32-make[2]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj] Error 1
CMakeFiles\Makefile2:6027: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
Marc michel Rohe
2017-10-16 16:21:35 UTC
Permalink
Hello Matt,

thanks for your answer, so I tried with the latest version and here is the error I get:

D:\Libraries\InsightToolkit-4.12.2\build>mingw32-make
Scanning dependencies of target ITKData
[ 0%] Built target ITKData
Scanning dependencies of target itkdouble-conversion
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/bignum.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/bignum-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/cached-powers.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/diy-fp.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/double-conversion.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/fast-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/fixed-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/strtod.cc.obj
[ 0%] Linking CXX shared library ..\..\..\..\..\bin\libitkdouble-conversion-4.1
2.dll
[ 0%] Built target itkdouble-conversion
Scanning dependencies of target ITKDoubleConversion-all
[ 0%] Built target ITKDoubleConversion-all
Scanning dependencies of target ITKKWIML-all
[ 0%] Built target ITKKWIML-all
Scanning dependencies of target itksys
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/ProcessWin32.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/Base64.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/EncodingC.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/MD5.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/System.c.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/Directory.cxx.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/DynamicLoader.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/EncodingCXX.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/Glob.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/RegularExpression.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/SystemTools.cxx.obj
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Tools.cxx: In static member function 'static int itksys::SystemTools::Stat(const
string&, itksys::SystemTools::Stat_t*)':
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Tools.cxx:1283:37: error: cannot convert 'itksys::SystemTools::Stat_t* {aka itks
ys::_stat64*}' to '__stat64*' for argument '2' to 'int _wstat64(const wchar_t*,
__stat64*)'
return _wstat64(wpath.c_str(), buf);
^
In file included from D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\
KWSys\src\KWSys\SystemTools.cxx:20:0:
D:/Libraries/InsightToolkit-4.12.2/build/Modules/ThirdParty/KWSys/src/itksys/Sys
temTools.hxx:331:18: note: class type 'itksys::SystemTools::Stat_t {aka itksys::
_stat64}' is incomplete
typedef struct _stat64 Stat_t;
^~~~~~~
Modules\ThirdParty\KWSys\src\KWSys\CMakeFiles\itksys.dir\build.make:312: recipe
for target 'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/SystemTools
.cxx.obj' failed
mingw32-make[2]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/S
ystemTools.cxx.obj] Error 1
CMakeFiles\Makefile2:469: recipe for target 'Modules/ThirdParty/KWSys/src/KWSys/
CMakeFiles/itksys.dir/all' failed
mingw32-make[1]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/a
ll] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


----- Mail original -----
Envoyé: Lundi 16 Octobre 2017 16:40:17
Objet: Re: [ITK-users] Problem compiling ITK with windows 7
Hello Marc,
Please try the latest release (4.12.2) or ITK Git master, which have
updated versions of GDCM and let us know how it goes.
Thanks,
Matt
On Mon, Oct 16, 2017 at 10:04 AM, Marc michel Rohe
Post by Marc michel Rohe
Hello,
I have compiled several times ITK under linux but I cannot make it work with
windows with which I am not really familiar.
I configure and generate files using CMake and then use MinGW with the
command promt (mingw32-make) to build the project. Building start correctly
and then I get the following output on the command promt (see below)
Thanks a lot for your help !
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, N
ULL, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:165:3: error: 'EncryptParams' was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams, (DWORD)certifList.size(), (PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE *)output, (DWORD *)&out
len) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgUpdate'
was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPED'
was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:267:5: error: 'recipientInfo' was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new BYTE[cbRecipientInfoLen];
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:370:33: error: 'CryptMsgClose' was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'bool gdcm::CAP
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontrol not workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Prototype
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/, PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:447:72: error: expected ')' before
string constant
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Proto
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\gdcmCommon.dir\build.m
ake:787: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj' failed
mingw32-make[2]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj] Error 1
CMakeFiles\Makefile2:6027: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
Matt McCormick
2017-10-16 17:06:03 UTC
Permalink
Hi Marc,

Thanks for the update.

Could you please try ITK Git master? [1]

Thanks,
Matt

[1] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/Download.md



On Mon, Oct 16, 2017 at 12:21 PM, Marc michel Rohe
Post by Marc michel Rohe
Hello Matt,
D:\Libraries\InsightToolkit-4.12.2\build>mingw32-make
Scanning dependencies of target ITKData
[ 0%] Built target ITKData
Scanning dependencies of target itkdouble-conversion
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/bignum.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/bignum-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/cached-powers.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/diy-fp.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/double-conversion.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/fast-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/fixed-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/DoubleConversion/src/double-conver
sion/CMakeFiles/itkdouble-conversion.dir/strtod.cc.obj
[ 0%] Linking CXX shared library ..\..\..\..\..\bin\libitkdouble-conversion-4.1
2.dll
[ 0%] Built target itkdouble-conversion
Scanning dependencies of target ITKDoubleConversion-all
[ 0%] Built target ITKDoubleConversion-all
Scanning dependencies of target ITKKWIML-all
[ 0%] Built target ITKKWIML-all
Scanning dependencies of target itksys
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/ProcessWin32.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/Base64.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/EncodingC.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/MD5.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
r/System.c.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/Directory.cxx.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/DynamicLoader.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/EncodingCXX.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/Glob.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/RegularExpression.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
dir/SystemTools.cxx.obj
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Tools.cxx: In static member function 'static int itksys::SystemTools::Stat(const
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Tools.cxx:1283:37: error: cannot convert 'itksys::SystemTools::Stat_t* {aka itks
ys::_stat64*}' to '__stat64*' for argument '2' to 'int _wstat64(const wchar_t*,
__stat64*)'
return _wstat64(wpath.c_str(), buf);
^
In file included from D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\
D:/Libraries/InsightToolkit-4.12.2/build/Modules/ThirdParty/KWSys/src/itksys/Sys
_stat64}' is incomplete
typedef struct _stat64 Stat_t;
^~~~~~~
Modules\ThirdParty\KWSys\src\KWSys\CMakeFiles\itksys.dir\build.make:312: recipe
for target 'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/SystemTools
.cxx.obj' failed
mingw32-make[2]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/S
ystemTools.cxx.obj] Error 1
CMakeFiles\Makefile2:469: recipe for target 'Modules/ThirdParty/KWSys/src/KWSys/
CMakeFiles/itksys.dir/all' failed
mingw32-make[1]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/a
ll] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
----- Mail original -----
Envoyé: Lundi 16 Octobre 2017 16:40:17
Objet: Re: [ITK-users] Problem compiling ITK with windows 7
Hello Marc,
Please try the latest release (4.12.2) or ITK Git master, which have
updated versions of GDCM and let us know how it goes.
Thanks,
Matt
On Mon, Oct 16, 2017 at 10:04 AM, Marc michel Rohe
Post by Marc michel Rohe
Hello,
I have compiled several times ITK under linux but I cannot make it work with
windows with which I am not really familiar.
I configure and generate files using CMake and then use MinGW with the
command promt (mingw32-make) to build the project. Building start correctly
and then I get the following output on the command promt (see below)
Thanks a lot for your help !
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, N
ULL, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0, CRYPT_STRING_BASE64_ANY, c
ertBin, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:102:114: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:108:122: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:165:3: error: 'EncryptParams' was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:176:163: error: 'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams, (DWORD)certifList.size(), (PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE *)output, (DWORD *)&out
len) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'virtual bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&, const char*, size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:103: error: 'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:154: error: 'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING | X509_ASN_ENCODING | P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgUpdate'
was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPED'
was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0, &nrOfRecipeints, &
nrOfRecipientsLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL, &cbReci
pientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:267:5: error: 'recipientInfo' was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new BYTE[cbRecipientInfoLen];
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:268:101: error: 'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, recipientInfo
, &cbRecipientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL, &bareContentLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:370:33: error: 'CryptMsgClose' was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:9: error: 'recipientInfo' was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:33: error: type '<type error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function 'bool gdcm::CAP
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontrol not workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Prototype
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/, PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
ommon\gdcmCAPICryptographicMessageSyntax.cxx:447:72: error: expected ')' before
string constant
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Proto
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\gdcmCommon.dir\build.m
ake:787: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj' failed
mingw32-make[2]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj] Error 1
CMakeFiles\Makefile2:6027: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight
Dženan Zukić
2017-10-16 17:17:08 UTC
Permalink
Hi Marc,

another note: you have chosen an exotic compiler/OS combination. Very few
people use, maintain and test them, which is indicated by test failures on
the dashboard's exotic
<https://open.cdash.org/index.php?project=Insight#!#Expected_Nightly_Exotic>
section.

If you can't use Visual Studio (the main compiler for Windows), you might
have better luck using clang <http://releases.llvm.org/download.html>.

Regards,
DÅŸenan
Post by Matt McCormick
Hi Marc,
Thanks for the update.
Could you please try ITK Git master? [1]
Thanks,
Matt
[1] https://github.com/InsightSoftwareConsortium/ITK/
blob/master/Documentation/Download.md
On Mon, Oct 16, 2017 at 12:21 PM, Marc michel Rohe
Post by Marc michel Rohe
Hello Matt,
thanks for your answer, so I tried with the latest version and here is
D:\Libraries\InsightToolkit-4.12.2\build>mingw32-make
Scanning dependencies of target ITKData
[ 0%] Built target ITKData
Scanning dependencies of target itkdouble-conversion
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/bignum.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/bignum-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/cached-powers.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/diy-fp.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/double-conversion.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/fast-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/fixed-dtoa.cc.obj
[ 0%] Building CXX object Modules/ThirdParty/
DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/strtod.cc.obj
[ 0%] Linking CXX shared library ..\..\..\..\..\bin\
libitkdouble-conversion-4.1
Post by Marc michel Rohe
2.dll
[ 0%] Built target itkdouble-conversion
Scanning dependencies of target ITKDoubleConversion-all
[ 0%] Built target ITKDoubleConversion-all
Scanning dependencies of target ITKKWIML-all
[ 0%] Built target ITKKWIML-all
Scanning dependencies of target itksys
[ 0%] Building C object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/ProcessWin32.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/Base64.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/EncodingC.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/MD5.c.obj
[ 0%] Building C object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/System.c.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/Directory.cxx.obj
[ 0%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/DynamicLoader.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/EncodingCXX.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/Glob.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/RegularExpression.cxx.obj
[ 1%] Building CXX object Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/SystemTools.cxx.obj
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\
KWSys\src\KWSys\System
Post by Marc michel Rohe
Tools.cxx: In static member function 'static int
itksys::SystemTools::Stat(const
Post by Marc michel Rohe
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\
KWSys\src\KWSys\System
Post by Marc michel Rohe
Tools.cxx:1283:37: error: cannot convert 'itksys::SystemTools::Stat_t*
{aka itks
Post by Marc michel Rohe
ys::_stat64*}' to '__stat64*' for argument '2' to 'int _wstat64(const
wchar_t*,
Post by Marc michel Rohe
__stat64*)'
return _wstat64(wpath.c_str(), buf);
^
In file included from D:\Libraries\InsightToolkit-4.
12.2\src\Modules\ThirdParty\
Post by Marc michel Rohe
D:/Libraries/InsightToolkit-4.12.2/build/Modules/ThirdParty/
KWSys/src/itksys/Sys
Post by Marc michel Rohe
temTools.hxx:331:18: note: class type 'itksys::SystemTools::Stat_t {aka
_stat64}' is incomplete
typedef struct _stat64 Stat_t;
^~~~~~~
recipe
Post by Marc michel Rohe
for target 'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/
SystemTools
Post by Marc michel Rohe
.cxx.obj' failed
mingw32-make[2]: *** [Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.dir/S
Post by Marc michel Rohe
ystemTools.cxx.obj] Error 1
CMakeFiles\Makefile2:469: recipe for target
'Modules/ThirdParty/KWSys/src/KWSys/
Post by Marc michel Rohe
CMakeFiles/itksys.dir/all' failed
mingw32-make[1]: *** [Modules/ThirdParty/KWSys/src/
KWSys/CMakeFiles/itksys.dir/a
Post by Marc michel Rohe
ll] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
----- Mail original -----
Envoyé: Lundi 16 Octobre 2017 16:40:17
Objet: Re: [ITK-users] Problem compiling ITK with windows 7
Hello Marc,
Please try the latest release (4.12.2) or ITK Git master, which have
updated versions of GDCM and let us know how it goes.
Thanks,
Matt
On Mon, Oct 16, 2017 at 10:04 AM, Marc michel Rohe
Post by Marc michel Rohe
Hello,
I have compiled several times ITK under linux but I cannot make it
work
Post by Marc michel Rohe
Post by Marc michel Rohe
with
windows with which I am not really familiar.
I configure and generate files using CMake and then use MinGW with the
command promt (mingw32-make) to build the project. Building start
correctly
Post by Marc michel Rohe
Post by Marc michel Rohe
and then I get the following output on the command promt (see below)
Thanks a lot for your help !
ommon\gdcmCAPICryptographicMessageSyntax.cxx:62:109: error: 'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
N
ULL, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:69:54: error: 'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:69:112: error: 'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
c
ertBin, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function
'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:102:55: error: 'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:102:114: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:108:55: error: 'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:108:122: error: 'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:114:69: error: 'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL, &keyBlobLen))
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:120:69: error: 'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob,
&keyBlobLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function
'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&, const
char*,
Post by Marc michel Rohe
Post by Marc michel Rohe
size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:164:3: error: 'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
'EncryptParams'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:176:163: error: 'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams, (DWORD)certifList.size(), (PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE *)output,
(DWORD
Post by Marc michel Rohe
Post by Marc michel Rohe
*)&out
len) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:180:21: error: 'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function
'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&, const
char*,
Post by Marc michel Rohe
Post by Marc michel Rohe
size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:194:3: error: 'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:38: error: 'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:103: error: 'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:209:154: error: 'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION, 0, NULL,
NULL))
)
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgUpdate'
was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:222:31: error: 'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:222:84: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType, &cbMessageTyp
eLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_ENVELOPED'
was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:248:31: error: 'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0,
&nrOfRecipeints,
Post by Marc michel Rohe
Post by Marc michel Rohe
&
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:248:97: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0,
&nrOfRecipeints,
Post by Marc michel Rohe
Post by Marc michel Rohe
&
nrOfRecipientsLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:259:33: error: type
'<type
Post by Marc michel Rohe
Post by Marc michel Rohe
error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:262:33: error: 'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL,
&cbReci
Post by Marc michel Rohe
Post by Marc michel Rohe
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:262:92: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i, NULL,
&cbReci
Post by Marc michel Rohe
Post by Marc michel Rohe
pientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new
BYTE[cbRecipientInfoLen];
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:268:33: error: 'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
recipientInfo
Post by Marc michel Rohe
Post by Marc michel Rohe
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:268:101: error: 'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
recipientInfo
Post by Marc michel Rohe
Post by Marc michel Rohe
, &cbRecipientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:298:31: error: 'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:298:81: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, NULL, &cekAlgLe
n))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:304:31: error: 'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:304:83: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0, cekAlg, &cekAlg
Len))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:341:31: error: 'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL,
&bareContentLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:341:75: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL,
&bareContentLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:347:31: error: 'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:347:82: error: 'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent, &bareContentL
en))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
'CryptMsgClose'
Post by Marc michel Rohe
Post by Marc michel Rohe
was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:371:33: error: type
'<type
Post by Marc michel Rohe
Post by Marc michel Rohe
error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member function
'bool
Post by Marc michel Rohe
Post by Marc michel Rohe
gdcm::CAP
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:426:43: error: 'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV,
PROV_RSA_AES,
Post by Marc michel Rohe
Post by Marc michel Rohe
CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontrol
not
Post by Marc michel Rohe
Post by Marc michel Rohe
workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:442:47: error: 'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A"
(Prototype
Post by Marc michel Rohe
Post by Marc michel Rohe
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider
(Prototype)"*/,
Post by Marc michel Rohe
Post by Marc michel Rohe
PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\
GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx:447:72: error: expected
')'
Post by Marc michel Rohe
Post by Marc michel Rohe
before
string constant
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV_A" (Proto
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\
gdcmCommon.dir\build.m
Post by Marc michel Rohe
Post by Marc michel Rohe
ake:787: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj'
failed
Post by Marc michel Rohe
Post by Marc michel Rohe
mingw32-make[2]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj] Error 1
CMakeFiles\Makefile2:6027: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Kosma Dunikowski
2017-10-17 08:05:46 UTC
Permalink
Hi Marc,

I'm using mingw-w64 (https://mingw-w64.org/) (it can also build 32 bit
binaries if you need them) to build latest ITK and SimpleITK on Windows
7 with no issues. Make sure you avoid vanilla mingw32, which is
generally problematic.

Regards,
Kosma
Post by Matt McCormick
Hi Marc,
another note: you have chosen an exotic compiler/OS combination. Very
few people use, maintain and test them, which is indicated by test
failures on the dashboard's exotic
<https://open.cdash.org/index.php?project=Insight#%21#Expected_Nightly_Exotic>
section.
If you can't use Visual Studio (the main compiler for Windows), you
might have better luck using clang
<http://releases.llvm.org/download.html>.
Regards,
DÅŸenan
On Mon, Oct 16, 2017 at 1:06 PM, Matt McCormick
Hi Marc,
Thanks for the update.
Could you please try ITK Git master? [1]
Thanks,
Matt
[1]
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/Download.md
<https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/Download.md>
On Mon, Oct 16, 2017 at 12:21 PM, Marc michel Rohe
Post by Marc michel Rohe
Hello Matt,
thanks for your answer, so I tried with the latest version and
D:\Libraries\InsightToolkit-4.12.2\build>mingw32-make
Scanning dependencies of target ITKData
[ 0%] Built target ITKData
Scanning dependencies of target itkdouble-conversion
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/bignum.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/bignum-dtoa.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/cached-powers.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/diy-fp.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/double-conversion.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/fast-dtoa.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/fixed-dtoa.cc.obj
[ 0%] Building CXX object
Modules/ThirdParty/DoubleConversion/src/double-conver
Post by Marc michel Rohe
sion/CMakeFiles/itkdouble-conversion.dir/strtod.cc.obj
[ 0%] Linking CXX shared library
..\..\..\..\..\bin\libitkdouble-conversion-4.1
Post by Marc michel Rohe
2.dll
[ 0%] Built target itkdouble-conversion
Scanning dependencies of target ITKDoubleConversion-all
[ 0%] Built target ITKDoubleConversion-all
Scanning dependencies of target ITKKWIML-all
[ 0%] Built target ITKKWIML-all
Scanning dependencies of target itksys
[ 0%] Building C object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/ProcessWin32.c.obj
[ 0%] Building C object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/Base64.c.obj
[ 0%] Building C object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/EncodingC.c.obj
[ 0%] Building C object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/MD5.c.obj
[ 0%] Building C object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.di
Post by Marc michel Rohe
r/System.c.obj
[ 0%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/Directory.cxx.obj
[ 0%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/DynamicLoader.cxx.obj
[ 1%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/EncodingCXX.cxx.obj
[ 1%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/Glob.cxx.obj
[ 1%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/RegularExpression.cxx.obj
[ 1%] Building CXX object
Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.
Post by Marc michel Rohe
dir/SystemTools.cxx.obj
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Post by Marc michel Rohe
Tools.cxx: In static member function 'static int
itksys::SystemTools::Stat(const
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\KWSys\src\KWSys\System
Post by Marc michel Rohe
Tools.cxx:1283:37: error: cannot convert
'itksys::SystemTools::Stat_t* {aka itks
Post by Marc michel Rohe
ys::_stat64*}' to '__stat64*' for argument '2' to 'int
_wstat64(const wchar_t*,
Post by Marc michel Rohe
__stat64*)'
return _wstat64(wpath.c_str(), buf);
^
In file included from
D:\Libraries\InsightToolkit-4.12.2\src\Modules\ThirdParty\
D:/Libraries/InsightToolkit-4.12.2/build/Modules/ThirdParty/KWSys/src/itksys/Sys
Post by Marc michel Rohe
temTools.hxx:331:18: note: class type
_stat64}' is incomplete
typedef struct _stat64 Stat_t;
^~~~~~~
Modules\ThirdParty\KWSys\src\KWSys\CMakeFiles\itksys.dir\build.make:312: recipe
Post by Marc michel Rohe
for target
'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/SystemTools
Post by Marc michel Rohe
.cxx.obj' failed
mingw32-make[2]: ***
[Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/S
Post by Marc michel Rohe
ystemTools.cxx.obj] Error 1
CMakeFiles\Makefile2:469: recipe for target
'Modules/ThirdParty/KWSys/src/KWSys/
Post by Marc michel Rohe
CMakeFiles/itksys.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/a
Post by Marc michel Rohe
ll] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
----- Mail original -----
Envoyé: Lundi 16 Octobre 2017 16:40:17
Objet: Re: [ITK-users] Problem compiling ITK with windows 7
Hello Marc,
Please try the latest release (4.12.2) or ITK Git master, which
have
Post by Marc michel Rohe
updated versions of GDCM and let us know how it goes.
Thanks,
Matt
On Mon, Oct 16, 2017 at 10:04 AM, Marc michel Rohe
Post by Marc michel Rohe
Hello,
I have compiled several times ITK under linux but I cannot
make it work
Post by Marc michel Rohe
Post by Marc michel Rohe
with
windows with which I am not really familiar.
I configure and generate files using CMake and then use MinGW
with the
Post by Marc michel Rohe
Post by Marc michel Rohe
command promt (mingw32-make) to build the project. Building
start correctly
Post by Marc michel Rohe
Post by Marc michel Rohe
and then I get the following output on the command promt (see
below)
Post by Marc michel Rohe
Post by Marc michel Rohe
Thanks a lot for your help !
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
N
ULL, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_STRING_BASE64_
ANY' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
c
ertBin, &certBinLen, NULL, NULL ) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptStringToBinary
A' was not declared in this scope
if ( !CryptStringToBinaryA( (LPCSTR)certHexBuf, 0,
CRYPT_STRING_BASE64_ANY,
Post by Marc michel Rohe
Post by Marc michel Rohe
c
ertBin, &certBinLen, NULL, NULL ) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member
function 'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
NULL, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_STRING_BASE64
_ANY' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptStringToBinar
yA' was not declared in this scope
if ( !CryptStringToBinaryA((LPCSTR)keyHexBuffer, 0,
CRYPT_STRING_BASE64_ANY,
keyBinBuffer, &keyBinBufferLen, NULL, NULL) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, NULL,
&keyBlobLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'PKCS_RSA_PRIVATE_KE
Y' was not declared in this scope
if (!CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
PKCS_RSA_PR
IVATE_KEY, keyBinBuffer, keyBinBufferLen, 0, NULL, keyBlob,
&keyBlobLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~
~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member
function 'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
dcm::CAPICryptographicMessageSyntax::Encrypt(char*, size_t&,
const char*,
Post by Marc michel Rohe
Post by Marc michel Rohe
size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_ENCRYPT_MESSAG
E_PARA' was not declared in this scope
CRYPT_ENCRYPT_MESSAGE_PARA EncryptParams = {0};
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'EncryptParams'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
EncryptParams.cbSize = sizeof(EncryptParams);
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptEncryptMessag
e' was not declared in this scope
if(! CryptEncryptMessage(&EncryptParams,
(DWORD)certifList.size(),
Post by Marc michel Rohe
Post by Marc michel Rohe
(PCCERT_CO
NTEXT *)&certifList[0], (BYTE *)array, (DWORD)len, (BYTE
*)output, (DWORD
Post by Marc michel Rohe
Post by Marc michel Rohe
*)&out
len) )
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_E_UNKNOWN_ALG
O' was not declared in this scope
if (dwResult == CRYPT_E_UNKNOWN_ALGO)
^~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member
function 'virtual
Post by Marc michel Rohe
Post by Marc michel Rohe
bool g
dcm::CAPICryptographicMessageSyntax::Decrypt(char*, size_t&,
const char*,
Post by Marc michel Rohe
Post by Marc michel Rohe
size_t
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'PCMSG_CMS_RECIPIENT_
INFO' was not declared in this scope
PCMSG_CMS_RECIPIENT_INFO recipientInfo = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CRYPT_ASN_ENCODING'
was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION,
0, NULL,
Post by Marc michel Rohe
Post by Marc michel Rohe
NULL))
)
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_ENVELOPED_DAT
A_PKCS_1_5_VERSION' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION,
0, NULL,
Post by Marc michel Rohe
Post by Marc michel Rohe
NULL))
)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgOpenToDeco
de' was not declared in this scope
if (! (hMsg = CryptMsgOpenToDecode(CRYPT_ASN_ENCODING |
X509_ASN_ENCODING |
Post by Marc michel Rohe
Post by Marc michel Rohe
P
KCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION,
0, NULL,
Post by Marc michel Rohe
Post by Marc michel Rohe
NULL))
)
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgUpdate'
was
not declared in this scope
if(! CryptMsgUpdate(hMsg, (BYTE*)array, (DWORD)len, TRUE))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_TYPE_PARAM' wa
s not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType,
&cbMessageTyp
eLen))
^~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_TYPE_PARAM, 0, &dwMessageType,
&cbMessageTyp
eLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_ENVELOPED'
was
not declared in this scope
if(dwMessageType != CMSG_ENVELOPED)
^~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_RECIPIENT_COUN
T_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0,
&nrOfRecipeints,
Post by Marc michel Rohe
Post by Marc michel Rohe
&
nrOfRecipientsLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_RECIPIENT_COUNT_PARAM, 0,
&nrOfRecipeints,
Post by Marc michel Rohe
Post by Marc michel Rohe
&
nrOfRecipientsLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
type '<type
Post by Marc michel Rohe
Post by Marc michel Rohe
error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
NULL, &cbReci
Post by Marc michel Rohe
Post by Marc michel Rohe
pientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
NULL, &cbReci
Post by Marc michel Rohe
Post by Marc michel Rohe
pientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
recipientInfo = (PCMSG_CMS_RECIPIENT_INFO) new
BYTE[cbRecipientInfoLen];
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_CMS_RECIPIENT_
INFO_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
recipientInfo
Post by Marc michel Rohe
Post by Marc michel Rohe
, &cbRecipientInfoLen))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CMS_RECIPIENT_INFO_PARAM, i,
recipientInfo
Post by Marc michel Rohe
Post by Marc michel Rohe
, &cbRecipientInfoLen))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0,
NULL,
Post by Marc michel Rohe
Post by Marc michel Rohe
&cekAlgLe
n))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0,
NULL,
Post by Marc michel Rohe
Post by Marc michel Rohe
&cekAlgLe
n))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_ENVELOPE_ALGOR
ITHM_PARAM' was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0,
cekAlg,
Post by Marc michel Rohe
Post by Marc michel Rohe
&cekAlg
Len))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_ENVELOPE_ALGORITHM_PARAM, 0,
cekAlg,
Post by Marc michel Rohe
Post by Marc michel Rohe
&cekAlg
Len))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL,
&bareContentLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, NULL,
&bareContentLen))
Post by Marc michel Rohe
Post by Marc michel Rohe
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CMSG_CONTENT_PARAM'
was not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent,
&bareContentL
en))
^~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'CryptMsgGetParam' w
as not declared in this scope
if(! CryptMsgGetParam(hMsg, CMSG_CONTENT_PARAM, 0, bareContent,
&bareContentL
en))
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'CryptMsgClose'
Post by Marc michel Rohe
Post by Marc michel Rohe
was
not declared in this scope
if (hMsg) CryptMsgClose(hMsg);
^
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
'recipientInfo'
Post by Marc michel Rohe
Post by Marc michel Rohe
was n
ot declared in this scope
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
type '<type
Post by Marc michel Rohe
Post by Marc michel Rohe
error>'
argument given to 'delete', expected pointer
if (recipientInfo) delete[] recipientInfo;
^~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
ommon\gdcmCAPICryptographicMessageSyntax.cxx: In member
function 'bool
Post by Marc michel Rohe
Post by Marc michel Rohe
gdcm::CAP
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'MS_ENH_RSA_AES_PROV
' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL, MS_ENH_RSA_AES_PROV,
PROV_RSA_AES,
Post by Marc michel Rohe
Post by Marc michel Rohe
CR
YPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in
cryptmsgcontrol not
Post by Marc michel Rohe
Post by Marc michel Rohe
workin
g
^~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
Post by Marc michel Rohe
Post by Marc michel Rohe
'MS_ENH_RSA_AES_PROV
_A' was not declared in this scope
if (!CryptAcquireContextA(&hProv, NULL,
MS_ENH_RSA_AES_PROV_A" (Prototype
Post by Marc michel Rohe
Post by Marc michel Rohe
)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider
(Prototype)"*/,
Post by Marc michel Rohe
Post by Marc michel Rohe
PROV
_RSA_AES, CRYPT_VERIFYCONTEXT)) //CRYPT_VERIFYCONTEXT aes decr in
cryptmsgcontro
l not working
^~~~~~~~~~~~~~~~~~~~~
D:\Libraries\InsightToolkit-4.11.1\src\Modules\ThirdParty\GDCM\src\gdcm\Source\C
expected ')'
Post by Marc michel Rohe
Post by Marc michel Rohe
before
string constant
if (!CryptAcquireContextA(&hProv, NULL,
MS_ENH_RSA_AES_PROV_A" (Proto
Post by Marc michel Rohe
Post by Marc michel Rohe
type)" /*"Microsoft Enhanced RSA and AES Cryptographic Provider
(Prototype)"*/,
PROV_RSA_AES, CRYPT_NEWKEYSET | CRYPT_VERIFYCONTEXT))
^~~~~~~~
~~~~~~
Modules\ThirdParty\GDCM\src\gdcm\Source\Common\CMakeFiles\gdcmCommon.dir\build.m
Post by Marc michel Rohe
Post by Marc michel Rohe
ake:787: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMake
Files/gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj' failed
Post by Marc michel Rohe
Post by Marc michel Rohe
mingw32-make[2]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/gdcmCAPICryptographicMessageSyntax.cxx.obj]
Error 1
Post by Marc michel Rohe
Post by Marc michel Rohe
CMakeFiles\Makefile2:6027: recipe for target
'Modules/ThirdParty/GDCM/src/gdcm/S
ource/Common/CMakeFiles/gdcmCommon.dir/all' failed
mingw32-make[1]: ***
[Modules/ThirdParty/GDCM/src/gdcm/Source/Common/CMakeFiles/
gdcmCommon.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The ITK community is transitioning from this mailing list to
discourse.itk.org <http://discourse.itk.org>. Please join us
there!
Post by Marc michel Rohe
Post by Marc michel Rohe
________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
<http://www.kitware.com/opensource/opensource.html>
Post by Marc michel Rohe
Post by Marc michel Rohe
http://www.kitware.com/products/protraining.php
<http://www.kitware.com/products/protraining.php>
Post by Marc michel Rohe
Post by Marc michel Rohe
http://www.itk.org/Wiki/ITK_FAQ <http://www.itk.org/Wiki/ITK_FAQ>
http://public.kitware.com/mailman/listinfo/insight-users
<http://public.kitware.com/mailman/listinfo/insight-users>
The ITK community is transitioning from this mailing list to
discourse.itk.org <http://discourse.itk.org>. Please join us there!
________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
<http://www.kitware.com/opensource/opensource.html>
http://www.kitware.com/products/protraining.php
<http://www.kitware.com/products/protraining.php>
http://www.itk.org/Wiki/ITK_FAQ <http://www.itk.org/Wiki/ITK_FAQ>
http://public.kitware.com/mailman/listinfo/insight-users
<http://public.kitware.com/mailman/listinfo/insight-users>
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...