[Insight-users] Can't instantiate writer and reader object
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Aug 7 03:49:44 EDT 2007
Hi Marco,
Did you compile ITK yourself ? If so please look into your binary
dir of ITK. You'll find a file: gdcmConfigure.h in Utilities/gdcm.
Please send me that file.
thanks
-Mathieu
On 8/6/07, "Marco Körner" <MarcoKoerner at gmx.de> wrote:
> Hello list!
>
> i've a quite strange problem while running my itk program. If I create a pointer to a reader or writer type, the program will be terminated with message "in Get MAC Adress (internal) : There was a configuration problem (or no cable !) on your plateform: No such file or directory".
> I'm not sure about my error? Here's my code:
>
> #include <stdio.h>
> #include <stdlib.h>
>
> #include "itkImage.h"
>
> #include "itkImageFileReader.h"
> #include "itkImageFileWriter.h"
>
> int main(int argc, char *argv) {
> const unsigned char Dimension = 2;
>
> typedef unsigned char PixelType;
> typedef itk::Image<PixelType> ImageType;
> typedef itk::ImageFileReader<ImageType> ReaderType;
> typedef itk::ImageFileWriter<ImageType> WriterType;
>
> ImageType::Pointer image = ImageType::New();
> ReaderType::Pointer reader = ReaderType::New();
> WriterType::Pointer writer = WriterType::New();
>
> } catch (itk::ExceptionObject e) {
> std::cout << "Exception caught: "
> << e.GetLocation() << "\n\t"
> << e.GetDescription() << std::endl;
> return EXIT_FAILURE;
> }
>
> return EXIT_SUCCESS;
> }
>
> Google don't purpose any solution.
> Outcommenting the lines with the reader and writer instantiation will fix the problem.
>
> PS: Previously it worked correct. The problem appears just since a few days.
>
> I'm working on a Turion64 notebook, 512 MB of RAM, Suse 10.3, KDevelop 3.3.5, cmake 2.4-patch 3
>
>
> Hope for help,
>
> Marco
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
--
Mathieu
More information about the Insight-users
mailing list