Now I am tring to compile mitk with vs2008(X64) in Win7. When configurint itk I
set both itk_use_review, itk_use_review_statistics true, then I compiled itk
sucessfully with debug and release version. However, when I compile mitk,
errors as follows occured.
Error 1 error C2974: 'itk::Statistics::Histogram' : invalid template argument
for 'TFrequencyContainer', type expected
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
55
Error 2 error C2955: 'itk::Statistics::Histogram' : use of class template
requires template argument list
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
58
Error 3 fatal error C1903: unable to recover from previous error(s); stopping
compilation
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
58
Error 4 error C2974: 'itk::Statistics::Histogram' : invalid template argument
for 'TFrequencyContainer', type expected
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
55
Error 5 error C2955: 'itk::Statistics::Histogram' : use of class template
requires template argument list
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
58
Error 6 fatal error C1903: unable to recover from previous error(s); stopping
compilation
h:\project\fmrianalyze\trunk\mitkfmri\modules\mitkext\algorithms\mitkSimpleUnstructuredGridHistogram.h
58
Error 7 error C2248:
'itk::Statistics::Histogram<TMeasurement>::ConstIterator::ConstIterator' :
cannot access protected member declared in class
'itk::Statistics::Histogram<TMeasurement>::ConstIterator'
h:\Project\fMRIAnalyze\trunk\mitkfmri\Modules\QmitkExt\QmitkVtkHistogramWidget.cpp
152
I searched the maillist for some solutions and I did find one that is similar
with my situation:
http://sourceforge.net/mailarchive/forum.php?thread_name=44f773f50910011446ge8f48f2i1324299729f191f5%40mail.gmail.com&forum_name=mitk-users
Following his instructions, I checked all the files he suggested to modify and
found that they had been modified yet. And the itk_use_review_statistics
preprocesser also can be found in the itkConfig.h. But errors still occured
when I rebulit it. According to the problem, I found something wrong with the
file "SimpleUnstructuredGridHistogram":
typedef itk::Statistics::Histogram<MeasurementType, 1> HistogramType;
and I changed it as follows:
#if defined(ITK_USE_REVIEW_STATISTICS)
typedef itk::Statistics::Histogram<MeasurementType> HistogramType;
#else
typedef itk::Statistics::Histogram<MeasurementType, 1> HistogramType;
#endif
Unfortunately, it did not work and new errors occured.
I do not know how to fix the bug now. Anyone can help with that? Thans a lot.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users