[vtkusers] still qvtk problem
Murat Ahat
murat.ahat at gmail.com
Fri Jul 1 11:19:34 EDT 2005
Clinton Stimpson wrote:
>> 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()'
>
> [snip]..
>
>> ...
>> ===========================================================
>> 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).
>
> Clint
>
>
Hi all,
I linked the lQVTK first, and then the others. But still it is showing
the same kind of error:
/usr/local/lib/vtk/libvtkRendering.a(vtkRenderWindow.o)(.text+0x1bb8):
In function `vtkRenderWindow::DoFDRender()':
: undefined reference to `vtkTransform::New()'
/usr/local/lib/vtk/libvtkRendering.a(vtkRenderWindow.o)(.text+0x1cc8):
In function `vtkRenderWindow::DoFDRender()':
: undefined reference to `vtkTransform::Identity()'
.....
Since I am using qmke, so here is my .qmake.cache file:
INCLUDEPATH += /usr/local/include/vtk
LIBS += -L/usr/local/lib/vtk \
-lQVTK \
-lvtkCommon \
-lvtkFiltering \
-lvtkGenericFiltering \
-lvtkfreetype \
-lvtkDICOMParser \
-lvtkexpat \
-lvtkftgl \
-lvtkGraphics \
-lvtkHybrid \
-lvtkIO \
-lvtkImaging \
-lvtksys \
-lvtkRendering \
-lvtkVolumeRendering \
-lvtkjpeg \
-lvtkpng \
-lvtkzlib \
-lvtktiff
does any body have any idea, if the error is due to the .qmake.cache
file? or because it is lack of the libvtkPatented.a file? any other
suggestions???
thanks in advance!!!
More information about the vtkusers
mailing list