[vtkusers] Re: vtk 5.0 install on ubuntu breezy

Fabian Braennstroem f.braennstroem at gmx.de
Thu Mar 9 12:12:51 EST 2006


Hi Mathieu,

* Mathieu Malaterre <mathieu.malaterre at kitware.com> wrote:
> Fabian Braennstroem wrote:
>> Hi,
>> 
>> I would like to create a vtk 5.0 deb package for ubuntu
>> breezy. For this I start to compile it with my settings by
>> hand. Unfortunately I get this error:
>> 
>> Building CXX object Widgets/CMakeFiles/vtkWidgetsPythonD.dir/vtkWidgetsPythonInit.o
>> Linking CXX shared library ../bin/libvtkWidgetsPythonD.so
>> Scanning dependencies of target vtkWidgetsPython
>> Building CXX object Widgets/CMakeFiles/vtkWidgetsPython.dir/vtkWidgetsPythonInit.o
>> Linking CXX shared module ../bin/libvtkWidgetsPython.so
>> Linking CXX shared library ../bin/libvtkWidgetsTCL.so
>> Scanning dependencies of target vtk
>> Building CXX object Wrapping/Tcl/CMakeFiles/vtk.dir/vtkTkAppInit.o
>> Linking CXX executable ../../bin/vtk
>> /home/fab/vtk-5.0/bin/libvtkRendering.so: undefined reference to `FTC_Manager_LookupFace'
>> /home/fab/vtk-5.0/bin/libvtkRendering.so: undefined reference to `FTC_Manager_LookupSize'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/vtk] Error 1
>> make[1]: *** [Wrapping/Tcl/CMakeFiles/vtk.dir/all] Error 2
>> make: *** [all] Error 2
>> 
>> Does anyone know, what I am missing?
>
> You are trying to link against system freetype library, right ? At some 
> point they changed the API from
>
> FTC_Manager_LookupFace into FTC_Manager_Lookup_Face
>
> Two suggestions:
> #1 Don't use system freetype, but instead use the one shipped with VTK
> #2 If you really want system freetype, play with the file: 
> VTK/Utilities/vtk_freetype.h to rename symbols properly -only if you 
> know what you are doing-. With luck it might work, no garantee of course.

Thanks! I took option #1, but now I get something wrong with
qt:

Generating ../VTKExamples
Internal cmake changing into directory: /home/fab/vtk-5.0/Build/Examples/All
make[3]: Entering directory `/home/fab/vtk-5.0/Build/Examples/All'
make[4]: Entering directory `/home/fab/vtk-5.0/Build/Examples/All'
make[5]: Entering directory `/home/fab/vtk-5.0/Build/Examples/All'
Generating uiSimpleView3.cxx
Generating moc_uiSimpleView3.cxx
/home/fab/vtk-5.0/Build/Examples/All/GUI/Qt/SimpleView/uiSimpleView3.h:0: Warning: No relevant classes found. No output generated.
Generating moc_SimpleView3.cxx
Scanning dependencies of target qtsimpleview
make[5]: Leaving directory `/home/fab/vtk-5.0/Build/Examples/All'
make[5]: Entering directory `/home/fab/vtk-5.0/Build/Examples/All'
Building CXX object GUI/Qt/SimpleView/CMakeFiles/qtsimpleview.dir/main.o
/home/fab/vtk-5.0/Examples/GUI/Qt/SimpleView/SimpleView3.h:49: error: expected class-name before '{' token
/home/fab/vtk-5.0/Examples/GUI/Qt/SimpleView/main.cxx: In function 'int main(int, char**)':
/home/fab/vtk-5.0/Examples/GUI/Qt/SimpleView/main.cxx:40: error: no matching function for call to 'QApplication::setMainWidget(SimpleView*)'
/usr/share/qt3/include/qapplication.h:119: note: candidates are: virtual void QApplication::setMainWidget(QWidget*)
/home/fab/vtk-5.0/Examples/GUI/Qt/SimpleView/main.cxx:41: error: 'class SimpleView' has no member named 'show'
make[5]: Leaving directory `/home/fab/vtk-5.0/Build/Examples/All'
make[5]: *** [GUI/Qt/SimpleView/CMakeFiles/qtsimpleview.dir/main.o] Error 1
make[4]: Leaving directory `/home/fab/vtk-5.0/Build/Examples/All'
make[4]: *** [GUI/Qt/SimpleView/CMakeFiles/qtsimpleview.dir/all] Error 2
make[3]: Leaving directory `/home/fab/vtk-5.0/Build/Examples/All'
make[3]: *** [all] Error 2
make[2]: *** [VTKExamples] Error 1
make[1]: *** [Examples/CMak

Could it be the reason, because I miss:

 QT_QTMOTIF_INCLUDE_DIR           QT_QTMOTIF_INCLUDE_DIR-NOTFOUND                        
 QT_QTMOTIF_LIBRARY               QT_QTMOTIF_LIBRARY-NOTFOUND                            
 QT_QTMOTIF_LIBRARY_DEBUG         QT_QTMOTIF_LIBRARY_DEBUG-NOTFOUND                      
 QT_QTNSPLUGIN_INCLUDE_DIR        QT_QTNSPLUGIN_INCLUDE_DIR-NOTFOUND                     
 QT_QTNSPLUGIN_LIBRARY            QT_QTNSPLUGIN_LIBRARY-NOTFOUND                         
 QT_QTNSPLUGIN_LIBRARY_DEBUG      QT_QTNSPLUGIN_LIBRARY_DEBUG-NOTFOUND 




Greetings!
 Fabian




More information about the vtkusers mailing list