Andy,
The current release of SCIRun supports ITK 1.4 and ITK 1.6 (not the current ITK 1.8 version). Our upcoming release will support ITK 1.8. If you built from source, I believe if you make the following changes to the files SCIRun/src/Core/Algorithms/DataIO/DicomImage.cc and AnalyzeImage.cc it will compile:
on about line 100, change the line:
const std::type_info& type = io->GetPixelType();
to be:
const std::type_info& type = io->GetComponentTypeInfo();
Please let me know if you have any other problems.
-darby j
On Tue, 4 Jan 2005 18:59:24 -0500
Andy Triboletti <atribole@coe.neu.edu> wrote:
Hi,
I'm having a compiler error when trying to build scirun with the insight and teem packages. I'm using OS 10.3.7, with this configure line:
../src/configure --with-thirdparty=/usr/local/SCIRun/Thirdparty_osx --enable-package="BioPSE Teem MatlabInterface Insight" --enable-32bit --disable-sci-malloc CC=gcc CXX=g++ --with-insight=/usr/local/lib/InsightToolkit
It builds without Insight ok. The external Insight package installed without errors.
I've attached below the output right before the error.
Has anyone else run into this problem?
g++ -O2 -fno-common -dynamic -fcoalesce-templates -Wno-long-double -I/usr/local/SCIRun/Thirdparty_osx/include -I/usr/local/SCIRun/Thirdparty_osx/src/tcl/generic -I/usr/local/SCIRun/Thirdparty_osx/src/tk/generic -I../src/include -I../src -I. -I./include -I../src/Packages -I/usr/X11R6/include -I/usr/local/include/InsightToolkit -I/usr/local/include/InsightToolkit/Algorithms -I/usr/local/include/InsightToolkit/BasicFilters -I/usr/local/include/InsightToolkit/Common -I/usr/local/include/InsightToolkit/Numerics -I/usr/local/include/InsightToolkit/IO -I/usr/local/include/InsightToolkit/Numerics/FEM -I/usr/local/include/InsightToolkit/Numerics/Statistics -I/usr/local/include/InsightToolkit/SpatialObject -I/usr/local/include/InsightToolkit/Utilities/MetaIO -I/usr/local/include/InsightToolkit/Utilities/NrrdIO -I/usr/local/include/InsightToolkit/Utilities/DICOMParser -I/usr/local/include/InsightToolkit/Utilities -I/usr/local/include/InsightToolkit/Utilities/vxl/vcl -I/usr/local/include/InsightToolkit/Utilities/vxl/core -faltivec -I/usr/X11R6/include/freetype2 -I./Packages -I/usr/local/include/InsightToolkit -I/usr/local/include/InsightToolkit/Algorithms -I/usr/local/include/InsightToolkit/BasicFilters -I/usr/local/include/InsightToolkit/Common -I/usr/local/include/InsightToolkit/Numerics -I/usr/local/include/InsightToolkit/IO -I/usr/local/include/InsightToolkit/Numerics/FEM -I/usr/local/include/InsightToolkit/Numerics/Statistics -I/usr/local/include/InsightToolkit/SpatialObject -I/usr/local/include/InsightToolkit/Utilities/MetaIO -I/usr/local/include/InsightToolkit/Utilities/NrrdIO -I/usr/local/include/InsightToolkit/Utilities/DICOMParser -I/usr/local/include/InsightToolkit/Utilities -I/usr/local/include/InsightToolkit/Utilities/vxl/vcl -I/usr/local/include/InsightToolkit/Utilities/vxl/core -I/usr/local/include/InsightToolkit -I/usr/local/include/InsightToolkit/Algorithms -I/usr/local/include/InsightToolkit/BasicFilters -I/usr/local/include/InsightToolkit/Common -I/usr/local/include/InsightToolkit/Numerics -I/usr/local/include/InsightToolkit/IO -I/usr/local/include/InsightToolkit/Numerics/FEM -I/usr/local/include/InsightToolkit/Numerics/Statistics -I/usr/local/include/InsightToolkit/SpatialObject -I/usr/local/include/InsightToolkit/Utilities/MetaIO -I/usr/local/include/InsightToolkit/Utilities/NrrdIO -I/usr/local/include/InsightToolkit/Utilities/DICOMParser -I/usr/local/include/InsightToolkit/Utilities -I/usr/local/include/InsightToolkit/Utilities/vxl/vcl -I/usr/local/include/InsightToolkit/Utilities/vxl/core -I/usr/local/include/InsightToolkit -I/usr/local/include/InsightToolkit/Algorithms -I/usr/local/include/InsightToolkit/BasicFilters -I/usr/local/include/InsightToolkit/Common -I/usr/local/include/InsightToolkit/Numerics -I/usr/local/include/InsightToolkit/IO -I/usr/local/include/InsightToolkit/Numerics/FEM -I/usr/local/include/InsightToolkit/Numerics/Statistics -I/usr/local/include/InsightToolkit/SpatialObject -I/usr/local/include/InsightToolkit/Utilities/MetaIO -I/usr/local/include/InsightToolkit/Utilities/NrrdIO -I/usr/local/include/InsightToolkit/Utilities/DICOMParser -I/usr/local/include/InsightToolkit/Utilities -I/usr/local/include/InsightToolkit/Utilities/vxl/vcl -I/usr/local/include/InsightToolkit/Utilities/vxl/core -MD -c ../src/Core/Algorithms/DataIO/DicomImage.cc -o Core/Algorithms/DataIO/DicomImage.o
../src/Core/Algorithms/DataIO/DicomImage.cc: In constructor `
SCIRun::DicomImage::DicomImage(itk::SmartPointer<itk::DicomImageIO>,
itk::SmartPointer<itk::Image<PixelType, 3> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
../src/Core/Algorithms/DataIO/DicomImage.cc:99: error: could not convert `
(*((&io)->itk::SmartPointer<TObjectType>::operator->() const [with
TObjectType = itk::DicomImageIO]()->itk::ImageIOBase::_vptr$LightObject +
140))((&io)->itk::SmartPointer<TObjectType>::operator->() const [with
TObjectType = itk::DicomImageIO]())' to `const std::type_info&'
make: *** [Core/Algorithms/DataIO/DicomImage.o] Error 1
Regards
Andy Triboletti
====================================================================== =====
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see http://software.sci.utah.edu/scirun-biopse_citation.bib ==
====================================================================== =====
...........................
Darby J Van Uitert
SCI Institute
University of Utah
Email: darbyb@sci.utah.edu
Phone: 301.947.6980
...........................
Archive powered by MHonArc 2.6.16.