View Issue Details

IDProjectCategoryView StatusLast Update
0024281CommunityOCCT:Codingpublic2013-11-27 10:22
ReporterPawel Assigned ToPawel  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
PlatformWindowsOSVC++ 2012 
Product Version6.6.0 
Target Version6.7.0 
Summary0024281: CMake does not correctly generate 32bit solutions
DescriptionI'm on VS2012 / Win7 64bit and was able to successfully generate 64bit OCCT solutions for VS2012 with CMake.

Unfortunately, generating 32bit solution for VS2012 does not work. Although I set

BUILD_BITNESS = 32

using CMake, 64bit projects are generated though (e.g. options like /machine:x64 still defined).
TagsNo tags attached.
Test case number

Relationships

related to 0024217 closedPawel CMake does not differentiate between the release and debug versions of TBB 

Activities

ibs

2013-11-06 15:28

developer   ~0026480

Last edited: 2013-11-06 15:28

Pawel,
thanks for this issue. I agree with you that BUILD_BITNESS variable doesn't work properly. It has been fixed already and will be integrate in OCCT 6.7.0

CMake of OCCT 6.7.0 doesn't have BUILD_BITNESS variable and bitness is chosen by taking into account a bitness of cmake meta-project generator.

in OCCT 6.6.0 case, if you would like to generate OCCT VS 2012 32bit solution - choose 32 bit version of generator (visual studio 11 option) and set BUILD_BITNESS=32.

for 64 bit version of OCCT VS solution - choose 64 bit version of generator (visual studio 11 win64 option) and set BUILD_BITNESS=64.

changing just BUILD_BITNESS variable without changing version of generator doesn't work

Pawel

2013-11-06 15:58

developer   ~0026484

Dear ibs,

thanks for your comment.

However I have some questions: can you please clarify if it would be possible to generate 32bit projects on 64bit Win7 and vice versa with OCCT 6.7.0?

How to influence/set the "bitness of cmake meta-project generator"?

ibs

2013-11-06 16:16

developer   ~0026491

Sure, you can do it. CMake check bitness of the generator and set BUILD_BITNESS variable implicitly. System bitness doesn't matter to CMake in contrast to generator bitness.

Try to generate and then write here about your results :)

Pawel

2013-11-06 17:12

developer   ~0026494

Dear ibs,

yes, I must have been blind ;) Of course changing the generator solves the problem. For some reason I have overseen this option...

ibs

2013-11-06 17:27

developer   ~0026495

Pawel, i think, we confused you by our not obvious cmake building interface (confusing BUILD_BITNESS) :) I'm glad we have removed BUILD_BITNESS variable.

ibs

2013-11-18 10:44

developer   ~0026685

dear bugmaster, please close current issue

Issue History

Date Modified Username Field Change
2013-10-23 16:09 Pawel New Issue
2013-10-23 16:09 Pawel Assigned To => bugmaster
2013-10-23 16:09 Pawel Relationship added related to 0024217
2013-11-06 14:30 kgv Assigned To bugmaster => ibs
2013-11-06 14:30 kgv Status new => assigned
2013-11-06 15:28 ibs Note Added: 0026480
2013-11-06 15:28 ibs Assigned To ibs => Pawel
2013-11-06 15:28 ibs Status assigned => feedback
2013-11-06 15:28 ibs Note Edited: 0026480
2013-11-06 15:58 Pawel Note Added: 0026484
2013-11-06 15:59 Pawel Status feedback => acknowledged
2013-11-06 15:59 Pawel Assigned To Pawel => ibs
2013-11-06 15:59 Pawel Status acknowledged => feedback
2013-11-06 16:16 ibs Note Added: 0026491
2013-11-06 16:17 ibs Assigned To ibs => Pawel
2013-11-06 17:12 Pawel Note Added: 0026494
2013-11-06 17:12 Pawel Assigned To Pawel => ibs
2013-11-06 17:12 Pawel Status feedback => resolved
2013-11-06 17:27 ibs Note Added: 0026495
2013-11-18 10:44 ibs Note Added: 0026685
2013-11-18 10:44 ibs Assigned To ibs => bugmaster
2013-11-18 10:44 ibs Status resolved => reviewed
2013-11-20 08:32 abv Status reviewed => feedback
2013-11-27 10:22 bugmaster Status feedback => closed
2013-11-27 10:22 bugmaster Assigned To bugmaster => Pawel
2013-11-27 10:22 bugmaster Resolution open => no change required
2014-01-11 11:58 abv Category OCCT Release:BUILD => OCCT:Coding