[ITK] [ITK-users] Problem compiling ITK with windows 7
Marc michel Rohe
marc-michel.rohe at inria.fr
Mon Oct 16 10:04:51 EDT 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20171016/11b6bfe5/attachment-0001.html>
-------------- next part --------------
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
More information about the Community
mailing list