Hi Matthias, Jochen, Thanks for the tips. I will check if this is the problem. I use the VTK build which is inside my paraview build. This saves me from having to compile the same thing twice (I build my own paraview plugins). So far I have never had problems with this.
Since paraview uses Qt I am quite sure that VTK_USE_GUISUPPORT etc. is ON. I will try to see if it is related to me using the paraview-vtk build and post if I find a solution. Thanks -Bryn On Mar 8, 2010, at 11:35 AM, Baumhauer Matthias wrote: > Bryn, > > QmitkVtkHistogramWidget includes QT widgets provided by VTK. > > Please be sure that your VTK Cmake configuration is correct: > "If you want to use Qt for application development, compile > VTK_USE_GUISUPPORT (advanced CMake option), VTK_USE_QVTK and > VTK_USE_QVTK_QTOPENGL turned ON." > (http://www.mitk.org/wiki/Build_requirements > ) > > Regards, > Matthias > > > -----Ursprüngliche Nachricht----- > Von: Bryn Lloyd [mailto:[email protected]] > Gesendet: Montag, 8. März 2010 11:31 > An: [email protected] > Betreff: [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 ---- Bryn Lloyd Computer Vision Laboratory Sternwartstrasse 7, ETF C110 8092 Zürich, Switzerland Phone: +41 44 63 26668 Fax: +41 44 63 21199 ------------------------------------------------------------------------------ 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
