[vtkusers] Fail to generate libQVTKWidgetPlugin.so

Jens G. jens-devel at gmx.de
Tue Feb 7 15:30:56 EST 2006


Hi Weiguang
It seems to me as if you are trying to create a shared library 
libQVTKWidgetPlugin.so which includes the whole Vtk5 (because 
libvtkRendering.a is a static library).
Are you sure you do not want Vtk to be of shared libraries, too?
(create shared vtk-libraries with the setting through cmake)

	Greetings
		Jens


Am Dienstag, 7. Februar 2006 18:12 schrieb Weiguang Guan:
> Hi,
>
> I try to build VTK 5.0 (download from vtk.org). It has problem when it's
> about to generate libQVTKWidgetPlugin.so (see error message below). I
> think the error is related to -fPIC of c++ compiler. Does anyone have a
> clue?
>
> Weiguang
>
> Linking CXX shared library ../../bin/libQVTKWidgetPlugin.so
> /usr/bin/ld:
> /home/guanw/visualization/software/build/libraries/thirdParty/VTK/bin/libvt
>kRendering.a(vtkGraphicsFactory.o): @gprel relocation against dynamic symbol
> vtkGraphicsFactory::OffScreenOnlyMode
> /usr/bin/ld:
> /home/guanw/visualization/software/build/libraries/thirdParty/VTK/bin/libvt
>kRendering.a(vtkGraphicsFactory.o): @gprel relocation against dynamic symbol
> vtkGraphicsFactory::UseMesaClasses
> /usr/bin/ld:
> /home/guanw/visualization/software/build/libraries/thirdParty/VTK/bin/libvt
>kRendering.a(vtkGraphicsFactory.o): @gprel relocation against dynamic symbol
> vtkGraphicsFactory::UseMesaClasses
> /usr/bin/ld:
> /home/guanw/visualization/software/build/libraries/thirdParty/VTK/bin/libvt
>kRendering.a(vtkGraphicsFactory.o): @gprel relocation against dynamic symbol
> vtkGraphicsFactory::OffScreenOnlyMode
> /usr/bin/ld:
> /home/guanw/visualization/software/build/libraries/thirdParty/VTK/bin/libvt
>kRendering.a(vtkGraphicsFactory.o): @gprel relocation against dynamic symbol
> vtkGraphicsFactory::OffScreenOnlyMode
> collect2: ld returned 1 exit status



More information about the vtkusers mailing list