[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 14:22:51 EDT 2015


I configured VTK using cmake and I'm linking my code to vtk using a Makefile I'm not sure if this is important but I'm using mpi in my code
> Date: Thu, 23 Jul 2015 14:05:36 -0400
> Subject: Re: [vtkusers] Error Linking VTK to my code "ld: symbol(s) not found for architecture x86_64"
> From: bill.lorensen at gmail.com
> To: the.1.lily at hotmail.com
> CC: vtkusers at vtk.org
> 
> Are you configuring your program with cmake?
> 
> 
> 
> On Thu, Jul 23, 2015 at 1:56 PM, the lily <the.1.lily at hotmail.com> wrote:
> > 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/lib
> >
> > this 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
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Search the list archives at: http://markmail.org/search/?q=vtkusers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
> 
> 
> 
> -- 
> Unpaid intern in BillsBasement at noware dot com
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150723/8fbb579a/attachment.html>


More information about the vtkusers mailing list