[Insight-users] InsightToolkit-2.0.1 with CYGWIN

Torsten Schröer torsten.schroeer at igd.fraunhofer.de
Wed Mar 30 03:13:06 EST 2005


Hallo all!

Building InsightToolkit-2.0.1 with CYGWIN (1.5.13-1) requires some 
little changes regarding GDCM library (which is ON per default). Either 
turn GDCM OFF (advanced values) when You don't need it, or do the following:

- Open Utilities\gdcm\Dicts\CMakeLists.txt
- Search lines:
	...
	- FILE(READ "dicomV3.dic" ENT)
	- STRING(REGEX REPLACE "\n" ";" ENT "${ENT}")
	...
	- FILE(READ "dicomTS.dic" ENT_TS)
	- STRING(REGEX REPLACE "\n" ";" ENT_TS "${ENT_TS}")
	...
- Add lines (>):
	...
	- FILE(READ "dicomV3.dic" ENT)
	- STRING(REGEX REPLACE "\n" ";" ENT "${ENT}")
	> STRING(REGEX REPLACE "\r" "" ENT "${ENT}")
	...
	- FILE(READ "dicomTS.dic" ENT_TS)
	- STRING(REGEX REPLACE "\n" ";" ENT_TS "${ENT_TS}")
	> STRING(REGEX REPLACE "\r" "" ENT_TS "${ENT_TS}")
	...

Replacing "\r" through "" removes CarriageReturn-LineFeed (CRLF - DOS). 
"\n" removes only unix like LineFeed (LF). Ignoring this step leads to 
insufficent "gdcmDefaultDicts.cxx" in Utilities\gdcm\src.

Regards,
Torsten.



More information about the Insight-users mailing list