[vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2

Paul Melis paul.melis at surfsara.nl
Mon Oct 10 11:01:05 EDT 2016


Just to follow-up on my own question: by changing 

#ifndef SIZEOF_LONG_LONG 
/* #undef SIZEOF_LONG_LONG */ 
#endif 

to 

#ifndef SIZEOF_LONG_LONG 
#define SIZEOF_LONG_LONG 8 
#endif 

in the generated <builddir>\ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h (line 106) the build succeeds and seems to work fine. I also checked the official Win64 installer for 7.0.0, but it seems that vtkXdmfReader isn't included, so for now I'll use the above workaround. 

Regards, 
Paul 


From: "Paul Melis" <paul.melis at surfsara.nl> 
To: vtkusers at vtk.org 
Sent: Friday, 7 October, 2016 15:44:16 
Subject: [vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2 

Hi, 

It seems something goes wrong relating to detection/sizeof the 64-bit integer type when compiling VTK 7.0.0 with VS 2008 x64 (or more precisely Microsoft Visual C++ Compiler for Python 2.7, which basically is a stripped version of VS2008): 

[ 38%] Building CXX object ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2. 
dir/XdmfArray.cxx.obj 
XdmfArray.cxx 
D:\Build\vtk-7.0.0-win64-py27\ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h(118) 
: fatal error C1189: #error : "64 bit long not defined" 
NMAKE : fatal error U1077: 'C:\Users\Opti\AppData\Local\Programs\Common\MICROS~1 
\VISUAL~1\9.0\VC\bin\amd64\cl.exe' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso 
ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso 
ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' 
Stop. 

The relevant piece from XdmfConfig.h where the error above comes from is: 

#if defined( SIZEOF_LONG_LONG ) 
# define XDMF_64_INT long long 
# define HAVE_64_INT 
# define XDMF_have_64_bit_int 
#elif defined( SIZEOF___INT64 ) 
# define XDMF_64_INT __int64 
# define HAVE_64_INT 
#else 
# error "64 bit long not defined" 
#endif 

I don't see where SIZEOF_LONG_LONG or SIZEOF__INT64 should come from in this case. Any clues where to check? 

Regards, 
Paul 



_______________________________________________ 
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 

Search the list archives at: http://markmail.org/search/?q=vtkusers 

Follow this link to subscribe/unsubscribe: 
http://public.kitware.com/mailman/listinfo/vtkusers 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161010/37ce6e66/attachment.html>


More information about the vtkusers mailing list