[vtkusers] qvtk problem

Clinton Stimpson clinton at elemtech.com
Sat Jun 18 13:26:50 EDT 2005

> Date: Sat, 18 Jun 2005 02:53:15 +0200
> From: Murat Ahat <murat.ahat at gmail.com>
> Subject: [vtkusers] qvtk problem
> To: vtkusers at vtk.org
> Message-ID: <42B3707B.2010901 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Hi all,
>  I downloaded the vtk cvs, and compiled it with the Qt support. I added
> the plugin to the qt-designer.
>  Simple test: a form with the QVTK widget, and a main file generated by
> qt-designer. I set the include path, and the static libraries.
>  but when I run "make", it gives a lot of errors which is like:
> ==============================================
>    /usr/local/lib/vtk/libQVTK.a(QVTKWidget.o)(.text+0xd4): In function
> `QVTKWidget::QVTKWidget[not-in-charge](QWidget*, char const*, unsigned)':
> : undefined reference to `vtkUnsignedCharArray::New()'
> ...
> ===========================================================
> Does any one have any idea about howto fix this problem. Any suggestion
> will do.
> thank you in advance.
>   Murat

I suggest linking the vtk libraries with your application, if you already
aren't.  If you are, perhaps the link order is wrong (link with libQVTK.a
before Qt and VTK libraries to satisfy dependencies).


More information about the vtkusers mailing list