[Cmake] use a static library

imho imho@skynet.be
Thu, 27 Feb 2003 14:58:59 +0100


This is a multi-part message in MIME format.
--------------000804080305080506030308
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

thanks, but I still have problems.
I explain :
I work on a project who needs itk, vtk and qt.
We have something working on windows, and I try to compile it on linux, 
but we use Kuebler's vtk_qt  library,
so I need to build this for linux first.
That's what I've done (making a libvtk_qt.a ) but now I still have 
linking problems.

I've joined my cmakelists and error listing.

Thanks for helping




Andy Cedilnik wrote:

>Hi,
>
>If you want to create static library:
>
>ADD_LIBRARY(foo STATIC source.c source1.c...)
>
>If you want to link static library to your project:
>
>TARGET_LINK_LIBRARIES(bar foo)
>
>or 
>
>TARGET_LINK_LIBRARIES(bar /path/to/foo/libfoo.a)
>
>				Andy
>
>On Thu, 2003-02-27 at 06:59, imho wrote:
>  
>
>>Hi,
>>
>>How do I link a static .a library on linux with cmake?
>>
>>Thanks
>>
>>_______________________________________________
>>Cmake mailing list
>>Cmake@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/cmake
>>    
>>
>
>
>
>
>
>
>  
>

--------------000804080305080506030308
Content-Type: text/plain;
 name="CMakeLists.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="CMakeLists.txt"

PROJECT(NewProject)

INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
  INCLUDE(${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)



# 
# Find ITK
#
INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake)
IF (USE_ITK_FILE)
  INCLUDE(${USE_ITK_FILE})
ENDIF(USE_ITK_FILE)

# 
# Find QT
#
INCLUDE (${CMAKE_ROOT}/Modules/FindQt.cmake)


INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
${QT_INCLUDE_PATH}
${VTK_DIR}
${VTK_DIR}/Rendering
${VTK_DIR}/Imaging
${VTK_DIR}/Graphics
${VTK_DIR}/Hybrid
${VTK_DIR}/Common
${VTK_DIR}/Filtering
${VTK_DIR}/IO
${VTK_DIR}/Patented
${VTK_DIR}/Parallel
${VTK_DIR}/Utilities/zlib

${ITKDIR}
${ITKDIR}/Code/Algorithms
${ITKDIR}/Code/IO
${ITKDIR}/Code/BasicFilters
${ITKDIR}/Code/Numerics
${ITKDIR}/Code/SpatialObject
${ITKDIR}/Code/Numerics/vxl
${ITKDIR}/Code/Numerics/vxl/vcl
${ITKDIR}/Code/Numerics/vxl/vnl
${ITKDIR}/Examples/vtkITK/Common


/usr/local/lib/VTK
/usr/local/include/VTK

/usr/local/qt/lib
/home/imho/NewProject3/vtk_qt1.6_vtk4.0

)

LINK_LIBRARIES (

vtkRendering
vtkGraphics	  
vtkHybrid	  
vtkImaging
vtkIO
vtkFiltering
vtkCommon
vtkzlib

ITKNumerics
VXLNumerics 
ITKCommon
ITKBasicFilters
ITKAlgorithms
ITKIO
ITKMetaIO
itkpng
itkzlib


${QT_QT_LIBRARY}

)


IF(WIN32)
ADD_DEFINITIONS(-DQT_DLL) 
ENDIF(WIN32)

SET(NewProject_SRCS

affichage16coupes.cpp  main.cpp      affichage1coupe.cpp             
affichage1vue3D.cpp   
affichage4coupes.cpp       newprojectwindow.cpp
affichage4vues.cpp        
affichageVTK3D.cpp          readerVTK.cpp
affichageVTK.cpp          traitementITK.cpp
creationVTK3D.cpp             vtkInteractorStyleCustom.cpp
         vtkInteractorStyleDraw.cpp
#moc_newprojectwindow.cpp

)

SET(NewProject_MOC_SRCS 

affichage16coupes.h  affichage4vues.h       vtkInteractorStyleCustom.h
affichage1coupe.h    affichageVTK3D.h  
affichage1vue3D.h    affichageVTK.h    readerVTK.h
affichage4coupes.h   creationVTK3D.h   traitementITK.h
vtkInteractorStyleDraw.h

)

IF(QT_WRAP_CPP)
  QT_WRAP_CPP(NewProject NewProject_SRCS NewProject_MOC_SRCS)
ENDIF(QT_WRAP_CPP)




ADD_EXECUTABLE(NewProject NewProject_SRCS )
#libvtk_qt
TARGET_LINK_LIBRARIES(NewProject ./libvtk_qt.a)

--------------000804080305080506030308
Content-Type: text/plain;
 name="CMakeLists-vtk_qt.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="CMakeLists-vtk_qt.txt"

PROJECT(vtk_qt)

INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
  INCLUDE(${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)

# 
# Find QT
#
INCLUDE (${CMAKE_ROOT}/Modules/FindQt.cmake)
IF (USE_ITK_FILE)
  INCLUDE(${USE_ITK_FILE})
ENDIF(USE_ITK_FILE)

INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
${QT_INCLUDE_PATH}
${VTK_DIR}/VTK
${VTK_DIR}/VTK/Rendering
${VTK_DIR}/VTK/Imaging
${VTK_DIR}/VTK/Graphics
${VTK_DIR}/VTK/Hybrid
${VTK_DIR}/VTK/Common
${VTK_DIR}/VTK/Filtering
${VTK_DIR}/VTK/IO
${VTK_DIR}/VTK/Patented
${VTK_DIR}/VTK/Parallel
${VTK_DIR}/VTK/Utilities/zlib
/usr/local/lib/VTK
/usr/local/include/VTK

/usr/local/qt/lib


)

LINK_LIBRARIES (

vtkRendering
vtkGraphics	  
vtkHybrid	  
vtkImaging
vtkIO
vtkFiltering
vtkCommon
vtkzlib


${QT_QT_LIBRARY}
)


IF(WIN32)
ADD_DEFINITIONS(-DQT_DLL) 
ENDIF(WIN32)

SET(vtk_qt_SRCS
vtkQGLImageMapper.cxx  
vtkQGLLight.cxx  
vtkQtOpenGLPolyDataMapper.cxx  
vtkQtOutputWindow.cxx
vtkQGLImageWindow.cpp  
vtkQGLRenderWindow.cpp            
vtkQGLWindowQT.cpp
vtkQGLPtrToQT.cpp      
vtkQGLRenderWindowInteractor.cpp  
vtkQtObjectFactory.cpp
vtkQGLPtrToVTK.cpp     
vtkQGLTexture.cpp

#moc_vtkQGLRenderWindowInteractor.cpp  
#moc_vtkQGLWindowQT.cpp                
#moc_vtkQtOutputWindow.cpp             


)

SET(vtk_qt_MOC_SRCS 

vtkQGLImageMapper.h  vtkQGLPtrToQT.h       vtkQGLRenderWindowInteractor.h  vtkQtObjectFactory.h
vtkQGLImageWindow.h  vtkQGLPtrToVTK.h      vtkQGLTexture.h                 vtkQtOpenGLPolyDataMapper.h
vtkQGLLight.h        vtkQGLRenderWindow.h  vtkQGLWindowQT.h                vtkQtOutputWindow.h



)

IF(QT_WRAP_CPP)
  QT_WRAP_CPP(vtk_qt vtk_qt_SRCS vtk_qt_MOC_SRCS)
ENDIF(QT_WRAP_CPP)


#ADD_EXECUTABLE(vtk_qt vtk_qt_SRCS)
#ADD_LIBRARY( vtk_qt  SHARED vtk_qt_SRCS)
ADD_LIBRARY( vtk_qt  vtk_qt_SRCS)


--------------000804080305080506030308
Content-Type: text/plain;
 name="link.errors"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="link.errors"

Building executable NewProject...
main.o: In function `main':
main.o(.text+0x30): undefined reference to `QGLFormat::hasOpenGL()'
main.o: In function `NewProjectWindow::~NewProjectWindow [in-charge]()':
main.o(.gnu.linkonce.t._ZN16NewProjectWindowD1Ev+0xb): undefined reference to `vtable for NewProjectWindow'
main.o(.gnu.linkonce.t._ZN16NewProjectWindowD1Ev+0x17): undefined reference to `vtable for NewProjectWindow'
newprojectwindow.o: In function `NewProjectWindow::NewProjectWindow[not-in-charge](QWidget*, char const*, unsigned)':
newprojectwindow.o(.text+0x23): undefined reference to `vtable for NewProjectWindow'
newprojectwindow.o(.text+0x2f): undefined reference to `vtable for NewProjectWindow'
newprojectwindow.o: In function `NewProjectWindow::NewProjectWindow[in-charge](QWidget*, char const*, unsigned)':
newprojectwindow.o(.text+0x33e7): undefined reference to `vtable for NewProjectWindow'
newprojectwindow.o(.text+0x33f3): more undefined references to `vtable for NewProjectWindow' follow
./libvtk_qt.a(vtkQGLImageWindow.o): In function `vtkQGLImageWindow::MakeDefaultWindow()':
vtkQGLImageWindow.o(.text+0x36f): undefined reference to `QGLFormat::QGLFormat[in-charge]()'
vtkQGLImageWindow.o(.text+0x38e): undefined reference to `QGLFormat::setDoubleBuffer(bool)'
vtkQGLImageWindow.o(.text+0x39f): undefined reference to `QGLFormat::setStereo(bool)'
vtkQGLImageWindow.o(.text+0x3b0): undefined reference to `QGLFormat::setRgba(bool)'
vtkQGLImageWindow.o(.text+0x3c1): undefined reference to `QGLFormat::setDepth(bool)'
vtkQGLImageWindow.o(.text+0x3d2): undefined reference to `QGLFormat::setDirectRendering(bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0xac): undefined reference to `QGLWidget::setMouseTracking(bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x108): undefined reference to `QGLWidget::reparent(QWidget*, unsigned, QPoint const&, bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x148): undefined reference to `QGLWidget::paintEvent(QPaintEvent*)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x150): undefined reference to `QGLWidget::resizeEvent(QResizeEvent*)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1c0): undefined reference to `QGLWidget::makeCurrent()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1c4): undefined reference to `QGLWidget::swapBuffers()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1c8): undefined reference to `QGLWidget::setFormat(QGLFormat const&)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1cc): undefined reference to `QGLWidget::setContext(QGLContext*, QGLContext const*, bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1d0): undefined reference to `QGLWidget::renderPixmap(int, int, bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1d4): undefined reference to `QGLWidget::grabFrameBuffer(bool)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1d8): undefined reference to `QGLWidget::makeOverlayCurrent()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1dc): undefined reference to `QGLWidget::updateGL()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1e0): undefined reference to `QGLWidget::updateOverlayGL()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1e4): undefined reference to `QGLWidget::initializeGL()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1f0): undefined reference to `QGLWidget::initializeOverlayGL()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1f4): undefined reference to `QGLWidget::resizeOverlayGL(int, int)'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1f8): undefined reference to `QGLWidget::paintOverlayGL()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x1fc): undefined reference to `QGLWidget::glInit()'
./libvtk_qt.a(vtkQGLImageWindow.o)(.gnu.linkonce.d._ZTV19vtkQGLImageWindowQT+0x200): undefined reference to `QGLWidget::glDraw()'
./libvtk_qt.a(vtkQGLImageWindow.o): In function `vtkQGLWindowQT::~vtkQGLWindowQT [not-in-charge]()':
vtkQGLImageWindow.o(.gnu.linkonce.t._ZN14vtkQGLWindowQTD2Ev+0x44): undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()'
./libvtk_qt.a(vtkQGLImageWindow.o): In function `vtkQGLImageWindowQT::paintGL()':
vtkQGLImageWindow.o(.gnu.linkonce.t._ZN19vtkQGLImageWindowQT7paintGLEv+0xd): undefined reference to `QGLWidget::paintGL()'
./libvtk_qt.a(vtkQGLImageWindow.o): In function `vtkQGLImageWindowQT::resizeGL(int, int)':
vtkQGLImageWindow.o(.gnu.linkonce.t._ZN19vtkQGLImageWindowQT8resizeGLEii+0x13): undefined reference to `QGLWidget::resizeGL(int, int)'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `vtkQGLRenderWindow::Start()':
vtkQGLRenderWindow.o(.text+0x9e2): undefined reference to `QGLFormat::QGLFormat[in-charge]()'
vtkQGLRenderWindow.o(.text+0xa01): undefined reference to `QGLFormat::setDoubleBuffer(bool)'
vtkQGLRenderWindow.o(.text+0xa20): undefined reference to `QGLFormat::setStereo(bool)'
vtkQGLRenderWindow.o(.text+0xa31): undefined reference to `QGLFormat::setRgba(bool)'
vtkQGLRenderWindow.o(.text+0xa42): undefined reference to `QGLFormat::setDepth(bool)'
vtkQGLRenderWindow.o(.text+0xa53): undefined reference to `QGLFormat::setDirectRendering(bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `QGLFormat::doubleBuffer() const':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZNK9QGLFormat12doubleBufferEv+0xf): undefined reference to `QGLFormat::testOption(QGL::FormatOption) const'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `QGLFormat::depth() const':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZNK9QGLFormat5depthEv+0xf): undefined reference to `QGLFormat::testOption(QGL::FormatOption) const'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `QGLFormat::rgba() const':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZNK9QGLFormat4rgbaEv+0xf): undefined reference to `QGLFormat::testOption(QGL::FormatOption) const'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `QGLFormat::alpha() const':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZNK9QGLFormat5alphaEv+0xf): undefined reference to `QGLFormat::testOption(QGL::FormatOption) const'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `QGLFormat::accum() const':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZNK9QGLFormat5accumEv+0xf): undefined reference to `QGLFormat::testOption(QGL::FormatOption) const'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.t._ZNK9QGLFormat7stencilEv+0xf): more undefined references to `QGLFormat::testOption(QGL::FormatOption) const' follow
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0xac): undefined reference to `QGLWidget::setMouseTracking(bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x108): undefined reference to `QGLWidget::reparent(QWidget*, unsigned, QPoint const&, bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x148): undefined reference to `QGLWidget::paintEvent(QPaintEvent*)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x150): undefined reference to `QGLWidget::resizeEvent(QResizeEvent*)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1c0): undefined reference to `QGLWidget::makeCurrent()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1c4): undefined reference to `QGLWidget::swapBuffers()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1c8): undefined reference to `QGLWidget::setFormat(QGLFormat const&)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1cc): undefined reference to `QGLWidget::setContext(QGLContext*, QGLContext const*, bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1d0): undefined reference to `QGLWidget::renderPixmap(int, int, bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1d4): undefined reference to `QGLWidget::grabFrameBuffer(bool)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1d8): undefined reference to `QGLWidget::makeOverlayCurrent()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1dc): undefined reference to `QGLWidget::updateGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1e0): undefined reference to `QGLWidget::updateOverlayGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1e4): undefined reference to `QGLWidget::initializeGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1f0): undefined reference to `QGLWidget::initializeOverlayGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1f4): undefined reference to `QGLWidget::resizeOverlayGL(int, int)'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1f8): undefined reference to `QGLWidget::paintOverlayGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x1fc): undefined reference to `QGLWidget::glInit()'
./libvtk_qt.a(vtkQGLRenderWindow.o)(.gnu.linkonce.d._ZTV20vtkQGLRenderWindowQT+0x200): undefined reference to `QGLWidget::glDraw()'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `vtkQGLRenderWindowQT::paintGL()':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZN20vtkQGLRenderWindowQT7paintGLEv+0xd): undefined reference to `QGLWidget::paintGL()'
./libvtk_qt.a(vtkQGLRenderWindow.o): In function `vtkQGLRenderWindowQT::resizeGL(int, int)':
vtkQGLRenderWindow.o(.gnu.linkonce.t._ZN20vtkQGLRenderWindowQT8resizeGLEii+0x13): undefined reference to `QGLWidget::resizeGL(int, int)'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::staticMetaObject()':
vtkQGLWindowQT.o(.text+0xb8): undefined reference to `QGLWidget::staticMetaObject()'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::qt_cast(char const*)':
vtkQGLWindowQT.o(.text+0x161): undefined reference to `QGLWidget::qt_cast(char const*)'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::qt_invoke(int, QUObject*)':
vtkQGLWindowQT.o(.text+0x12d9): undefined reference to `QGLWidget::qt_invoke(int, QUObject*)'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::qt_emit(int, QUObject*)':
vtkQGLWindowQT.o(.text+0x14ec): undefined reference to `QGLWidget::qt_emit(int, QUObject*)'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::qt_property(int, int, QVariant*)':
vtkQGLWindowQT.o(.text+0x151d): undefined reference to `QGLWidget::qt_property(int, int, QVariant*)'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::vtkQGLWindowQT[not-in-charge](QGLFormat const&, QWidget*, char const*)':
vtkQGLWindowQT.o(.text+0x1547): undefined reference to `QGLWidget::QGLWidget[not-in-charge](QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned)'
vtkQGLWindowQT.o(.text+0x15d7): undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::vtkQGLWindowQT[in-charge](QGLFormat const&, QWidget*, char const*)':
vtkQGLWindowQT.o(.text+0x160d): undefined reference to `QGLWidget::QGLWidget[not-in-charge](QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned)'
vtkQGLWindowQT.o(.text+0x169d): undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0xac): undefined reference to `QGLWidget::setMouseTracking(bool)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x108): undefined reference to `QGLWidget::reparent(QWidget*, unsigned, QPoint const&, bool)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x148): undefined reference to `QGLWidget::paintEvent(QPaintEvent*)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x150): undefined reference to `QGLWidget::resizeEvent(QResizeEvent*)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1c0): undefined reference to `QGLWidget::makeCurrent()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1c4): undefined reference to `QGLWidget::swapBuffers()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1c8): undefined reference to `QGLWidget::setFormat(QGLFormat const&)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1cc): undefined reference to `QGLWidget::setContext(QGLContext*, QGLContext const*, bool)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1d0): undefined reference to `QGLWidget::renderPixmap(int, int, bool)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1d4): undefined reference to `QGLWidget::grabFrameBuffer(bool)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1d8): undefined reference to `QGLWidget::makeOverlayCurrent()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1dc): undefined reference to `QGLWidget::updateGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1e0): undefined reference to `QGLWidget::updateOverlayGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1e4): undefined reference to `QGLWidget::initializeGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1e8): undefined reference to `QGLWidget::resizeGL(int, int)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1ec): undefined reference to `QGLWidget::paintGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1f0): undefined reference to `QGLWidget::initializeOverlayGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1f4): undefined reference to `QGLWidget::resizeOverlayGL(int, int)'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1f8): undefined reference to `QGLWidget::paintOverlayGL()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x1fc): undefined reference to `QGLWidget::glInit()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTV14vtkQGLWindowQT+0x200): undefined reference to `QGLWidget::glDraw()'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::~vtkQGLWindowQT [in-charge]()':
vtkQGLWindowQT.o(.gnu.linkonce.t._ZN14vtkQGLWindowQTD1Ev+0x44): undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()'
./libvtk_qt.a(vtkQGLWindowQT.o): In function `vtkQGLWindowQT::~vtkQGLWindowQT [in-charge deleting]()':
vtkQGLWindowQT.o(.gnu.linkonce.t._ZN14vtkQGLWindowQTD0Ev+0x44): undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()'
./libvtk_qt.a(vtkQGLWindowQT.o)(.gnu.linkonce.d._ZTI14vtkQGLWindowQT+0x10): undefined reference to `typeinfo for QGLWidget'
collect2: ld returned 1 exit status
make[1]: *** [NewProject] Erreur 1
make: *** [default_target] Erreur 2

--------------000804080305080506030308--