[vtkusers] from 4.0 to 4.2 problem

Laurent Mundeleer lmundele at ulb.ac.be
Thu Oct 16 11:45:45 EDT 2003


Hi all,

I use VTK, ITK and Qt.
To put qt and VTK together  I also use vtk_qt from Carsten Küebler.
All of this worked fine with vtk 4.0 on Windows, but I'd like to upgrade 
my project from vtk 4.0 to vtk 4.2.
I've done fresh installation for vtk, qt, and itk.

I try to write a correct cmakelists to have something cross-plateform, 
but I've some problems,
a lot of linking warnings and a few errors :
---------------------------------------------------------------------------------
Linking...
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkObject::operator delete(void *)" (??3vtkObject@@SAXPAX at Z)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: static void * 
__cdecl vtkObject::operator new(unsigned int)" (??2vtkObject@@SAPAXI at Z)" 
imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkObjectFactory::vtkObjectFactory(void)" (??0vtkObjectFactory@@IAE at XZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkObjectFactory::IsTypeOf(char const *)" 
(?IsTypeOf at vtkObjectFactory@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkObjectFactory::~vtkObjectFactory(void)" 
(??1vtkObjectFactory@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkObjectFactory::RegisterFactory(class vtkObjectFactory *)" 
(?RegisterFactory at vtkObjectFactory@@SAXPAV1@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: static class 
vtkObject * __cdecl vtkObjectFactory::CreateInstance(char const *)" 
(?CreateInstance at vtkObjectFactory@@SAPAVvtkObject@@PBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper(void)" 
(??0vtkOpenGLPolyDataMapper@@IAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkPolyDataMapper::IsTypeOf(char const *)" 
(?IsTypeOf at vtkPolyDataMapper@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkOpenGLPolyDataMapper::~vtkOpenGLPolyDataMapper(void)" 
(??1vtkOpenGLPolyDataMapper@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: double 
__thiscall vtkTimerLog::GetElapsedTime(void)" 
(?GetElapsedTime at vtkTimerLog@@QAENXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkTimeStamp::Modified(void)" (?Modified at vtkTimeStamp@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkTimerLog::StopTimer(void)" (?StopTimer at vtkTimerLog@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkTimerLog::MarkEndEvent(char const *)" 
(?MarkEndEvent at vtkTimerLog@@SAXPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkTimerLog::StartTimer(void)" (?StartTimer at vtkTimerLog@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkTimerLog::MarkStartEvent(char const *)" 
(?MarkStartEvent at vtkTimerLog@@SAXPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkMapper::GetGlobalImmediateModeRendering(void)" 
(?GetGlobalImmediateModeRendering at vtkMapper@@SAHXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkUnsignedCharArray * __thiscall vtkMapper::MapScalars(float)" 
(?MapScalars at vtkMapper@@QAEPAVvtkUnsignedCharArray@@M at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkProperty * __thiscall vtkActor::GetProperty(void)" 
(?GetProperty at vtkActor@@QAEPAVvtkProperty@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkTimeStamp::operator unsigned long(void)" (??BvtkTimeStamp@@QAEKXZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkMatrix4x4::MultiplyPoint(float const * const,float * const)" 
(?MultiplyPoint at vtkMatrix4x4@@QAEXQBMQAM at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class vtkObject 
* __thiscall vtkCollection::GetItemAsObject(int)" 
(?GetItemAsObject at vtkCollection@@QAEPAVvtkObject@@H at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkMatrix4x4::Invert(void)" (?Invert at vtkMatrix4x4@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static class 
vtkMatrix4x4 * __cdecl vtkMatrix4x4::New(void)" 
(?New at vtkMatrix4x4@@SAPAV1 at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkCollection::GetNumberOfItems(void)" 
(?GetNumberOfItems at vtkCollection@@QAEHXZ)" imported
LINK : warning LNK4049: locally defined symbol ""void __cdecl 
vtkOutputWindowDisplayDebugText(char const *)" 
(?vtkOutputWindowDisplayDebugText@@YAXPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkObject::InvokeEvent(unsigned long,void *)" 
(?InvokeEvent at vtkObject@@QAEHKPAX at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkOStrStreamWrapper::~vtkOStrStreamWrapper(void)" 
(??1vtkOStrStreamWrapper@@QAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkObject::BreakOnError(void)" (?BreakOnError at vtkObject@@SAXXZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkOStrStreamWrapper::freeze(int)" 
(?freeze at vtkOStrStreamWrapper@@QAEXH at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStrStreamWrapper * __thiscall vtkOStrStreamWrapper::rdbuf(void)" 
(?rdbuf at vtkOStrStreamWrapper@@QAEPAV1 at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""void __cdecl 
vtkOutputWindowDisplayErrorText(char const *)" 
(?vtkOutputWindowDisplayErrorText@@YAXPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkObject::InvokeEvent(char const *,void *)" 
(?InvokeEvent at vtkObject@@QAEHPBDPAX at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: char * 
__thiscall vtkOStrStreamWrapper::str(void)" 
(?str at vtkOStrStreamWrapper@@QAEPADXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkObject::HasObserver(char const *)" 
(?HasObserver at vtkObject@@QAEHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStreamWrapper & __thiscall vtkOStreamWrapper::operator<<(void *)" 
(??6vtkOStreamWrapper@@QAEAAV0 at PAX@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStreamWrapper & __thiscall vtkOStreamWrapper::operator<<(int)" 
(??6vtkOStreamWrapper@@QAEAAV0 at H@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStreamWrapper & __thiscall vtkOStreamWrapper::operator<<(char const 
*)" (??6vtkOStreamWrapper@@QAEAAV0 at PBD@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkOStrStreamWrapper::vtkOStrStreamWrapper(void)" 
(??0vtkOStrStreamWrapper@@QAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkOStreamWrapper::UseEndl(struct vtkOStreamWrapper::EndlType 
const &)" (?UseEndl at vtkOStreamWrapper@@SAXABUEndlType at 1@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkObject::GetGlobalWarningDisplay(void)" 
(?GetGlobalWarningDisplay at vtkObject@@SAHXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkRenderWindow * __thiscall vtkRenderer::GetRenderWindow(void)" 
(?GetRenderWindow at vtkRenderer@@QAEPAVvtkRenderWindow@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkPolyData * __thiscall vtkPolyDataMapper::GetInput(void)" 
(?GetInput at vtkPolyDataMapper@@QAEPAVvtkPolyData@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkPolyData::vtkPolyData(void)" (??0vtkPolyData@@IAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkPolyData::IsTypeOf(char const *)" 
(?IsTypeOf at vtkPolyData@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkPolyData::~vtkPolyData(void)" (??1vtkPolyData@@MAE at XZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkPolyData::PrintSelf(class ostream &,class vtkIndent)" 
(?PrintSelf at vtkPolyData@@UAEXAAVostream@@VvtkIndent@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkIndent::vtkIndent(class vtkIndent const &)" 
(??0vtkIndent@@QAE at ABV0@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkPointSet::DeepCopy(class vtkDataObject *)" 
(?DeepCopy at vtkPointSet@@UAEXPAVvtkDataObject@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkPolyData::SetStrips(class vtkCellArray *)" 
(?SetStrips at vtkPolyData@@QAEXPAVvtkCellArray@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkCellArray * __thiscall vtkPolyData::GetStrips(void)" 
(?GetStrips at vtkPolyData@@QAEPAVvtkCellArray@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkPolyData::SetPolys(class vtkCellArray *)" 
(?SetPolys at vtkPolyData@@QAEXPAVvtkCellArray@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkCellArray * __thiscall vtkPolyData::GetPolys(void)" 
(?GetPolys at vtkPolyData@@QAEPAVvtkCellArray@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkPolyData::SetLines(class vtkCellArray *)" 
(?SetLines at vtkPolyData@@QAEXPAVvtkCellArray@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkCellArray * __thiscall vtkPolyData::GetLines(void)" 
(?GetLines at vtkPolyData@@QAEPAVvtkCellArray@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkPolyData::SetVerts(class vtkCellArray *)" 
(?SetVerts at vtkPolyData@@QAEXPAVvtkCellArray@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkCellArray::DeepCopy(class vtkCellArray *)" 
(?DeepCopy at vtkCellArray@@QAEXPAV1@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkCellArray * __thiscall vtkPolyData::GetVerts(void)" 
(?GetVerts at vtkPolyData@@QAEPAVvtkCellArray@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static class 
vtkCellArray * __cdecl vtkCellArray::New(void)" 
(?New at vtkCellArray@@SAPAV1 at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static class 
vtkPolyData * __cdecl vtkPolyData::SafeDownCast(class vtkObject *)" 
(?SafeDownCast at vtkPolyData@@SAPAV1 at PAVvtkObject@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual void 
__thiscall vtkOpenGLLight::CollectRevisions(class ostream &)" 
(?CollectRevisions at vtkOpenGLLight@@MAEXAAVostream@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkOStreamWrapper::operator class ostream &(void)" 
(??BvtkOStreamWrapper@@QAEAAVostream@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall 
vtkOStreamWrapper::vtkOStreamWrapper(class ostream &)" 
(??0vtkOStreamWrapper@@QAE at AAVostream@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkOpenGLLight::vtkOpenGLLight(void)" (??0vtkOpenGLLight@@IAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkOpenGLLight::IsTypeOf(char const *)" 
(?IsTypeOf at vtkOpenGLLight@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkOpenGLLight::~vtkOpenGLLight(void)" 
(??1vtkOpenGLLight@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkMatrix4x4::Transpose(void)" (?Transpose at vtkMatrix4x4@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkMatrix4x4::DeepCopy(class vtkMatrix4x4 *)" 
(?DeepCopy at vtkMatrix4x4@@QAEXPAV1@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkRenderWindowInteractor::~vtkRenderWindowInteractor(void)" 
(??1vtkRenderWindowInteractor@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkRenderWindowInteractor::vtkRenderWindowInteractor(void)" 
(??0vtkRenderWindowInteractor@@IAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkRenderWindowInteractor::IsTypeOf(char const *)" 
(?IsTypeOf at vtkRenderWindowInteractor@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkRenderWindowInteractor::PrintSelf(class ostream &,class 
vtkIndent)" 
(?PrintSelf at vtkRenderWindowInteractor@@UAEXAAVostream@@VvtkIndent@@@Z)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkObject::HasObserver(unsigned long)" 
(?HasObserver at vtkObject@@QAEHK at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkRenderWindowInteractor::SetEventInformationFlipY(int,int,int,int,char,int,char 
const *)" 
(?SetEventInformationFlipY at vtkRenderWindowInteractor@@QAEXHHHHDHPBD at Z)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkRenderWindowInteractor::SetKeyEventInformation(int,int,char,int,char 
const *)" 
(?SetKeyEventInformation at vtkRenderWindowInteractor@@QAEXHHDHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkOpenGLRenderWindow::~vtkOpenGLRenderWindow(void)" 
(??1vtkOpenGLRenderWindow@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static class 
vtkIdList * __cdecl vtkIdList::New(void)" (?New at vtkIdList@@SAPAV1 at XZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkOpenGLRenderWindow::vtkOpenGLRenderWindow(void)" 
(??0vtkOpenGLRenderWindow@@IAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkOpenGLRenderWindow::IsTypeOf(char const *)" 
(?IsTypeOf at vtkOpenGLRenderWindow@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkRenderWindow::Render(void)" 
(?Render at vtkRenderWindow@@UAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkIdList::GetId(int)" (?GetId at vtkIdList@@QAEHH at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: int __thiscall 
vtkIdList::GetNumberOfIds(void)" (?GetNumberOfIds at vtkIdList@@QAEHXZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkRenderer::SetRenderWindow(class vtkRenderWindow *)" 
(?SetRenderWindow at vtkRenderer@@QAEXPAVvtkRenderWindow@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class vtkObject 
* __thiscall vtkCollection::GetNextItemAsObject(void)" 
(?GetNextItemAsObject at vtkCollection@@QAEPAVvtkObject@@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall 
vtkCollection::InitTraversal(void)" 
(?InitTraversal at vtkCollection@@QAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""class ostream & __cdecl 
operator<<(class ostream &,class vtkIndent const &)" 
(??6 at YAAAVostream@@AAV0 at ABVvtkIndent@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkRenderWindow::PrintSelf(class ostream &,class vtkIndent)" 
(?PrintSelf at vtkRenderWindow@@UAEXAAVostream@@VvtkIndent@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkWindow::SetSize(int,int)" (?SetSize at vtkWindow@@UAEXHH at Z)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStreamWrapper & __thiscall vtkOStreamWrapper::operator<<(unsigned 
int)" (??6vtkOStreamWrapper@@QAEAAV0 at I@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: class 
vtkOStreamWrapper & __thiscall vtkOStreamWrapper::operator<<(bool)" 
(??6vtkOStreamWrapper@@QAEAAV0 at _N@Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual int 
__thiscall vtkRenderWindow::GetStereoCapableWindow(void)" 
(?GetStereoCapableWindow at vtkRenderWindow@@UAEHXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkRenderWindow::StereoMidpoint(void)" 
(?StereoMidpoint at vtkRenderWindow@@UAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: virtual void 
__thiscall vtkRenderWindow::StereoRenderComplete(void)" 
(?StereoRenderComplete at vtkRenderWindow@@UAEXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""protected: virtual 
__thiscall vtkOutputWindow::~vtkOutputWindow(void)" 
(??1vtkOutputWindow@@MAE at XZ)" imported
LINK : warning LNK4049: locally defined symbol ""protected: __thiscall 
vtkOutputWindow::vtkOutputWindow(void)" (??0vtkOutputWindow@@IAE at XZ)" 
imported
LINK : warning LNK4049: locally defined symbol ""public: static int 
__cdecl vtkOutputWindow::IsTypeOf(char const *)" 
(?IsTypeOf at vtkOutputWindow@@SAHPBD at Z)" imported
LINK : warning LNK4049: locally defined symbol ""public: static void 
__cdecl vtkOutputWindow::SetInstance(class vtkOutputWindow *)" 
(?SetInstance at vtkOutputWindow@@SAXPAV1@@Z)" imported
vtk_qt.lib(vtkQGLRenderWindowInteractor.obj) : error LNK2001: unresolved 
external symbol "protected: virtual void __thiscall 
vtkQGLRenderWindowInteractor::initMetaObject(void)" 
(?initMetaObject at vtkQGLRenderWindowInteractor@@MAEXXZ)
vtk_qt.lib(vtkQGLRenderWindowInteractor.obj) : error LNK2001: unresolved 
external symbol "public: virtual char const * __thiscall 
vtkQGLRenderWindowInteractor::className(void)const " 
(?className at vtkQGLRenderWindowInteractor@@UBEPBDXZ)
vtk_qt.lib(vtkQGLRenderWindowInteractor.obj) : error LNK2001: unresolved 
external symbol "public: static class QMetaObject * __cdecl 
vtkQGLRenderWindowInteractor::staticMetaObject(void)" 
(?staticMetaObject at vtkQGLRenderWindowInteractor@@SAPAVQMetaObj
ect@@XZ)
RelWithDebInfo/projet_foie.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

projet_foie.exe - 4 error(s), 97 warning(s)
--------------------------------------------------------
here's my cmakelists file :
(maybe some things are redundants)

--------------------------------------------------------
# cmakelists projet_foie oct 2003
# Laurent Mundeleer

PROJECT(projet_foie)


FIND_PACKAGE(ITK)
IF(ITK_FOUND)
    INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
    MESSAGE(FATAL_ERROR
    "ITK not found. Please set ITK_DIR.")
ENDIF(ITK_FOUND)

FIND_PACKAGE(VTK)
IF(VTK_FOUND)
    INCLUDE(${VTK_USE_FILE})
ELSE(VTK_FOUND)
    MESSAGE(FATAL_ERROR
    "VTK not found. Please set VTK_DIR.")
ENDIF(VTK_FOUND)

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

INCLUDE_DIRECTORIES(

${QT_INCLUDE_DIR}
${QT_INCLUDE_PATH}
${QTDIR}

c:/qt/include

c:/qt/vtk_qt
c:/qt/vtk_qt/include

${VTKSRC}
${VTKSRC}/Rendering
${VTKSRC}/Imaging
${VTKSRC}/Graphics
${VTKSRC}/Hybrid
${VTKSRC}/Common
${VTKSRC}/Filtering
${VTKSRC}/IO
${VTKSRC}/Patented
${VTKSRC}/Parallel
${VTKSRC}/Utilities/zlib

${VTKBIN}

${ITKSRC}/Code/Algorithms
${ITKSRC}/Code/BasicFilters
${ITKSRC}/Code/Common
${ITKSRC}/Code/IO
${ITKSRC}/Code/Numerics
${ITKSRC}/Code/Numerics/FEM
${ITKSRC}/Code/Numerics/Statistics
${ITKSRC}/Code/SpatialObject

${ITKSRC}/Utilities/DICOMParser
${ITKSRC}/Utilities/expat
${ITKSRC}/Utilities/jpeg
${ITKSRC}/Utilities/kwsys
${ITKSRC}/Utilities/MetaIO
${ITKSRC}/Utilities/png
${ITKSRC}/Utilities/vxl
${ITKSRC}/Utilities/zlib

)

LINK_DIRECTORIES (
c:/qt
c:/qt/bin
c:/qt/lib

c:/qt/vtk_qt
c:/vtk/bin/bin
c:/itk/bin/bin
)

LINK_LIBRARIES (
vtkRendering
vtkGraphics     
vtkHybrid     
vtkImaging
vtkIO
vtkFiltering
vtkCommon
vtkzlib

ITKAlgorithms
ITKBasicFilters
ITKCommon
ITKFEM
ITKIO
ITKMetaIO
ITKNumerics
itkpng
ITKStatistics
itkzlib

vtk_qt
${QT_QT_LIBRARY}

)

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

SET(projet_foie_SRCS
# all project source files
affichage1coupe.h
affichage1coupe.cpp

affichage4coupes.h
affichage4coupes.cpp

affichage16coupes.h
affichage16coupes.cpp

affichage4vues.h
affichage4vues.cpp

affichage1vue3D.h
affichage1vue3D.cpp

affichage2vues3D.h
affichage2vues3D.cpp

affichageBase.h
affichageBase.cpp

affichageBase3D.h
affichageBase3D.cpp

interactorStyle1Coupe.h
interactorStyle1Coupe.cpp

interactorStyle2Vues3D.h
interactorStyle2Vues3D.cpp

interactorStyle4Coupes.h
interactorStyle4Coupes.cpp

levelSetITK.h
levelSetITK.cpp

modelisationVTK.h
modelisationVTK.cpp

regionGrowingITK.h
regionGrowingITK.cpp

registrationVTK.h
registrationVTK.cpp

registrationITK.h
registrationITK.cpp

sourceControlVTK.h
sourceControlVTK.cpp

main.cpp
interfaceControlQT.cpp
)

SET(projet_foie_MOC_SRCS

# files with QT_OBJECT in it

interfaceControlQT.h


)

IF(QT_WRAP_CPP)
 QT_WRAP_CPP(projet_foie projet_foie_SRCS projet_foie_MOC_SRCS)
ENDIF(QT_WRAP_CPP)


ADD_EXECUTABLE(projet_foie projet_foie_SRCS )

-------------------------------------------------------


thank you for any help...



Laurent
(aka imho)

-- 
********************************************
Laurent Mundeleer
Université Libre de Bruxelles (ULB)
Service des Systèmes Logiques et Numériques (SLN) CP165/57
50, Av. F.Roosevelt
1050 Bruxelles
Belgium
tel : ++32.2.650.22.97
fax : ++32.2.650.22.98
e-mail : lmundele at ulb.ac.be
********************************************





More information about the vtkusers mailing list