MantisBT - Community
View Issue Details
0027734Community[OCCT] OCCT:Configurationpublic2016-08-01 19:042016-12-09 16:38
jensgw 
bugmaster 
normalmajor 
closedfixed 
win32 (x64)Windows7
[OCCT] 7.0.0 
[OCCT] 7.1.0[OCCT] 7.1.0 
Not needed
0027734: Configuration - TKIVtkDraw build fails with TBB
When using TBB (tbb43_20150611oss) in conjunction with IVTKDraw the build of OCCT7.0.0 fails on windows with errors:

 [...]\tbb43_20150611oss\include\tbb\internal/_tbb_windef.h(28): fatal error C1189: #error : TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater. ([...]\opencascade-7.0.0\src\IVtkDraw\IVtkDraw_Interactor.cxx)

 [...]\tbb43_20150611oss\include\tbb\internal/_tbb_windef.h(28): fatal error C1189: #error : TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater. ([...]\opencascade-7.0.0\src\IVtkDraw\IVtkDraw.cxx)

Reasons is a define in files IVtkDraw.cxx and IVtkDraw_Interactor.cxx:
 #define _WIN32_WINNT 0x0400 // for TrackMouseEvent support requires Win95 with IE 3.0 or greater.

Maybe it not a wise decission to set the windows version to something different then allready running.
A "is lower" or "is greater check would make more sense, like TBB does (_tbb_windef.h):

// Check that the target Windows version has all API calls requried for TBB.
// Do not increase the version in condition beyond 0x0500 without prior discussion!
#if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0501
#error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater.
#endif

List of Windows Version Numbers: https://msdn.microsoft.com/en-us/library/6sehtctf.aspx [^]
No tags attached.
related to 0027567closed bugmaster Open CASCADE VIS - possible memory leaks due to use of plain pointers 
Issue History
2016-08-01 19:04jensgwNew Issue
2016-08-01 19:04jensgwAssigned To => kgv
2016-08-01 19:31kgvAssigned Tokgv => aba
2016-08-01 19:31kgvStatusnew => assigned
2016-08-01 19:31kgvCategoryOCCT:Coding => OCCT:Configuration
2016-08-01 19:31kgvTarget Version => 7.1.0
2016-08-01 19:31kgvSummaryBuild fails with TBB and VTK => Configuration - TKIVtkDraw build fails with TBB
2016-09-14 19:15sanRelationship addedrelated to 0027567
2016-09-14 19:40sanNote Added: 0057807
2016-09-14 19:40sanAssigned Toaba => bugmaster
2016-09-14 19:40sanStatusassigned => feedback
2016-09-19 10:58bugmasterAssigned Tobugmaster => mkv
2016-09-19 10:58bugmasterStatusfeedback => reviewed
2016-09-19 13:57mkvNote Added: 0057923
2016-09-19 13:57mkvAssigned Tomkv => bugmaster
2016-09-19 13:57mkvStatusreviewed => tested
2016-09-19 13:57mkvTest case number => Not needed
2016-09-23 10:24bugmasterStatustested => verified
2016-09-23 10:24bugmasterResolutionopen => fixed
2016-12-09 16:30aivStatusverified => closed
2016-12-09 16:38aivFixed in Version => 7.1.0

Notes
(0057807)
san   
2016-09-14 19:40   
This issue is resolved by a patch for 0027567.
Please test them together.
(0057923)
mkv   
2016-09-19 13:57   
Dear BugMaster,
Branch CR27567 is TESTED.