[vtk-developers] [VTK 0011748]: Do not rely on STL support in QT
Mantis Bug Tracker
mantis at public.kitware.com
Fri Jan 21 16:21:13 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=11748
======================================================================
Reported By: Dominik Szczerba
Assigned To:
======================================================================
Project: VTK
Issue ID: 11748
Category: (No Category)
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2011-01-21 16:21 EST
Last Modified: 2011-01-21 16:21 EST
======================================================================
Summary: Do not rely on STL support in QT
Description:
There is currently an issue with Visual Studio 2010 and QT 4.7.1 leading to
crashes in STL-QT interoperability. Currently the only workaround is not to use
STL with QT (-no-stl). Unfortunately, in VTK it is silently assumed STL support
is always present. Fortunately, it is very small and can be easily removed by
e.g. replacing toStdString() by toAscii().data()
1> vtkQtSQLQuery.cxx
1>..\..\..\..\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(97): error
C2039: 'toStdString' : is not a member of 'QString'
1>
c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(101)
: see declaration of 'QString'
1>..\..\..\..\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(105): error
C2039: 'toStdString' : is not a member of 'QString'
1>
c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(101)
: see declaration of 'QString'
1>..\..\..\..\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(209): error
C2039: 'toStdString' : is not a member of 'QString'
1>
c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(101)
: see declaration of 'QString'
1>..\..\..\..\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtSQLQuery.cxx(226): error
C2039: 'toStdString' : is not a member of 'QString'
1>
c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(101)
: see declaration of 'QString'
1> vtkQtChartRepresentation.cxx
1>..\..\..\..\Programs\vtk-5.6.1\GUISupport\Qt\vtkQtChartRepresentation.cxx(120):
error C2039: 'toStdString' : is not a member of 'QString'
1>
c:\users\dominik\programs\qt-everywhere-opensource-src-4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(101)
: see declaration of 'QString'
1> Generating Code...
Steps to Reproduce:
Compile QT 4.7.1 with MSVC 2010 Professional 64 bit and configure QT with no STL
support (-no-stl). VTK compilation fails.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-01-21 16:21 Dominik SzczerbaNew Issue
======================================================================
More information about the vtk-developers
mailing list