<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I configured VTK using cmake and I'm linking my code to vtk using a Makefile <div>I'm not sure if this is important but I'm using mpi in my code</div><div><br><div>> Date: Thu, 23 Jul 2015 14:05:36 -0400<br>> Subject: Re: [vtkusers] Error Linking VTK to my code "ld: symbol(s) not found for architecture x86_64"<br>> From: bill.lorensen@gmail.com<br>> To: the.1.lily@hotmail.com<br>> CC: vtkusers@vtk.org<br>> <br>> Are you configuring your program with cmake?<br>> <br>> <br>> <br>> On Thu, Jul 23, 2015 at 1:56 PM, the lily <the.1.lily@hotmail.com> wrote:<br>> > Hello,<br>> ><br>> ><br>> > I built VTK on OSX 10.9 using the following tutorial<br>> > http://stackoverflow.com/questions/17329258/how-to-install-vtk-6-1-for-osx-10-8-with-cocoa-xcode-support<br>> ><br>> ><br>> > I'm trying to use VTK in my code but I'm having trouble liking VTK my code.<br>> > I'm not sure what is the problem. Is it the gcc version? or is it the way<br>> > I'm linking the libraries?<br>> ><br>> > I'm using the following directory Users/lily/VTK/VTKBuild/lib<br>> ><br>> > this is part of the error I'm getting<br>> ><br>> ><br>> > "_vtk_png_create_info_struct", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_create_write_struct", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_destroy_write_struct", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_get_error_ptr", referenced from:<br>> ><br>> > vtkPNGWriteWarningFunction(png_struct_def*, char const*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_get_io_ptr", referenced from:<br>> ><br>> > vtkPNGWriteInit(png_struct_def*, unsigned char*, unsigned long) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_init_io", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_set_IHDR", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_set_compression_level", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_set_error_fn", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_set_swap", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_set_write_fn", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_write_end", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_write_image", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > "_vtk_png_write_info", referenced from:<br>> ><br>> > vtkPNGWriter::WriteSlice(vtkImageData*, int*) in<br>> > libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)<br>> ><br>> > ld: symbol(s) not found for architecture x86_64<br>> ><br>> > collect2: error: ld returned 1 exit status<br>> ><br>> > make: *** Error 1<br>> ><br>> ><br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the VTK FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> ><br>> > Search the list archives at: http://markmail.org/search/?q=vtkusers<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://public.kitware.com/mailman/listinfo/vtkusers<br>> ><br>> <br>> <br>> <br>> -- <br>> Unpaid intern in BillsBasement at noware dot com<br></div></div> </div></body>
</html>