<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Y'a un probleme avec makeDicomDir sur
cygwin.</FONT></DIV>
<DIV><FONT face=Arial size=2>Apparemment le chemin generé par cmake
(GDCM_DATA_ROOT) n'est pas compatible avec l'api win32</FONT></DIV>
<DIV><FONT face=Arial size=2>FindFirstFile dans DirList::Explore.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Deux solutions: </FONT></DIV>
<DIV><FONT face=Arial size=2>Une préventive qui consiste a modifier
DirList::Explore pour que sous cygwin on utilise opendir() (mode unix
standard).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Une curative, qui modifie le programe de test
makeDicomDir comme suit (appel a la fonction cygwin de conversion de chemin unix
vers chemin dos: cygwin32_conv_to_full_win32_path(const char*, char
*)) :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:rouet@vanoise:~/src/gdcm/Test$">rouet@vanoise:~/src/gdcm/Test$</A>
cvs diff makeDicomDir.cxx<BR>Index:
makeDicomDir.cxx<BR>===================================================================<BR>RCS
file: /cvs/public/gdcm/Test/makeDicomDir.cxx,v<BR>retrieving revision
1.31<BR>diff -r1.31 makeDicomDir.cxx<BR>22a23,25<BR>> #if defined
(__CYGWIN__)<BR>> #include "sys/cygwin.h"<BR>>
#endif<BR>47c50<BR>< std::string
dirName;<BR>---<BR>> char *inputDirName = argc > 1 ?
argv[1] : GDCM_DATA_ROOT;<BR>49,56c52,62<BR>< if (argc >
1)<BR>< {<BR><
dirName = argv[1];<BR>< }<BR><
else<BR>< {<BR><
dirName = GDCM_DATA_ROOT;<BR><
}<BR>---<BR>> std::string dirName;<BR>><BR>> #if
defined (__CYGWIN__)<BR>> // on cygwin, cmake use a cygwin
path, which is not compatible with the<BR>> //
FindFirstFile winAPI call in DirList::Explore<BR>> char
dosDirName[1024];<BR>>
cygwin32_conv_to_full_win32_path(inputDirName,dosDirName);<BR>>
inputDirName = dosDirName;<BR>> #endif<BR>><BR>>
dirName = inputDirName;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Perso je préfère la premiere...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>JM</FONT></DIV></BODY></HTML>