[vtk-developers] Mac OS X build errors
Thompson, David C
dcthomp at sandia.gov
Fri May 7 11:45:45 EDT 2010
> Maybe you can provide your version of Mac OS X and version of Xcode.
>
> I have no issue with either Mac OS X 10.4.11 (Tiger) and Xcode 2.5 or
> Mac OS X 10.6.3 (Snow Leopard) and Xcode 3.2.2.
I am using Xcode 3.2.2 on Mac OS X 10.6.3.
Since these are the same as what you report, here's the link line that was causing trouble for me:
/usr/bin/c++ -Wno-deprecated -no-cpp-precomp -g -arch x86_64 -dynamiclib -headerpad_max_install_names -compatibility_version 5.7.0 -current_version 5.7.0 -o ../bin/libvtkFiltering.5.7.0.dylib -install_name /Users/dcthomp/Build/VTK/git/bin/libvtkFiltering.5.7.dylib ... many object files ... ../bin/libvtkCommon.5.7.0.dylib ../bin/libvtksys.5.7.0.dylib -lm
and here is an example object compilation line:
/usr/bin/c++ -DvtkCommon_EXPORTS -DVTK_IN_VTK -Wno-deprecated -no-cpp-precomp -g -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fPIC ... lots of -I directories ... -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/vtkCommon.dir/vtkDoubleArray.cxx.o -c /Users/dcthomp/Documents/Source/VTK/git/Common/vtkDoubleArray.cxx
I'm using CMake 2.8.1 and haven't changed any of the CMAKE_..._FLAGS settings.
David
On Fri, May 7, 2010 at 11:22 AM, Thompson, David C <dcthomp at sandia.gov> wrote:
> Hi all,
>
> I'm getting link errors when I try to build VTK from the git master branch:
>
> Linking CXX shared library ../../bin/libvtkFiltering.dylib
> Undefined symbols:
> "vtkDataArrayTemplate<double>::InsertNextValue(double)", referenced from:
> vtkDoubleArray::InsertNextValue(double) in vtkImplicitSum.cxx.o
> "vtkDataArrayTemplate<long long>::SetNumberOfValues(long long)", referenced from:
> vtkIdTypeArray::SetNumberOfValues(long long)in vtkKdTree.cxx.o
> vtkIdTypeArray::SetNumberOfValues(long long)in vtkOctreePointLocator.cxx.o
> ... and many more ...
>
> When I add VTK_COMMON_EXPORT to vtkDataArrayTemplate's class declaration
> (and other export macros to a couple of template classes elsewhere) these go
> away. I will check in this fix once I have push access but am curious if anyone
> knows why this issue is coming up now (or if this will break other platforms)?
>
> Thanks,
> David
> _______________________________________________
> 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
>
>
--
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
More information about the vtk-developers
mailing list