[Insight-users] Compiling ITK3.6 with ICC10.1 (Export template issue)
Luis Ibanez
luis.ibanez at kitware.com
Wed May 21 17:16:07 EDT 2008
Hi SP H,
Please look at the variable
CMAKE_CXX_FLAGS_RELEASE
in the output of the itkSystemInformation test:
http://w<http://www.cdash.org/CDash/testDetails.php?test=3542878&build=81401>
ww.cdash.org/CDash/testDetails.php?test=3542878&build=81401<http://www.cdash.org/CDash/testDetails.php?test=3542878&build=81401>
It says:
CMAKE_CXX_FLAGS_RELEASE:STRING=-g -wd1268
You can disable warnin "1268" in the Intel compiler by adding to the CXX
flags the string
-wd1268
Please rerun ccmake, go to Advanced variables and add this
string to your CMAKE_CXX_FLAGS_RELEASE variable.
Note that if you are not building for "Release" then you should
probably add the string to
CMAKE_CXX_FLAGS
Please give it a try and let us know if you encounter any problem,
Thanks
Luis
-------------------------------------------------------------------------
On Wed, May 21, 2008 at 5:01 PM, SP H <itkhsp at gmail.com> wrote:
> Thanks for the email.
>
> I would like to know if there are additional things to do before compiling
> ITK with ICC.
> I just set these environment flags CC=icc, CXX=icpc before using ccmake to
> configure, and generate the Makefile.
>
> And this produced some warnings such as ,
>
> /InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_vector.h(37): warning
> #1268: support for exported templates is disabled
> export template <class T> class vnl_matrix;
> ^
> /InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_vector.h(534): warning
> #1268: support for exported templates is disabled
> export template <class T> vcl_ostream& operator<<(vcl_ostream &,
> vnl_vector<T> const&);
> ^
> /InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_vector.h(537): warning
> #1268: support for exported templates is disabled
> export template <class T> vcl_istream& operator>>(vcl_istream &,
> vnl_vector<T> &);
> ^
>
> ...
>
> with -export option, compilation fails...
>
> Thanks
>
>
> On Wed, May 21, 2008 at 2:40 PM, Luis Ibanez <luis.ibanez at kitware.com>
> wrote:
>
>>
>> Hi SP H,
>>
>>
>> There is one Nightly submission to the ITK Dashboard using ICC 10:
>>
>> http://www.cdash.org/CDash/buildSummary.php?buildid=81486
>>
>> it seems to build without any errors or warnings.
>>
>>
>>
>> You may want to look at its configuration from the output of
>> the itkSystemInformation test:
>>
>> http://www.cdash.org/CDash/testDetails.php?test=3542878&build=81401
>>
>>
>> Please let us know what you find,
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>> --------------
>> SP H wrote:
>>
>>> Hello, I am having trouble compiling ITK3.6 with the ICC compiler.
>>> Compiling the InsightToolkit3.6 produce some warnings about "export
>>> template not supported issue".
>>> But when I turn on that feature with -export flag, then another sets of
>>> errors occur.
>>>
>>> Does anybody have solution to this ?
>>> It needs to be compiled properly in order to use some ICC
>>> functionalities..
>>>
>>> Thanks..
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080521/66deb334/attachment.htm>
More information about the Insight-users
mailing list