[vtkusers] Fwd: QVTK compile error with vtk 5
Ruben Schilling
r.b.schilling at googlemail.com
Wed Oct 10 06:52:26 EDT 2007
Hi,
I am trying to compile the VTK 5.0.3 release on an X86_64 system running
SuSe Linux, gcc 4.2.0 and Qt 4.3.2. For the build I chose a 'Release' build
with a couple of optimization flags and (!) QVTK as well as GUI support. The
compilation runs fine except QVTK which gives me the following error at
compile time:
[ 65%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLDataSetWriter.o
[ 65%] Generating moc_QVTKWidget.cxx
[ 66%] Generating moc_vtkEventQtSlotConnect.cxx
Scanning dependencies of target QVTK
[ 66%] Building CXX object
GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o
[ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStreamer.o
[ 66%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLFileReadTester.o
In file included from
/project/imaging/software/include/QtCore/qatomic_arch.h:55,
from /project/imaging/software/include/QtCore/qatomic.h:45,
from
/project/imaging/software/include/QtCore/qbytearray.h:43,
from /project/imaging/software/include/QtCore/qstring.h:43,
from /project/imaging/software/include/QtCore/qobject.h:45,
from
/scratch/local/schillin/VTKBuild/GUISupport/Qt/../../../vtk-5.0.3
/GUISupport/Qt/vtkEventQt
SlotConnect.h:44,
from
/scratch/local/schillin/VTKBuild/GUISupport/Qt/moc_vtkEventQtSlotConnect.cxx:10:
/project/imaging/software/include/QtCore/qatomic_i386.h: In function 'int
q_atomic_test_and_set_ptr(volatile voi
d*, void*, void*)':
/project/imaging/software/include/QtCore/qatomic_i386.h:73: error: cast from
'void*' to 'int' loses precision
/project/imaging/software/include/QtCore/qatomic_i386.h:74: error: cast from
'void*' to 'int' loses precision
make[2]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o]
Error 1
make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStripper.o
I searched the bug tracker but couldn't find this error. Does anyone have a
remedy for this or a recommendation what version of Qt would work? Is this a
version mismatch? During the configuration all Qt files seemed to be found
correctly, only Qt3 was not found (but is also not intended for usage).
I would be grateful for any hints.
Best regards
Ruben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071010/4ce1d8ff/attachment.htm>
More information about the vtkusers
mailing list