[Insight-users] CMalists QT+VTK

Oliveira Marcelo marceloitk at yahoo.com.br
Thu Jul 29 16:09:59 EDT 2004


i Users !!!

I got the VTKQT from
http://www.matthias-koenig.net/vtkqt/

version( vtk4qt3.tgz ). I'm using CMAKE 2.0.2, VTK4.4,
last  and QT 3.3.2 on Debian 3.0. 

I untar the vtk4qt3.tgz and edit Makefile - everthing
works ok, so i have libvtk.a. 

IS MY CMAKELISTS RIGHT ??? 

else anyone could send me i right CMAKELISTS !!!

TANKS A LOT FOR YOUR HELP !!!!!

I wrote my CMakalists like that:

PROJECT(teste)

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

# 
# Find VTK
#
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)

INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
${QT_INCLUDE_PATH}
${teste_BINARY_DIR} 
${teste_SOURCE_DIR}
/home/marcelo/vtkqt/
)

LINK_LIBRARIES (


vtkCommon 
vtkRendering 
vtkIO 
vtkImaging 
vtkPatented 
vtkHybrid 
ITKNumerics 
ITKCommon
ITKBasicFilters 
ITKIO 
ITKAlgorithms 

vtkqt

${QT_QT_LIBRARY}
${QT_GL_LIBRARY}
)

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

SET(teste_SRCS
main.cpp
.ui/form1.cpp
)

SET(teste_MOC_SRCS 
.ui/form1.h
)

SET(teste_GUI_SRCS 
form1.ui 
)

IF(QT_WRAP_UI)
QT_WRAP_UI(testeExecutable 
teste_HDRS 
teste_SRCS 
teste_GUI_SRCS 
) 
ENDIF(QT_WRAP_UI)

QT_WRAP_CPP(testeExecutable 
teste_SRCS 
teste_MOC_SRCS)


INCLUDE_DIRECTORIES(/home/marcelo/vtkqt)
LINK_DIRECTORIES(/home/marcelo/vtkqt)

ADD_EXECUTABLE(testeExecutable teste_SRCS)

//*************************************************
//***** AND I RECEIVED THIS ERROR   ***************
//*************************************************

make 
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.text+0x149):
In function
`vtkQtRenderWindow::vtkQtRenderWindow[not-in-charge](QGLFormat
const&, QWidget*, char const*, QGLWidget const*,
unsigned)':
/home/marcelo/vtkqt/vtkQtRenderWindow.cpp:65:
undefined reference to
`QGLWidget::QGLWidget[not-in-charge](QGLFormat const&,
QWidget*, char const*, QGLWidget const*, unsigned)'
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.text+0x1b5):
In function
`vtkQtRenderWindow::vtkQtRenderWindow[not-in-charge](QGLFormat
const&, QWidget*, char const*, QGLWidget const*,
unsigned)':
/home/marcelo/VTK/Rendering/vtkRenderWindow.h:342:
undefined reference to `QGLWidget::~QGLWidget
[not-in-charge]()'
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.text+0x1ff):


	
	
		
_______________________________________________________
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/


More information about the Insight-users mailing list