[vtkusers] Problem with compiling and linking static libraries

Amy Squillacote ahs at cfdrc.com
Wed May 28 09:42:06 EDT 2008


What is the error message you are getting?

- Amy

Cally K wrote:
> Hi everyone,
>
> I tried searching the mailing list and I found out ways to compile and
> link vtk examples ( Cone.cxx ) . I managed to do it when VTK was built
> using the shared library option
>
> But I need to run VTK on the cluster, parallel VTK. and I need to
> build static libraries as I am not root, I compiled it, but it is the
> linking that is giving problem,
>
> this is my command to compile
> a) g++ -c -I/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/include/vtk-5.0
> Cone.cxx -Wno-deprecated
>
> to link
> b) g++ -o Cone Cone.o
> -I/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/include/vtk-5.0
> -L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib
> /home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkFiltering.a
> /home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkCommon.a
> L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkGraphics.a
> L/home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib/libvtkIO.a
>
>
> my lib folder is in
> /home/kalpanak/Installation_Files/VTKProject/VTKbuildprefix/lib, and I
> can see all the libvtkFiltering. a libvtkCommon.a all
>
> what am I doing wrong, please help...
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list