[Dcmlib] Python-VTK on 64 bits processors

Jean-Pierre ROUX jean-pierre.roux at creatis.insa-lyon.fr
Wed Nov 16 18:40:05 CET 2005


At 10:20 -0500 16/11/05, Mathieu Malaterre wrote:
>Jean-Pierre Roux wrote:
>>Hi, everybody .
>>
>>I just ran ctest on a 64 bits processor based PC.
>>Everything goes well, but Python-VTK-Reader/Python-VTK-Writer :
>>-------------------------------------------------------------
>>Changing directory into 
>>/misc/raid/jpr/Dashboards/MyTests/gdcm-cc-exp/gdcmPython/demo
>>35/ 36 Testing Python-VTK-Reader
>>Test command: /usr/bin/python 
>>/misc/raid/jpr/Dashboards/MyTests/gdcm-cc-exp/gdcmPython/demo/vtkGdcmR 
>>eader.py
>>Traceback (most recent call last):
>>File 
>>"/misc/raid/jpr/Dashboards/MyTests/gdcm-cc-exp/gdcmPython/demo/vtkGdcm 
>>Reader.py", line 5, in ?
>>  from vtkpython import *
>>File "/usr/lib/vtk/python/vtkpython.py", line 7, in ?
>>  from vtk import *
>>File "/usr/lib/vtk/python/vtk/__init__.py", line 9, in ?
>>  import dl
>>SystemError: module dl requires sizeof(int) == sizeof(long) == sizeof(char*)
>>--------------------------------------------------
>>
>>Sure, on 64 proc, it's not !
>>:-(
>>Any idea to fix the bug
>
>What is not on 64bits proc ? int and long are indeed of same size, 
>same thing for pointer...

In TestUtil.cxx, there are a few std::cout :
sizeof(int) : 4
sizeof(long) : 8
sizeof(char *) : 8

(That's why we use int16_t, int32_t, int64_t)
JPRx

  Jean-Pierre ROUX
  CREATIS - CNRS UMR 5515, INSERM U 630
  Laboratoire de Radiologie Experimentale
  Hopital Cardiologique
  28 Avenue du Doyen LEPINE
  B.P. Lyon-Montchat
  69394 Lyon Cedex 03

  Tel      : (+33) 04 72 35 74 12
  Fax      : (+33) 04 72 68 49 16
  URL      : http://www.creatis.univ-lyon1.fr
  e-mail   : jpr at creatis.univ-lyon1.fr
								   




More information about the Dcmlib mailing list