Hi Bryn, look like a problem with your VTK version. It tries to find a method in /Users/brynlloyd/pack/ParaView-CVS/VTK/. Is that really the path to the VTK sources you use for MITK? Please make sure that it is at least VTK version 5.4.0.
Best Regards, Jochen ________________________________________ From: Bryn Lloyd [[email protected]] Sent: Monday, March 08, 2010 11:31 AM To: [email protected] Subject: [mitk-users] Compilation error (0.14 and svn on Linux and OSX) Hi, I had trouble compiling MITK on my mac and linux machines. I tried both the 0.14 version and a recent svn version (e.g. 7 March 2010). The compilation failed here: [ 90%] Building CXX object Modules/QmitkExt/CMakeFiles/QmitkExt.dir/ QmitkVtkHistogramWidget.cpp.o /Users/brynlloyd/pack/mitk/Modules/QmitkExt/ QmitkVtkHistogramWidget.cpp: In constructor 'QmitkVtkHistogramWidget::QmitkVtkHistogramWidget(QWidget*)': /Users/brynlloyd/pack/mitk/Modules/QmitkExt/ QmitkVtkHistogramWidget.cpp:63: error: no matching function for call to 'vtkQtChartStyleManager::getGenerator()' /Users/brynlloyd/pack/ParaView-CVS/VTK/GUISupport/Qt/Chart/ vtkQtChartStyleManager.h:71: note: candidates are: QObject* vtkQtChartStyleManager::getGenerator(const QString&) const /Users/brynlloyd/pack/mitk/Modules/QmitkExt/ QmitkVtkHistogramWidget.cpp:66: error: invalid use of undefined type 'struct vtkQtChartColors' /Users/brynlloyd/pack/ParaView-CVS/VTK/GUISupport/Qt/Chart/ vtkQtChartColorStyleGenerator.h:30: error: forward declaration of 'struct vtkQtChartColors' /Users/brynlloyd/pack/mitk/Modules/QmitkExt/ QmitkVtkHistogramWidget.cpp:66: error: incomplete type 'vtkQtChartColors' used in nested name specifier /Users/brynlloyd/pack/mitk/Modules/QmitkExt/ QmitkVtkHistogramWidget.cpp:71: error: incomplete type 'vtkQtChartColors' used in nested name specifier make[2]: *** [Modules/QmitkExt/CMakeFiles/QmitkExt.dir/ QmitkVtkHistogramWidget.cpp.o] Error 1 I managed to get passed this error by commenting out the faulty code and including a header file. Obviously this is not a great solution, but I without knowing MITK well I cannot properly fix it quickly. Maybe one of the developers has an idea. Thanks! 27,29d26 < // begin blloyd < #include <vtkQtChartColors.h> < // end blloyd 65,77c62,72 < // begin blloyd < // vtkQtChartColorStyleGenerator *generator = < // qobject_cast<vtkQtChartColorStyleGenerator *>( style- >getGenerator() ); < // if ( generator ) < // { < // generator->getColors()- >setColorScheme( vtkQtChartColors::Blues ); < // } < // else < // { < // style->setGenerator( < // new vtkQtChartColorStyleGenerator( m_ChartWidget, vtkQtChartColors::Blues ) ); < // } < // end blloyd Cheers Bryn ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
