[Dcmlib] Compiling Simple Application using GDCM

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Wed Mar 7 10:30:30 CET 2007


Ram Vedam wrote:
> Hey Fellow GDCM users,
>
> I tried compiling a very simple application using MS Visual Studio.NET 
> 2005 and I was getting the following error:
>
> c:\Creatis\gdcm\include\gdcm\gdcmCommon.h(22) : fatal error C1083: Cannot 
>
> open include file: 'gdcmConfigure.h': No such file or directory
>   
Hi, Ram
gdcmConfigure.h is generated when you run CMake.
Could you send me your simple CMakeLists.txt, to see what's wrong
(Probabely a very simple example is missing on the server :-( )
Thx
Jean-Pierre Roux

> I noticed Mathieu's comment on the mailing list from a while back saying that you should use CMake to compile the application, but when I made the 
> CMakeLists.txt file and try using CMake, I got an error
> regarding CMake not find GDCM_DIR and how I should set GDCM_DIR. Is there something I'm missing?
>
> Thanks,
>
> Ram
>
> P.S. The application simply was a variation of the application
>
>
> #include <gdcmDicomDirObject.h>
>
> int main(int argc, char* argv[])
> {
>
> 	return 0;
> }
>   
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib



More information about the Dcmlib mailing list