[vtkusers] vtkandqt run example

Pedro.Patron at imag.fr Pedro.Patron at imag.fr
Thu Apr 3 03:37:02 EST 2003


Hi everybody, 
 
Just a little remark for the people how wants to integrate VTK in a Qt  
interface and they are beginners like me. 
 
This is the interactor.pro configuration file example that runs for Qt 3.1.0  
and Vtk 4.2.1: 
 
TEMPLATE    =  app 
 
CONFIG       = qt warn_on release console opengl 
 
win32:LIBS   = $(VTKDIR)\lib\vtklib.lib imm32.lib 
win32:TMAKE_CFLAGS += -MD 
win32:TMAKE_CXXFLAGS += -MD 
win32:TMAKE_LFLAGS += /nodefaultlib:libc.lib 
 
INCLUDEPATH =  $(VTKDIR) \ 
               $(VTKDIR)\Graphics \ 
               $(VTKDIR)\Common \ 
               $(VTKDIR)\Imaging \ 
               $(VTKDIR)\Filtering \ 
               $(VTKDIR)\Rendering 
 
LIBS            += -L$(VTKDIR)/bin -lvtkCommon -lvtkGraphics -lvtkImaging 
-lvtkFiltering  
-lvtkRendering        
               
 
HEADERS     =  ../src/renderwindowinteractor.h \ 
               ../src/renderwindow.h 
 
SOURCES     =  interactormain.cpp \ 
               ../src/renderwindowinteractor.cpp \ 
               ../src/renderwindow.cpp 
 
TARGET       = interactor 
 
DEFINES      = VTKNODLL 
 
# enable this, if you want the double buffering of qt instead 
# of vtk 
# DEFINES      += QT_DOUBLEBUFFER 
 
 

-------------------------------------------------
envoyé via Webmail/IMAG !




More information about the vtkusers mailing list