[Dcmlib] Problème pour comp iler la librairie gdcm pour VTK

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Jul 12 18:11:08 CEST 2007


I have to say I am kindda stuck here. I really have no clue why it
would not work for VS8 (which is for me really only VSExpress + MFC
AFAIK).

The VCExpress build of gdcm CVS + VTK CVS seems to be working for me,
see bender entry at:

http://public.kitware.com/dashboard.php?name=gdcm

in particular I used the following ctest script:

http://public.kitware.com/GDCM/Testing/Sites/bender/Win32-VS08-Debug/20070712-0100-Nightly/Notes.html

Are you willing to try out a little work using the console (either
cygwin, rxvt or cmd).

Simply save the attached file. Edit the txt file. You will need to
change the path to VTK. CTEST_DASHBOARD_ROOT should have been simply
"C:/" but you should changed to whatever you root path point to gdcm.
Since you are using VS8, you might need to change VCExpress.exe to devenv.com


The on the shell simply run:

ctest -S gourbish.txt -V

(ctest is located in c:\Program Files\Cmake 2.4\bin\ctest)

If this does not work, please send me your version of the file.

Thanks
-Mathieu



On 7/12/07, the.answer3 at libertysurf.fr <the.answer3 at libertysurf.fr> wrote:
> Hi Mathieu,
>
> Thank's for trying to help me...
> I have Microsoft Visual Studio 2005, not VC++ express.
> I can't install the librairies in C:\ as I'm working on a computer which is not mine.
> I already installed ITK and VTK without problem, and a project combining the two librairies without problem too.
>
> In fact, I find that the small project called vtkgdcm build a DLL (vtkgdcm.dll) but no .lib nor .exp. It is odd since the other small projects build DLL, .lib and .exp.
>
> Moreover, I tried the installation on another PC and I have the same problem... vtkgdcm.lib isn't built !
>
> Finally, after searches in google, I found that a few users had the same problem or a problem near the mine, but no solution in all discussions...
>
> Here the installation I did :
> - compilation of VTK in debug and release with CMake generated projects
> - install of GDCM
> - run CMake for generate GDCM projects with Micrisoft Visual Studio 2005 (not express version)
> -> option GDCM_VTK set to ON
> -> VTK_DIR is good (for example ...\vtk-bin)
> -> configure and OK
>
> And while compiling the projects, errors occur as vtkgdcm.lib is not built.
>
> You don't have anymore idea ?
>
>
> Gourbish.
>
>
> ---------- Initial Header -----------
>
> From      : "Mathieu Malaterre" <mathieu.malaterre at gmail.com>
> To          : "the.answer3 at libertysurf.fr" <the.answer3 at libertysurf.fr>
> Cc          : dcmlib <dcmlib at creatis.insa-lyon.fr>
> Date      : Thu, 12 Jul 2007 17:03:52 +0200
> Subject : Re: [Dcmlib] Problème pour comp iler la librairie gdcm pour VTK
>
> Hi Gourbish,
>
>   Since you are the first one to report this issue, I would be tempted
> to say you misconfigured something.
>
>   Since you seems familiar with building with CMake I would suggest
> you do the following:
>
>   Get VTK source in C:\VTK
>   Create VTK binary in c:\VTK-bin (select debug in VS2005)
>   Get gdcm source in c:\gdcm
>   Create gdcm binary in c:\gdcm-bin (select debug in VS2005). You'll
> need to check CMake is actually picking c:\VTK-bin and nothing else.
>
>   If an error (not a warning) occurs, please send the first one.
>
>   Obvisouly if you are building VTK in debug, you will only be allowed
> to build gdcm in debug mode (duh!).
>
> HTH
> -Mathieu
> Ps: You have read the following, right ?
> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
>
> On 7/12/07, the.answer3 at libertysurf.fr <the.answer3 at libertysurf.fr> wrote:
> > Bonjour à tous !
> >
> > Voilà mon soucis, lors de la compilation du projet visual studio, j'ai 8 erreurs de ce type :
> > << LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'vtkgdcm.lib' >> que cela soit en debug ou en release.
> >
> > Voici ma configuration :
> > - VTK-5.1 installée (version en cours de développement, le problème viendrait-il de là ?).
> > - Visual studio 2005
> > - GDCM-1.3.1
> > - CMake 2.4.6
> > - Pour CMake, j'ai mis l'option GDCM_VTK à ON, et le chemin trouvé pour VTK est le bon.
> >
> > Merci d'avance pour vos réponses...
> >
> > Bonne journée.
> >
> > Gourbish
> >
> > ------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------
> > Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr
> > Soumis à conditions.
> >
> >
> > _______________________________________________
> > Dcmlib mailing list
> > Dcmlib at creatis.insa-lyon.fr
> > http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> >
>
>
> --
> Mathieu
>
>
> ------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------
> Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr
> Soumis à conditions.
>
>
>


-- 
Mathieu
-------------- next part --------------
# these are the the name of the source and binary directory on disk. 
SET (CTEST_SOURCE_NAME gdcm)
SET (CTEST_BINARY_NAME gdcm-MSVC2005)
SET(CTEST_DASHBOARD_ROOT "C:/cygwin/home/mmalaterre/Creatis")
SET(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}")
SET(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_BINARY_NAME}")

# which ctest command to use for running the dashboard
SET (CTEST_COMMAND 
 "\"C:/Program Files/CMake 2.4/bin/ctest.exe\" -D Nightly -A ${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}"
  )

# should ctest wipe the binary tree before running
SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)

# what cmake command to use for configuring this dashboard
SET (CTEST_CMAKE_COMMAND 
  "\"C:/Program Files/CMake 2.4/bin/cmake.exe\""
  )

# set any extra envionment varibles here
SET (CTEST_ENVIRONMENT
"PATH=C:/WINDOWS/system32\;C:/WINDOWS\;C:/WINDOWS/System32/Wbem\;C:/PROGRA~1/CMake 2.4/bin\;C:/cygwin/home/mmalaterre/Projects/VTK-vs8/bin/debug"
)

SET (CTEST_INITIAL_CACHE "
CMAKE_GENERATOR:INTERNAL=Visual Studio 8 2005
CMAKE_MAKE_PROGRAM:FILEPATH=C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe
MAKECOMMAND:STRING=\"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe\" GDCM.sln /build Debug /project ALL_BUILD
# VTK was build without a CMAKE_BUILD_TYPE...
#CMAKE_BUILD_TYPE:STRING=Debug
SITE:STRING=bender
BUILDNAME:STRING=Win32-VS08-Debug
CVSCOMMAND:FILEPATH=C:/cygwin/bin/cvs.exe
GDCM_DATA_ROOT:PATH=C:/cygwin/home/mmalaterre/Creatis/gdcmData

GDCM_VTK:BOOL=ON
VTK_DIR:PATH=C:/cygwin/home/mmalaterre/Projects/VTK-vs8
")



More information about the Dcmlib mailing list