SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] problems compiling insight module on os x


Chronological Thread 
  • From: Andy Triboletti <atribole@coe.neu.edu>
  • To: "Darby J Van Uitert" <darbyb@sci.utah.edu>
  • Cc: scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] problems compiling insight module on os x
  • Date: Wed, 5 Jan 2005 20:54:07 -0500

Hi Darby, thanks for the suggestion. I changed that line in DicomImage.cc, and couldn't find it anywhere in AnalyzeImage.cc. Now after trying to compile it gives these errors: I tried make cleanreally and rebuilding itk.

ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKFEM.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKIO.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKMetaIO.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKAlgorithms.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKStatistics.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKBasicFilters.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKCommon.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitkvnl.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitkvnl_algo.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitknetlib.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitksys.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitkjpeg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libITKDICOMParser.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitkzlib.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /usr/local/lib/InsightToolkit/libitkpng.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/libtool: internal link edit command failed
make: *** [lib/libCore_Algorithms_DataIO.dylib] Error 1

Thanks
Andy
On Jan 4, 2005, at 8:08 PM, Darby J Van Uitert wrote:

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
...........................


===========================================================================
== 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         ==
===========================================================================





Archive powered by MHonArc 2.6.16.

Top of page