OpenCV with the Intel(tm) Compiler on Windows (Patch #1855)


Added by Christian Ivancsits almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-04-27
Priority:Normal Due date:
Assignee:Alexander Shishkov % Done:

0%

Category:build/install
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

The chages of patch #1637, which fix Intel(tm) compiler issues on linux, cause compile errors when building with the Intel(tm) compiler on windows. The Intel(tm) compiler on Windows does not provide _InterlockedExchangeAdd (note the underscore), but uses window's InterlockedExchangeAdd kernel call. In case of building with the Intel(tm) compiler on Windows, the fix causes that windows specific defines are skipped.

I am using OpenCV SVN (rev. 8226) with Intel(tm) compiler 11.1.054 [IA-32].

The following change in operations.hpp fixed the problem.

modules/core/include/opencv2/core/operations.hpp:
line 55:
#ifdef __INTEL_COMPILER // atomic increment on the Intel(tm) compiler
changed to:
#if defined __INTEL_COMPILER && !(defined WIN32 || defined _WIN32) // atomic increment on the linux version of the Intel(tm) compiler

I would like to ask you to consider the fix in the attached file (modules/core/include/opencv2/core/operations.hpp)


operations.hpp (126.5 kB) Christian Ivancsits, 2012-04-27 02:17 pm


Associated revisions

Revision da0080dd
Added by Alexander Shishkov almost 13 years ago

fixed #1855

Revision 24465bbd
Added by Roman Donchenko over 11 years ago

Merge pull request #1855 from Nerei:master

History

Updated by Alexander Shishkov almost 13 years ago

Thanks for the report! The patch was applied to r8236.

Updated by Alexander Shishkov almost 13 years ago

  • Status changed from Open to Done

Also available in: Atom PDF