[vtkusers] VTK C++ Library Problem---Ubuntu

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Oct 22 09:05:20 EDT 2008


On Wed, Oct 22, 2008 at 4:56 AM, Song Chang <sc522 at cornell.edu> wrote:
> Hi,
>
> I installed all VTK packages under Ubuntu by,
>
> apt-get install libvtk5, libvtk5-dev, libvtk5-qt4, libvtk5-qt4-dev, vtk-tcl,
> vtk-examples, vtkdata, vtk-doc
>
> and I want to use VTK by g++. My problem now is I always get the error while
> linking, for example like,
>
> "undefined reference vtkConeSource::New()"
>
> I check the vtk library, the file libvtkGraphics.so, and it does not contain
> the definition of vtkConeSource::New or things alike.

Are you sure ? Please send the command line + output you used to
demonstrate that on your system.

> I feel the online library package is of integrity. Is there any problem with
> my installation?

At the same time, send the full link line you use to compile your
executable. (make VERBOSE=1 when using cmake)

-- 
Mathieu



More information about the vtkusers mailing list