[vtkusers] Build VTK with Intel Compiler?

Richard Frank rickfrank at me.com
Tue May 8 05:34:51 EDT 2012


It seems to be perhaps incorrect linker issues?

Also, all the projects that seem to be a problem have

for ITK I notice that the linker commands in Visual Studio Projects are:

 
-lrpcrt4.lib
-lcomctl32.lib
-lwsock32.lib
-lkernel32.lib
-lws2_32.lib

and all the link errors seem to be wrt windows runtime.

389>  xilink: executing 'link'
389>LINK : warning LNK4044: unrecognized option '/lrpcrt4.lib'; ignored
389>LINK : warning LNK4044: unrecognized option '/lcomctl32.lib'; ignored
389>LINK : warning LNK4044: unrecognized option '/lwsock32.lib'; ignored
389>LINK : warning LNK4044: unrecognized option '/lkernel32.lib'; ignored
389>LINK : warning LNK4044: unrecognized option '/lws2_32.lib'; ignored
389>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\itkhdf5-4.0.lib'
 
 


Error      66           error MSB6006: "cmd.exe" exited with code 9009.           C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets        151         6              itkhdf5
Error      1111       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\IO\GDCM\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)        ITKIOGDCMTestDriver
Error      1198       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Segmentation\BioCell\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKBioCellTestDriver
Error      1278       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Segmentation\Classifiers\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKClassifiersTestDriver
Error      1329       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Filtering\AntiAlias\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKAntiAliasTestDriver
Error      1385       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Filtering\BiasCorrection\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKBiasCorrectionTestDriver
Error      1415       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Filtering\BinaryMathematicalMorphology\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKBinaryMathematicalMorphologyTestDriver
Error      1488       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\Filtering\AnisotropicSmoothing\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)                ITKAnisotropicSmoothingTestDriver
Error      1580       error LNK2019: unresolved external symbol _WSAStartup at 8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)                C:\ITK400I.bin\Modules\IO\Mesh\test\itkgdcmCommon-4.0.lib(gdcmSystem.obj)          ITKIOMeshTestDriver
 
 
 

On May 7, 2012, at 1:19 PM, David E DeMarle wrote:

> I suspect it is the combination of icc and VS_2010_ that is an issue.
> 
> On Linux systems, VTK will compile with the intel compiler without any
> problems. I've heard, but never personally verified, that it also
> compiles fine on windows with older versions of VS and the intel
> compiler.
> 
> If you can post specific error messages and link commands, someone on
> the list may spot something specific.
> 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
> 
> 
> On Mon, May 7, 2012 at 12:02 PM, Rick Frank <rickfrank at me.com> wrote:
>> Has anyone built VTK (or ITK) with the Intel C++ compiler?
>> 
>> I cannot seem to get CMake to generate proper linker commands for Visual Studio 2010, windows 7 64 bit.
>> 
>> Let me know if anyone has successfully used the Intel Compiler.
>> 
>> Thanks
>> 
>> Rick
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120508/b413e104/attachment.htm>


More information about the vtkusers mailing list