[vtkusers] Help VTK + QT problem...

Arnaldo Luis Lixandrão Filho arnaldo.fisica at gmail.com
Tue Sep 9 10:24:53 EDT 2008


I compiled the last repository version 5.3 with codeblocks and mingw with QT
gui support with no errors. I set up all things to use the
new QVTKWidgetPlugin.dll. The problem is that i don't know how to solve the
unsolved reference as shown below:
The other problem is the appear of some deprecated headers!!! how i solve
them????..... I hope someone help me fast because i really need to use
VTK+QT today!!!! The source is attached.

Thanks in advance....

mingw32-make debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and
Settings/alixandr.LTDPX/Desktop/QtVtkWork/QTVTK'
d:\Qt\4.4.1\bin\uic.exe qtvtk.ui -o ui_qtvtk.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\4.4.1\include\QtCore"
-I"d:\Qt\4.4.1\include\QtCore" -I"d:\Qt\4.4.1\include\QtGui"
-I"d:\Qt\4.4.1\include\QtGui" -I"d:\Qt\4.4.1\include\QtOpenGL"
-I"d:\Qt\4.4.1\include\QtOpenGL" -I"d:\Qt\4.4.1\include"
-I"c:\VTK\include\vtk-5.3" -I"d:\Qt\4.4.1\include\ActiveQt" -I"debug" -I"."
-I"d:\Qt\4.4.1\mkspecs\win32-g++" -o debug\main.o main.cpp
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/strstream:51,
                 from c:/VTK/include/vtk-5.3/vtkIOStream.h:112,
                 from c:/VTK/include/vtk-5.3/vtkSystemIncludes.h:40,
                 from c:/VTK/include/vtk-5.3/vtkIndent.h:24,
                 from c:/VTK/include/vtk-5.3/vtkObjectBase.h:43,
                 from c:/VTK/include/vtk-5.3/vtkObject.h:41,
                 from c:/VTK/include/vtk-5.3/vtkRenderWindowInteractor.h:44,
                 from c:/VTK/include/vtk-5.3/QVTKWidget.h:39,
                 from ui_qtvtk.h:22,
                 from qtvtk.h:5,
                 from main.cpp:1:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <iostream> instead of the
deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\4.4.1\include\QtCore"
-I"d:\Qt\4.4.1\include\QtCore" -I"d:\Qt\4.4.1\include\QtGui"
-I"d:\Qt\4.4.1\include\QtGui" -I"d:\Qt\4.4.1\include\QtOpenGL"
-I"d:\Qt\4.4.1\include\QtOpenGL" -I"d:\Qt\4.4.1\include"
-I"c:\VTK\include\vtk-5.3" -I"d:\Qt\4.4.1\include\ActiveQt" -I"debug" -I"."
-I"d:\Qt\4.4.1\mkspecs\win32-g++" -o debug\qtvtk.o qtvtk.cpp
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/strstream:51,
                 from c:/VTK/include/vtk-5.3/vtkIOStream.h:112,
                 from c:/VTK/include/vtk-5.3/vtkSystemIncludes.h:40,
                 from c:/VTK/include/vtk-5.3/vtkIndent.h:24,
                 from c:/VTK/include/vtk-5.3/vtkObjectBase.h:43,
                 from c:/VTK/include/vtk-5.3/vtkObject.h:41,
                 from c:/VTK/include/vtk-5.3/vtkRenderWindowInteractor.h:44,
                 from c:/VTK/include/vtk-5.3/QVTKWidget.h:39,
                 from ui_qtvtk.h:22,
                 from qtvtk.h:5,
                 from qtvtk.cpp:1:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <iostream> instead of the
deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
D:\Qt\4.4.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"d:\Qt\4.4.1\include\QtCore"
-I"d:\Qt\4.4.1\include\QtCore" -I"d:\Qt\4.4.1\include\QtGui"
-I"d:\Qt\4.4.1\include\QtGui" -I"d:\Qt\4.4.1\include\QtOpenGL"
-I"d:\Qt\4.4.1\include\QtOpenGL" -I"d:\Qt\4.4.1\include"
-I"c:\VTK\include\vtk-5.3" -I"d:\Qt\4.4.1\include\ActiveQt" -I"debug" -I"."
-I"d:\Qt\4.4.1\mkspecs\win32-g++" -D__GNUC__ -DWIN32 qtvtk.h -o
debug\moc_qtvtk.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\4.4.1\include\QtCore"
-I"d:\Qt\4.4.1\include\QtCore" -I"d:\Qt\4.4.1\include\QtGui"
-I"d:\Qt\4.4.1\include\QtGui" -I"d:\Qt\4.4.1\include\QtOpenGL"
-I"d:\Qt\4.4.1\include\QtOpenGL" -I"d:\Qt\4.4.1\include"
-I"c:\VTK\include\vtk-5.3" -I"d:\Qt\4.4.1\include\ActiveQt" -I"debug" -I"."
-I"d:\Qt\4.4.1\mkspecs\win32-g++" -o debug\moc_qtvtk.o debug\moc_qtvtk.cpp
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/strstream:51,
                 from c:/VTK/include/vtk-5.3/vtkIOStream.h:112,
                 from c:/VTK/include/vtk-5.3/vtkSystemIncludes.h:40,
                 from c:/VTK/include/vtk-5.3/vtkIndent.h:24,
                 from c:/VTK/include/vtk-5.3/vtkObjectBase.h:43,
                 from c:/VTK/include/vtk-5.3/vtkObject.h:41,
                 from c:/VTK/include/vtk-5.3/vtkRenderWindowInteractor.h:44,
                 from c:/VTK/include/vtk-5.3/QVTKWidget.h:39,
                 from debug\../ui_qtvtk.h:22,
                 from debug\../qtvtk.h:5,
                 from debug\moc_qtvtk.cpp:10:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <iostream> instead of the
deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o
debug\QTVTK.exe debug/main.o debug/qtvtk.o debug/moc_qtvtk.o
 -L"d:\Qt\4.4.1\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind
-LC:/VTK/lib/vtk-5.3 -lvtkQtChart -lvtkInfovis -lvtkWidgets -lvtklibxml2
-lvtkHybrid -lvtkRendering -lvtkIO -lvtkmetaio -lvtkpng -lvtktiff -lvtkzlib
-lvtkGraphics -lvtkImaging -lvtkftgl -lvtkfreetype -lvtkexoIIc
-lvtkFiltering -lvtkverdict -lvtkDICOMParser -lvtkNetCDF -lvtksqlite
-lvtkjpeg -lvtkexpat -lvtkCommon -lvtksys -lvtkQtChart -lvtkInfovis
-lQVTKWidgetPlugin.dll -lQtOpenGLd4 -lQtGuid4 -lQtCored4
debug/qtvtk.o: In function `ZN5QTVTKC1EP7QWidget':
C:/Documents and
Settings/alixandr.LTDPX/Desktop/QtVtkWork/QTVTK/qtvtk.cpp:6: undefined
reference to `QVTKWidget::QVTKWidget(QWidget*, QFlags<Qt::WindowType>)'
collect2: ld returned 1 exit status
mingw32-make[1]: Leaving directory `C:/Documents and
Settings/alixandr.LTDPX/Desktop/QtVtkWork/QTVTK'
mingw32-make[1]: *** [debug\QTVTK.exe] Error 1
mingw32-make: *** [debug] Error 2




-- 
Arnaldo Luis Lixandrão Filho
Bacharel em Física - UNICAMP
arnaldo.fisica at gmail.com
skype/voipraider: arnaldo.fisica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080909/b20c00bf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QTVTK.7z
Type: application/octet-stream
Size: 4254 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080909/b20c00bf/attachment.obj>


More information about the vtkusers mailing list