<div>this is the error</div>
<div> </div>
<div><br><br>vtkVolumeProperty.cxx:(.text+0x1a81): undefined reference to `vtkColorTransferFunction::New()'<br>vtkVolumeProperty.cxx:(.text+0x1afb): undefined reference to `vtkColorTransferFunction::AddRGBPoint(double, double, double, double)'<br>
vtkVolumeProperty.cxx:(.text+0x1b29): undefined reference to `vtkColorTransferFunction::AddRGBPoint(double, double, double, double)'<br> </div>
<div>and so much more... all about undefined reference, </div>
<div> </div>
<div> </div>
<div>and when I try using the libraries in VTKbuild/bin</div>
<div> </div>
<div>linked them this way --</div>
<div> </div>
<div>g++ -o Cone Cone.o -I/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/include/vtk-5.0 -L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib -lGL -lGLU -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkCommon.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkFiltering.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkGraphics.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkIO.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkRendering.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkVolumeRendering.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkGenericFiltering.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkHybrid.a -L/home/kalpanak/Installation_Files/VTKProject/VTKbuild/bin/libvtkImaging.a</div>
<div> </div>
<div> </div>
<div> </div>
<div>I get this error</div>
<div>Cone.o: In function `main':<br>Cone.cxx:(.text+0x87): undefined reference to `vtkConeSource::New()'<br>Cone.cxx:(.text+0xe3): undefined reference to `vtkPolyDataMapper::New()'<br>Cone.cxx:(.text+0x10e): undefined reference to `vtkActor::New()'<br>
Cone.cxx:(.text+0x131): undefined reference to `vtkRenderer::New()'<br>Cone.cxx:(.text+0x146): undefined reference to `vtkRenderer::AddActor(vtkProp*)'<br>Cone.cxx:(.text+0x17b): undefined reference to `vtkRenderWindow::New()'<br>
Cone.cxx:(.text+0x1e5): undefined reference to `vtkRenderer::GetActiveCamera()'<br>Cone.cxx:(.text+0x1f3): undefined reference to `vtkCamera::Azimuth(double)'<br>Cone.o: In function `vtkAlgorithm::GetOutputPort()':<br>
Cone.cxx:(.gnu.linkonce.t._ZN12vtkAlgorithm13GetOutputPortEv+0x15): undefined reference to `vtkAlgorithm::GetOutputPort(int)'<br>collect2: ld returned 1 exit status<br> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br> </div>
<div><span class="gmail_quote">On 5/28/08, <b class="gmail_sendername">Amy Squillacote</b> <<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">What is the error message you are getting?<br><br>- Amy<br><br>Cally K wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_11a2fc1ddfc08f8d_1">Hi everyone,<br><br>I tried searching the mailing list and I found out ways to compile and<br>link vtk examples ( Cone.cxx ) . I managed to do it when VTK was built<br>using the shared library option<br>
<br>But I need to run VTK on the cluster, parallel VTK. and I need to<br>build static libraries as I am not root, I compiled it, but it is the<br>linking that is giving problem,<br><br>this is my command to compile<br>a) g++ -c -I/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/include/vtk-5.0<br>
Cone.cxx -Wno-deprecated<br><br>to link<br>b) g++ -o Cone Cone.o<br>-I/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/include/vtk-5.0<br>-L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib<br>/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkFiltering.a<br>
/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkCommon.a<br>L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkGraphics.a<br>L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkIO.a<br>
<br><br>my lib folder is in<br>/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib, and I<br>can see all the libvtkFiltering. a libvtkCommon.a all<br><br>what am I doing wrong, please help...<br></span></div>_______________________________________________<br>
This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br><br> <br></blockquote><br>-- <br>Amy Squillacote Phone: (256) 726-4839<br>Computer Scientist Fax: (256) 726-4806<br>CFD Research Corporation Web: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.cfdrc.com/" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>Huntsville, AL 35805<br><br><br></blockquote></div><br>