[Paraview-developers] [vtk-developers] Mac compilation errors

David E DeMarle dave.demarle at kitware.com
Tue May 4 11:54:37 EDT 2010


kargad is 10.5

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, May 4, 2010 at 11:42 AM, Dave Partyka <dave.partyka at kitware.com> wrote:
> Did your build use gcc-4.0 or gcc-4.2? I don't think we have a Leopard build
> of ParaView, just Tiger (dasmacmini2) and Snow Leopard (dashmacmini4).
>
> On Tue, May 4, 2010 at 11:35 AM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> wrote:
>>
>> So the following patch seemed to fix the issue. The question is why and
>> why now?
>>
>> --------------------------------------------------------
>> diff --git a/Common/vtkDataArrayTemplate.h b/Common/vtkDataArrayTemplate.h
>> index f562810..2eea9f3 100644
>> --- a/Common/vtkDataArrayTemplate.h
>> +++ b/Common/vtkDataArrayTemplate.h
>> @@ -27,7 +27,7 @@ template <class T>
>>  class vtkDataArrayTemplateLookup;
>>
>>  template <class T>
>> -class vtkDataArrayTemplate: public vtkDataArray
>> +class VTK_COMMON_EXPORT vtkDataArrayTemplate: public vtkDataArray
>>  {
>>  public:
>>   typedef vtkDataArray Superclass;
>> diff --git a/Filtering/vtkImageIterator.h b/Filtering/vtkImageIterator.h
>> index a14d97e..79307cc 100644
>> --- a/Filtering/vtkImageIterator.h
>> +++ b/Filtering/vtkImageIterator.h
>> @@ -27,7 +27,7 @@
>>  class vtkImageData;
>>
>>  template<class DType>
>> -class vtkImageIterator
>> +class VTK_FILTERING_EXPORT vtkImageIterator
>>  {
>>  public:
>>   typedef DType *SpanIterator;
>> diff --git a/Filtering/vtkImageProgressIterator.h
>> b/Filtering/vtkImageProgressIterator.h
>> index 248e30b..1e4e2af 100644
>> --- a/Filtering/vtkImageProgressIterator.h
>> +++ b/Filtering/vtkImageProgressIterator.h
>> @@ -27,7 +27,7 @@
>>  class vtkAlgorithm;
>>
>>  template<class DType>
>> -class vtkImageProgressIterator : public vtkImageIterator<DType>
>> +class VTK_FILTERING_EXPORT vtkImageProgressIterator : public
>> vtkImageIterator<DType>
>>  {
>>  public:
>>   typedef vtkImageIterator<DType> Superclass;
>> --------------------------------------------------------
>> Utkarsh
>>
>>
>>
>>
>> On Mon, May 3, 2010 at 7:30 PM, Francois Bertel
>> <francois.bertel at kitware.com> wrote:
>> > No error for me on Snow Leopard (10.6.3), xcode 3.2.2
>> >
>> > On Sun, May 2, 2010 at 5:19 PM, Utkarsh Ayachit
>> > <utkarsh.ayachit at kitware.com> wrote:
>> >> Oddly, I am getting errors when building on my Mac (64 bit Leopard).
>> >>
>> >> Linking CXX shared library ../../bin/libvtkFiltering.dylib
>> >> Undefined symbols:
>> >>  "vtkDataArrayTemplate<unsigned char>::InsertValue(int, unsigned
>> >> char)", referenced from:
>> >>      vtkUnsignedCharArray::InsertValue(int, unsigned char)in
>> >> vtkCellTypes.cxx.o
>> >>  "vtkDataArrayTemplate<double>::InsertNextValue(double)", referenced
>> >> from:
>> >>      vtkDoubleArray::InsertNextValue(double) in vtkImplicitSum.cxx.o
>> >>  "vtkDataArrayTemplate<int>::InsertValue(int, int)", referenced from:
>> >>      vtkIntArray::InsertValue(int, int)in vtkCellLocator.cxx.o
>> >>      vtkIntArray::InsertValue(int, int)in vtkCellTypes.cxx.o
>> >>      vtkIdTypeArray::InsertValue(int, int)in
>> >> vtkOrderedTriangulator.cxx.o
>> >>      vtkIdTypeArray::InsertValue(int, int)in vtkTriangleStrip.cxx.o
>> >>  "vtkDataArrayTemplate<unsigned char>::WritePointer(int, int)",
>> >> referenced from:
>> >>      vtkUnsignedCharArray::WritePointer(int, int)in
>> >> vtkDiscretizableColorTransferFunction.cxx.o
>> >>  "vtkDataArrayTemplate<int>::LookupValue(int)", referenced from:
>> >>      vtkGraph::GetInducedEdges(vtkIdTypeArray*, vtkIdTypeArray*)in
>> >> vtkGraph.cxx.o
>> >>      vtkGraph::GetInducedEdges(vtkIdTypeArray*, vtkIdTypeArray*)in
>> >> vtkGraph.cxx.o
>> >>  "vtkDataArrayTemplate<int>::SetNumberOfValues(int)", referenced from:
>> >>
>> >> Any ideas?
>> >>
>> >> Utkarsh
>> >> _______________________________________________
>> >> Paraview-developers mailing list
>> >> Paraview-developers at paraview.org
>> >> http://public.kitware.com/mailman/listinfo/paraview-developers
>> >>
>> >
>> >
>> >
>> > --
>> > François Bertel, PhD  | Kitware Inc. Suite 204
>> > 1 (518) 371 3971 x113 | 28 Corporate Drive
>> >                      | Clifton Park NY 12065, USA
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>


More information about the Paraview-developers mailing list