[Dcmlib] Error Compile GDCM

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Jan 28 18:29:16 CET 2008


Hi Paulo,

  Could you try the following:

copy the file: vtkgdcmPython.dll
and rename it into vtkgdcmPython.pyd

then try to load the lib again

-Mathieu

On Jan 28, 2008 6:05 PM, Paulo Henrique Junqueira Amorim
<paulojamorim at gmail.com> wrote:
> Hi,
>
> My
>
> Path = %PythonPath%
>
> PYTHONPATH =
> C:\Python25;C:\Python25\Lib\site-packages;C:\Python25\Lib\site-packages\vtk;C:\Python25\Lib\site-packages\gdcmPython;
>
> Within gdcmPython have
>
> Bmp2Dcm.lib
>  core.py
> gdcm.dll
> gdcm.lib
> gdcm.py
> gdcmjpeg12.dll
> gdcmjpeg12.lib
> gdcmjpeg16.dll
> gdcmjpeg16.lib
> gdcmjpeg8.dll
> gdcmjpeg8.lib
> gdcmopenjpeg.dll
> gdcmopenjpeg.lib
> gdcmVersion.py
> gdcmVersion.pyc
>  vtk.py
> vtk.pyc
> vtkgdcm.dll
> vtkgdcm.lib
> vtkgdcmdemo.lib
> vtkgdcmPython.dll
> vtkgdcmPython.lib
> vtkgdcmSerieViewer.lib
> vtkgdcmSerieViewer2.lib
> vtkgdcmViewer.lib
> vtkgdcmViewer2.lib
> vtkWriteDicom.lib
>  vtkWriteDicomExtended.lib
> _gdcm.dll
> _gdcm.lib
> __init__.py
> __init__.pyc
>
>
>
>
>
> Thanks,
> Paulo
>
>
> 2008/1/28, Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> > You need to tell python where to look for loadable modules. In this
> > case you should set something like this:
> >
> >   PYTHONPATH=c:/dir/where/vtkgdcmPython/can/be/found
> >
> > HTH
> > -Mathieu
> >
> > On Jan 28, 2008 5:35 PM, Paulo Henrique Junqueira Amorim
> > <paulojamorim at gmail.com> wrote:
> > >    Hi,
> > >
> > >    I am posting the list also,
> > >
> > >    Thanks for tip,
> > >
> > >    >>import gdcmPython
> > >    is  ok,
> > >
> > >    But Presents error.
> > >
> > >  >>> import gdcmPython.vtk
> > >
> > > Traceback (most recent call last):
> > >    File "<stdin>", line 1, in <module>
> > >   File "C:\gdc\gdcmPython\demo\..\..\gdcmPython\vtk.py", line 6, in
> > > <module>
> > >     from vtkgdcmPython import *
> > > ImportError: No module named vtkgdcmPython
> > >  >>>
> > >
> > >   Because I need to use vtkGdcmReader
> > >
> > >
> > >   Regards,
> > >   Paulo Amorim
> > >
> > >
> > >
> > >
> > >
> > > > Hi Paulo,
> > > >
> > > >   Please reply to the mailing list instead of private email, as other
> > > > might be able to help you too, thanks.
> > > >
> > > >   For all 'pure' gdcm executable, you do not need to change anything,
> > > > since on windows the $PWD will be the first path used to look for
> > > > shared libs. But if you are using 'hybrid' gdcm+VTK library, then you
> > > > either need to set your PATH to include the shared lib for VTK, or
> > > > simply copy all the VTK dll into your gdcm bin directory (where all
> > > > gdcm .dll are to be found).
> > > >
> > > > HTH
> > > > -Mathieu
> > > >
> > > >
> > > > On Jan 28, 2008 2:08 PM, Paulo Henrique Junqueira Amorim
> > > > <paulojamorim at gmail.com> wrote:
> > > > > Congratulations Mathieu,
> > > > >
> > > > > I am update my cvs and compile:
> > > > >
> > > > > ========== Rebuild All: 18 succeeded, 0 failed, 1 skipped ==========
> > > > >
> > > > > How do I use?
> > > > >
> > > > >  Set in the path?
> > > > >
> > > > > Generate files:
> > > > >
> > > > > 28/01/2008  11:06            22.528 Bmp2Dcm.exe
> > > > > 28/01/2008  11:06             4.924 Bmp2Dcm.exp
> > > > > 28/01/2008  11:06           183.296 bmp2dcm.idb
> > > > > 28/01/2008  11:06             8.928 Bmp2Dcm.lib
> > > > >  28/01/2008  11:05           675.840 gdcm.dll
> > > > > 28/01/2008  11:05           237.333 gdcm.exp
> > > > > 28/01/2008  11:05           510.976 gdcm.idb
> > > > > 28/01/2008  11:05           384.830 gdcm.lib
> > > > > 28/01/2008  11:05           135.168 gdcmjpeg12.dll
> > > > >  28/01/2008  11:05            20.623 gdcmjpeg12.exp
> > > > > 28/01/2008  11:05           166.912 gdcmjpeg12.idb
> > > > > 28/01/2008  11:05            35.368 gdcmjpeg12.lib
> > > > > 28/01/2008  11:05           135.168 gdcmjpeg16.dll
> > > > > 28/01/2008  11:05            20.623 gdcmjpeg16.exp
> > > > >  28/01/2008  11:05           166.912 gdcmjpeg16.idb
> > > > > 28/01/2008  11:05            35.368 gdcmjpeg16.lib
> > > > > 28/01/2008  11:05           135.168 gdcmjpeg8.dll
> > > > > 28/01/2008  11:05            20.268 gdcmjpeg8.exp
> > > > > 28/01/2008  11:05           166.912 gdcmjpeg8.idb
> > > > >  28/01/2008  11:05            34.648 gdcmjpeg8.lib
> > > > > 28/01/2008  11:05            90.112 gdcmopenjpeg.dll
> > > > > 28/01/2008  11:05             2.941 gdcmopenjpeg.exp
> > > > > 28/01/2008  11:05           297.984 gdcmopenjpeg.idb
> > > > >  28/01/2008  11:05             5.840 gdcmopenjpeg.lib
> > > > > 28/01/2008  11:06           147.456 vtkgdcm.dll
> > > > > 28/01/2008  11:06            37.104 vtkgdcm.exp
> > > > > 28/01/2008  11:06           338.944 vtkgdcm.idb
> > > > > 28/01/2008  11:06            61.916 vtkgdcm.lib
> > > > >  28/01/2008  11:06            16.896 vtkgdcmdemo.exe
> > > > > 28/01/2008  11:06             5.794 vtkgdcmdemo.exp
> > > > > 28/01/2008  11:06           216.064 vtkgdcmdemo.idb
> > > > > 28/01/2008  11:06            10.496 vtkgdcmdemo.lib
> > > > > 28/01/2008  11:06            22.528 vtkgdcmPython.dll
> > > > >  28/01/2008  11:06               592 vtkgdcmPython.exp
> > > > > 28/01/2008  11:06           412.672 vtkgdcmpython.idb
> > > > > 28/01/2008  11:06             1.898 vtkgdcmPython.lib
> > > > > 28/01/2008  11:06            27.136 vtkgdcmSerieViewer.exe
> > > > >  28/01/2008  11:06             5.809 vtkgdcmSerieViewer.exp
> > > > > 28/01/2008  11:06           207.872 vtkgdcmserieviewer.idb
> > > > > 28/01/2008  11:06            10.838 vtkgdcmSerieViewer.lib
> > > > > 28/01/2008  11:06            27.136 vtkgdcmSerieViewer2.exe
> > > > >  28/01/2008  11:06             5.810 vtkgdcmSerieViewer2.exp
> > > > > 28/01/2008  11:06           199.680 vtkgdcmserieviewer2.idb
> > > > > 28/01/2008  11:06            10.868 vtkgdcmSerieViewer2.lib
> > > > > 28/01/2008  11:06            16.896 vtkgdcmViewer.exe
> > > > >  28/01/2008  11:06             5.798 vtkgdcmViewer.exp
> > > > > 28/01/2008  11:06           191.488 vtkgdcmviewer.idb
> > > > > 28/01/2008  11:06            10.646 vtkgdcmViewer.lib
> > > > > 28/01/2008  11:06            22.016 vtkgdcmViewer2.exe
> > > > >  28/01/2008  11:06            10.693 vtkgdcmViewer2.exp
> > > > > 28/01/2008  11:06           191.488 vtkgdcmviewer2.idb
> > > > > 28/01/2008  11:06            18.934 vtkgdcmViewer2.lib
> > > > > 28/01/2008  11:06            18.432 vtkWriteDicom.exe
> > > > >  28/01/2008  11:06            10.272 vtkWriteDicom.exp
> > > > > 28/01/2008  11:06           166.912 vtkwritedicom.idb
> > > > > 28/01/2008  11:06            18.168 vtkWriteDicom.lib
> > > > > 28/01/2008  11:06            25.088 vtkWriteDicomExtended.exe
> > > > >  28/01/2008  11:06            10.288 vtkWriteDicomExtended.exp
> > > > > 28/01/2008  11:06           166.912 vtkwritedicomextended.idb
> > > > > 28/01/2008  11:06            18.632 vtkWriteDicomExtended.lib
> > > > > 28/01/2008  11:06           401.408 _gdcm.dll
> > > > >  28/01/2008  11:06               552 _gdcm.exp
> > > > > 28/01/2008  11:06           240.640 _gdcm.idb
> > > > > 28/01/2008  11:06             1.684 _gdcm.lib
> > > > >
> > > > >
> > > > > Thanks,
> > > > > Paulo
> > > > >
> > > > >
> > > > >
> > > > > 2008/1/28, Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> > > > >
> > > > > > Hi Paulo,
> > > > > >
> > > > > >   This should be fixed. Please try again with after a cvs update.
> > > > > >
> > > > > > Thanks
> > > > > > -Mathieu
> > > > > >
> > > > > > On Jan 28, 2008 1:16 PM, Paulo Henrique Junqueira Amorim
> > > > > > <paulojamorim at gmail.com> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am update my cvs and compile one but showed error, Are anexed
> log
> > > > > > >
> > > > > > > Again compiled vtk and gdcm on VC++ 2005
> > > > > > >
> > > > > > >
> > > > > > > Generated only those files,
> > > > > > >
> > > > > > > 28/01/2008  10:03            19.456 bmp2dcm.idb
> > > > > > >  28/01/2008  10:02           675.840 gdcm.dll
> > > > > > > 28/01/2008  10:02           237.333 gdcm.exp
> > > > > > > 28/01/2008  10:02           510.976 gdcm.idb
> > > > > > > 28/01/2008  10:02           384.830 gdcm.lib
> > > > > > > 28/01/2008  10:02           135.168 gdcmjpeg12.dll
> > > > > > >  28/01/2008  10:02            20.623 gdcmjpeg12.exp
> > > > > > > 28/01/2008  10:02           166.912 gdcmjpeg12.idb
> > > > > > > 28/01/2008  10:02            35.368 gdcmjpeg12.lib
> > > > > > > 28/01/2008  10:02           135.168 gdcmjpeg16.dll
> > > > > > > 28/01/2008  10:02            20.623 gdcmjpeg16.exp
> > > > > > >  28/01/2008  10:02           166.912 gdcmjpeg16.idb
> > > > > > > 28/01/2008  10:02            35.368 gdcmjpeg16.lib
> > > > > > > 28/01/2008  10:02           135.168 gdcmjpeg8.dll
> > > > > > > 28/01/2008  10:02            20.268 gdcmjpeg8.exp
> > > > > > > 28/01/2008  10:02           166.912 gdcmjpeg8.idb
> > > > > > >  28/01/2008  10:02            34.648 gdcmjpeg8.lib
> > > > > > > 28/01/2008  10:02            90.112 gdcmopenjpeg.dll
> > > > > > > 28/01/2008  10:02             2.941 gdcmopenjpeg.exp
> > > > > > > 28/01/2008  10:02           297.984 gdcmopenjpeg.idb
> > > > > > >  28/01/2008  10:02             5.840 gdcmopenjpeg.lib
> > > > > > > 28/01/2008  10:03           147.456 vtkgdcm.dll
> > > > > > > 28/01/2008  10:03            37.104 vtkgdcm.exp
> > > > > > > 28/01/2008  10:03           338.944 vtkgdcm.idb
> > > > > > > 28/01/2008  10:03            61.916 vtkgdcm.lib
> > > > > > >  28/01/2008  10:03            16.896 vtkgdcmdemo.exe
> > > > > > > 28/01/2008  10:03             5.794 vtkgdcmdemo.exp
> > > > > > > 28/01/2008  10:03           216.064 vtkgdcmdemo.idb
> > > > > > > 28/01/2008  10:03            10.496 vtkgdcmdemo.lib
> > > > > > > 28/01/2008  10:03            22.528 vtkgdcmPython.dll
> > > > > > >  28/01/2008  10:03               592 vtkgdcmPython.exp
> > > > > > > 28/01/2008  10:03           412.672 vtkgdcmpython.idb
> > > > > > > 28/01/2008  10:03             1.898 vtkgdcmPython.lib
> > > > > > > 28/01/2008  10:03            27.136 vtkgdcmSerieViewer.exe
> > > > > > >  28/01/2008  10:03             5.809 vtkgdcmSerieViewer.exp
> > > > > > > 28/01/2008  10:03           207.872 vtkgdcmserieviewer.idb
> > > > > > > 28/01/2008  10:03            10.838 vtkgdcmSerieViewer.lib
> > > > > > > 28/01/2008  10:03            27.136 vtkgdcmSerieViewer2.exe
> > > > > > >  28/01/2008  10:03             5.810 vtkgdcmSerieViewer2.exp
> > > > > > > 28/01/2008  10:03           199.680 vtkgdcmserieviewer2.idb
> > > > > > > 28/01/2008  10:03            10.868 vtkgdcmSerieViewer2.lib
> > > > > > > 28/01/2008  10:03            16.896 vtkgdcmViewer.exe
> > > > > > >  28/01/2008  10:03             5.798 vtkgdcmViewer.exp
> > > > > > > 28/01/2008  10:03           191.488 vtkgdcmviewer.idb
> > > > > > > 28/01/2008  10:03            10.646 vtkgdcmViewer.lib
> > > > > > > 28/01/2008  10:03            22.016 vtkgdcmViewer2.exe
> > > > > > >  28/01/2008  10:03            10.693 vtkgdcmViewer2.exp
> > > > > > > 28/01/2008  10:03           191.488 vtkgdcmviewer2.idb
> > > > > > > 28/01/2008  10:03            18.934 vtkgdcmViewer2.lib
> > > > > > > 28/01/2008  10:03            18.432 vtkWriteDicom.exe
> > > > > > >  28/01/2008  10:03            10.272 vtkWriteDicom.exp
> > > > > > > 28/01/2008  10:03           166.912 vtkwritedicom.idb
> > > > > > > 28/01/2008  10:03            18.168 vtkWriteDicom.lib
> > > > > > > 28/01/2008  10:03            25.088 vtkWriteDicomExtended.exe
> > > > > > >  28/01/2008  10:03            10.288 vtkWriteDicomExtended.exp
> > > > > > > 28/01/2008  10:03           166.912 vtkwritedicomextended.idb
> > > > > > > 28/01/2008  10:03            18.632 vtkWriteDicomExtended.lib
> > > > > > > 28/01/2008  10:03           401.408 _gdcm.dll
> > > > > > >  28/01/2008  10:03               552 _gdcm.exp
> > > > > > > 28/01/2008  10:03           240.640 _gdcm.idb
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Thanks
> > > > > > > Paulo
> > > > > > >
> > > > > > >
> > > > > > > 2008/1/27, Paulo Henrique Junqueira Amorim
> <paulojamorim at gmail.com>:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I will follow their tips and  compile again.
> > > > > > > >
> > > > > > > > Thank you,
> > > > > > > > Paulo Amorim
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2008/1/27, Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> > > > > > > > > Congratulation Paulo ! You just found your first bug in GDCM
> !
> > > > > > > > >
> > > > > > > > > This is fixed in the current CVS HEAD of GDCM. Please update
> > > your
> > > > > > > > > copy, by doing a cvs update.
> > > > > > > > >
> > > > > > > > > Sorry for the troubles,
> > > > > > > > > -Mathieu
> > > > > > > > >
> > > > > > > > > Ref:
> > > > > > > > > $ cvs ci -m"COMP: Fix compilation on Win32 thanks to Paulo
> for
> > > > > report"
> > > > > > > > > Checking in vtkImageColorViewer.h;
> > > > > > > > > /cvs/public/gdcm/vtk/vtkImageColorViewer.h,v  <--
> > > > > vtkImageColorViewer.h
> > > > > > > > > new revision: 1.2; previous revision: 1.1
> > > > > > > > > done
> > > > > > > > > Checking in vtkImageMapToWindowLevelColors2.h;
> > > > > > > > > /cvs/public/gdcm/vtk/vtkImageMapToWindowLevelColors2.h,v
> <--
> > > > > > > > > vtkImageMapToWindowLevelColors2.h
> > > > > > > > > new revision: 1.2; previous revision: 1.1
> > > > > > > > > done
> > > > > > > > >
> > > > > > > > > On Jan 27, 2008 9:43 PM, Paulo Henrique Junqueira Amorim
> > > > > > > > > <paulojamorim at gmail.com> wrote:
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > > I selected to vtk Release.
> > > > > > > > > >
> > > > > > > > > > I am new compile of the gdcm with Release and  new error
> > > atached.
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2008/1/27, Mathieu Malaterre
> <mathieu.malaterre at gmail.com>:
> > > > > > > > > >
> > > > > > > > > > > Ok so you decided to select: RelWithDebInfo for GDCM.
> What
> > > did
> > > > > you
> > > > > > > > > > > selected for VTK ?
> > > > > > > > > > >
> > > > > > > > > > > On Jan 27, 2008 9:27 PM, Paulo Henrique Junqueira Amorim
> > > > > > > > > > > <paulojamorim at gmail.com> wrote:
> > > > > > > > > > > > Hello,
> > > > > > > > > > > >
> > > > > > > > > > > > I am attached file with errors, compile the gdcm.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks
> > > > > > > > > > > > Paulo
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Mathieu
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Mathieu
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Mathieu
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Mathieu
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Mathieu
> >
>
>



-- 
Mathieu



More information about the Dcmlib mailing list