<span class="gmail_quote"></span>Hi,<br><br>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:
<br><br>[ 65%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLDataSetWriter.o<br>[ 65%] Generating moc_QVTKWidget.cxx<br>[ 66%] Generating moc_vtkEventQtSlotConnect.cxx<br>Scanning dependencies of target QVTK<br>[ 66%] Building CXX object GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o
<br>[ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStreamer.o<br>[ 66%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLFileReadTester.o<br>In file included from /project/imaging/software/include/QtCore/qatomic_arch.h:55,
<br> from /project/imaging/software/include/QtCore/qatomic.h:45,<br> from /project/imaging/software/include/QtCore/qbytearray.h:43,<br> from /project/imaging/software/include/QtCore/qstring.h:43,
<br> from /project/imaging/software/include/QtCore/qobject.h:45,<br> from /scratch/local/schillin/VTKBuild/GUISupport/Qt/../../../vtk-5.0.3/GUISupport/Qt/vtkEventQt<br>SlotConnect.h:44,<br>
from /scratch/local/schillin/VTKBuild/GUISupport/Qt/moc_vtkEventQtSlotConnect.cxx:10:<br>/project/imaging/software/include/QtCore/qatomic_i386.h: In function 'int q_atomic_test_and_set_ptr(volatile voi
<br>d*, void*, void*)':<br>/project/imaging/software/include/QtCore/qatomic_i386.h:73: error: cast from 'void*' to 'int' loses precision<br>/project/imaging/software/include/QtCore/qatomic_i386.h:74: error: cast from 'void*' to 'int' loses precision
<br>make[2]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o] Error 1<br>make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2<br>make[1]: *** Waiting for unfinished jobs....<br>[ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStripper.o
<br><br><br>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).
<br><br>I would be grateful for any hints.<br><br>Best regards<br><span class="sg">Ruben<br>
</span>