[vtkusers] Error Linking VTK to my code "ld: symbol(s) not found for architecture x86_64"

the lily the.1.lily at hotmail.com
Thu Jul 23 13:56:47 EDT 2015









Hello,
I built VTK on OSX 10.9 using the following tutorial    http://stackoverflow.com/questions/17329258/how-to-install-vtk-6-1-for-osx-10-8-with-cocoa-xcode-support
I'm trying to use VTK in my code but I'm having trouble liking VTK  my code. I'm not sure what is the problem. Is it the gcc version? or is it the way I'm linking the libraries? I'm using the following directory Users/lily/VTK/VTKBuild/libthis is part of the error I'm getting
"_vtk_png_create_info_struct", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_create_write_struct", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_destroy_write_struct", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_get_error_ptr", referenced from:
      vtkPNGWriteWarningFunction(png_struct_def*, char const*) in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_get_io_ptr", referenced from:
      vtkPNGWriteInit(png_struct_def*, unsigned char*, unsigned long) in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_init_io", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_set_IHDR", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_set_compression_level", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_set_error_fn", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_set_swap", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_set_write_fn", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_write_end", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_write_image", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
  "_vtk_png_write_info", referenced from:
      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** Error 1 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150723/07e67396/attachment.html>


More information about the vtkusers mailing list