[Insight-users] QtITK = Problems

Oliveira Marcelo marceloitk at yahoo.com.br
Wed Jul 21 10:25:52 EDT 2004


Hi user's !!!

I'm trying to compile the QtITK example, but i
received this erros:   ( Debian 3.0 (unstable), ITK
and InsightApplications - CVS, CMAKE 2.0.2, qt - 2.3.0
)

Marcelo:/home/marcelo/InsightApplications/QtITK_bin#
make
Building executable
/home/marcelo/InsightApplications/QtITK_bin/QtITK...
qtITK.o(.gnu.linkonce.r._ZTVN3itk13QtSlotAdaptorINS_14AddImageFilterINS_5ImageIfLj2EEES3_S3_EEEE+0x1c):
undefined reference to `itk::QtTranslator::className()
const'
qtITK.o(.gnu.linkonce.r._ZTVN3itk13QtSlotAdaptorINS_14AddImageFilterINS_5ImageIfLj2EEES3_S3_EEEE+0x2c):
undefined reference to
`itk::QtTranslator::initMetaObject()'
qtITK.o(.gnu.linkonce.t._ZNK3itk12QtTranslator10metaObjectEv+0x7):
In function `itk::QtTranslator::metaObject() const':
: undefined reference to
`itk::QtTranslator::staticMetaObject()'
qtITK.o(.gnu.linkonce.t._ZN3itk12QtTranslatorC2Ev+0x26):
In function
`itk::QtTranslator::QtTranslator[not-in-charge]()':
: undefined reference to `vtable for
itk::QtTranslator'
qtITK.o(.gnu.linkonce.t._ZN3itk12QtTranslatorD2Ev+0xb):
In function `itk::QtTranslator::~QtTranslator
[not-in-charge]()':
: undefined reference to `vtable for
itk::QtTranslator'
qtITK.o(.gnu.linkonce.t._ZN3itk16QtLightIndicatorD1Ev+0xb):
In function `itk::QtLightIndicator::~QtLightIndicator
[in-charge]()':
: undefined reference to `vtable for
itk::QtLightIndicator'
qtITK.o(.gnu.linkonce.t._ZN3itk16QtLightIndicatorD1Ev+0x17):
In function `itk::QtLightIndicator::~QtLightIndicator
[in-charge]()':
: undefined reference to `vtable for
itk::QtLightIndicator'
qtITK.o(.gnu.linkonce.t._ZN3itk16QtLightIndicatorC1EP7QWidgetPc+0x2c):
In function
`itk::QtLightIndicator::QtLightIndicator[in-charge](QWidget*,
char*)':
: undefined reference to `vtable for
itk::QtLightIndicator'
qtITK.o(.gnu.linkonce.t._ZN3itk16QtLightIndicatorC1EP7QWidgetPc+0x38):
In function
`itk::QtLightIndicator::QtLightIndicator[in-charge](QWidget*,
char*)':
: undefined reference to `vtable for
itk::QtLightIndicator'
qtITK.o(.gnu.linkonce.r._ZTIN3itk13QtSlotAdaptorINS_14AddImageFilterINS_5ImageIfLj2EEES3_S3_EEEE+0x8):
undefined reference to `typeinfo for
itk::QtTranslator'
qtITK.o(.gnu.linkonce.r._ZTVN3itk15QtSignalAdaptorE+0x1c):
undefined reference to `itk::QtTranslator::className()
const'
qtITK.o(.gnu.linkonce.r._ZTVN3itk15QtSignalAdaptorE+0x2c):
undefined reference to
`itk::QtTranslator::initMetaObject()'
qtITK.o(.gnu.linkonce.t._ZN3itk15QtSignalAdaptor10EmitSignalEv+0xd):
In function `itk::QtSignalAdaptor::EmitSignal()':
: undefined reference to `itk::QtTranslator::Signal()'
qtITK.o(.gnu.linkonce.r._ZTIN3itk15QtSignalAdaptorE+0x8):
undefined reference to `typeinfo for
itk::QtTranslator'
collect2: ld returned 1 exit status
make[1]: ***
[/home/marcelo/InsightApplications/QtITK_bin/QtITK]
Error 1
make: *** [default_target] Error 2

MY CMAKE CACHE IS:

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//For backwards compatibility, what version of CMake
commands and
// syntax should this version of CMake allow.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.0

//Choose the type of build, options are:
None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo
MinSizeRel.
//
CMAKE_BUILD_TYPE:STRING=

//C++ compiler
CMAKE_CXX_COMPILER:STRING=c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize
builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os

//Flags used by the compiler during release builds
(/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized
but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3

//Flags used by the compiler during Release with Debug
Info builds.
//
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

//C compiler
CMAKE_C_COMPILER:STRING=gcc

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize
builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os

//Flags used by the compiler during release builds
(/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized
but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3

//Flags used by the compiler during Release with Debug
Info builds.
//
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize
builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug
Info builds.
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Install path prefix, prepended onto install
directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of
modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize
builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug
Info builds.
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of
dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize
builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug
Info builds.
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when using
shared libraries.
//
CMAKE_SKIP_RPATH:BOOL=OFF

//If true, cmake will use relative paths in makefiles
and projects.
//
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated
without the
// .SILENT directive, and all commands will be echoed
to the console
// during the make.  This is useful for debugging
only. With Visual
// Studio IDE projects all commands are done without
/nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//Single output directory for building all
executables.
EXECUTABLE_OUTPUT_PATH:PATH=

//The directory containing ITKConfig.cmake.  This is
either the
// root of the build tree, or
PREFIX/lib/InsightToolkit for an
// installation.
ITK_DIR:PATH=/home/marcelo/ITK_bin

//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=

//What is the path where the file GL/gl.h can be found
OPENGL_INCLUDE_DIR:PATH=/usr/include

//Where can one of the MesaGL or GL libraries be found
OPENGL_gl_LIBRARY:FILEPATH=/usr/lib/libGL.so

//Where can one of the MesaGLU or GLU libraries be
found
OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/libGLU.so

//What is the path where the file GL/xmesa.h can be
found
OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/include

//What is the path where the file qt.h can be found
QT_INCLUDE_DIR:PATH=/usr/local/src/qt/include

//Path to a program.
QT_MOC_EXECUTABLE:FILEPATH=/usr/local/src/qt/bin/moc

//Where can the qassistantclient library be found
QT_QASSISTANTCLIENT_LIBRARY:FILEPATH=QT_QASSISTANTCLIENT_LIBRARY-NOTFOUND

//Where can one of the qt, qt-mt or qt-mt230nc
libraries be found
//
QT_QT_LIBRARY:FILEPATH=/usr/local/src/qt/lib/libqt.so

//Path to a program.
QT_UIC_EXECUTABLE:FILEPATH=/usr/local/src/qt/bin/uic

//Value Computed by CMake
QtSlicer_BINARY_DIR:STATIC=/home/marcelo/InsightApplications-1.6.0/Auxiliary/QtImageViewer

//Value Computed by CMake
QtSlicer_SOURCE_DIR:STATIC=/home/marcelo/InsightApplications-1.6.0/Auxiliary/QtImageViewer

//What is the path where the file X11/X.h can be found
X11_X11_INCLUDE_PATH:PATH=/usr/X11R6/include

//Where can the X11 library be found
X11_X11_LIB:FILEPATH=/usr/X11R6/lib/libX11.so

//Where can the Xext library be found
X11_Xext_LIB:FILEPATH=/usr/X11R6/lib/libXext.so

//What is the path where the file X11/Xlib.h can be
found
X11_Xlib_INCLUDE_PATH:PATH=/usr/X11R6/include

//What is the path where the file X11/Xutil.h can be
found
X11_Xutil_INCLUDE_PATH:PATH=/usr/X11R6/include


########################
# INTERNAL cache entries
########################

//Advanced flag for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating
for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCahe.txt was
created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/marcelo/InsightApplications-1.6.0/Auxiliary/QtImageViewer
//Major version of cmake used to create the current
loaded cache
//
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current
loaded cache
//
CMAKE_CACHE_MINOR_VERSION:INTERNAL=0
//Major version of cmake used to create the current
loaded cache
//
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 2
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/local/bin/cmake
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/bin/ctest
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//full path to the compiler cmake found
CMAKE_CXX_COMPILER_FULLPATH:INTERNAL=/usr/bin/c++
//Result of TRY_COMPILE
CMAKE_CXX_COMPILER_WORKS:INTERNAL=TRUE
//Advanced flag for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//full path to the compiler cmake found
CMAKE_C_COMPILER_FULLPATH:INTERNAL=/usr/bin/gcc
//Result of TRY_COMPILE
CMAKE_C_COMPILER_WORKS:INTERNAL=TRUE
//Advanced flag for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/bin/ccmake
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Have function connect
CMAKE_HAVE_CONNECT:INTERNAL=1
//Have function gethostbyname
CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1
//Have function remove
CMAKE_HAVE_REMOVE:INTERNAL=1
//Have function shmat
CMAKE_HAVE_SHMAT:INTERNAL=1
//Start directory with the top level CMakeLists.txt
file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/marcelo/InsightApplications-1.6.0/Auxiliary/QtImageViewer
//Have library ICE
CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER:INTERNAL=1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_MODULE_LINKER_FLAGS_RELEASE
//
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/local/share/CMake
//Advanced flag for variable:
CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
//
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_SHARED_LINKER_FLAGS_RELEASE
//
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/bin/uname
//Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_INCLUDE_DIR
OPENGL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_gl_LIBRARY
OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_glu_LIBRARY
OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_xmesa_INCLUDE_DIR
OPENGL_xmesa_INCLUDE_DIR-ADVANCED:INTERNAL=1
//Advanced flag for variable: QT_INCLUDE_DIR
QT_INCLUDE_DIR-ADVANCED:INTERNAL=1
//Advanced flag for variable: QT_MOC_EXECUTABLE
QT_MOC_EXECUTABLE-ADVANCED:INTERNAL=1
//Advanced flag for variable:
QT_QASSISTANTCLIENT_LIBRARY
QT_QASSISTANTCLIENT_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: QT_QT_LIBRARY
QT_QT_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: QT_UIC_EXECUTABLE
QT_UIC_EXECUTABLE-ADVANCED:INTERNAL=1
//Path to an executable
QtSlicer_CMAKE_PATH:INTERNAL=/home/marcelo/InsightApplications-1.6.0/Auxiliary/QtImageViewer
//Have library
/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so
//
X11_LIB_X11_SOLO:INTERNAL=1
//Advanced flag for variable: X11_X11_INCLUDE_PATH
X11_X11_INCLUDE_PATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: X11_X11_LIB
X11_X11_LIB-ADVANCED:INTERNAL=1
//Advanced flag for variable: X11_Xext_LIB
X11_Xext_LIB-ADVANCED:INTERNAL=1
//Advanced flag for variable: X11_Xlib_INCLUDE_PATH
X11_Xlib_INCLUDE_PATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: X11_Xutil_INCLUDE_PATH
X11_Xutil_INCLUDE_PATH-ADVANCED:INTERNAL=1






	
	
		
_______________________________________________________
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