View Issue Details

IDProjectCategoryView StatusLast Update
0029390CommunityOCCT:Configurationpublic2020-11-13 13:13
Reporterconic_chris Assigned Toabv 
PrioritynormalSeverityminor 
Status closedResolutionreopened 
PlatformWindowsOSVC++ 2012 
Product Version7.1.0 
Summary0029390: Compilation problem
DescriptionI managed to compile occt on windows (see profile) as a static library using /MT compile flags. (license for doing so is acquired).
However I needed to insert a HashCode-function in my own code before including the static occt-libraries to make them work.

int HashCode( unsigned short const * const,int )
{
    return -1;
}

Is this the correct approach? This seems strange to me, as I could not detect HashCode being called in OCCT directly nor in TCL/TK and freetype. I am unsure about if that is correct and if HashCode is really needed I would definitely need to change the body of the code.
TagsNo tags attached.
Test case number

Relationships

duplicate of 0029377 closedbugmaster Open CASCADE Configuration, CMake - linkage errors while using static OCCT libraries on Windows platform 

Activities

abv

2017-12-18 14:26

manager   ~0073023

Please define preprocessor macro HAVE_NO_DLL when compiling your code; this should (hopefully) resolve the issue with HashCode() function.

I also advise you to take recent change from Git branch CR29377 (or wait till next Monday and then use master branch) -- this change enables this macro for OCCT itself. See issue 0029377 for details.

conic_chris

2018-01-16 12:17

reporter   ~0073431

Is it planed to release the version (7.2.1) including the fix on the public website? (https://www.opencascade.com/content/latest-release)

If so, when?

abv

2018-02-26 00:21

manager   ~0074131

We are going to issue the next release (to become 7.3.0, not 7.2.1, due to many changes already integrated since 7.2.0) in April.

Can I consider this issue closed?

conic_chris

2018-02-28 00:04

reporter   ~0074156

Since I do not have access to the git (never filled out the developer agreement) I cannot check the changes you made within 7.2.1.

However, I have now added the HAVE_NO_DLL flag manually to the compile flags in the 7.2.0 sources and there it worked.

=> You can close the issue

abv

2018-02-28 09:00

manager   ~0074157

Thank you, I am closing the issue.

Note that you do not need to sign CLA to be able to get particular version of sources from Git; you can use GitWeb (http://git.dev.opencascade.org/gitweb/?p=occt.git) to browse the history, and download snapshot of sources corresponding to particular commit (e.g. current master branch) directly from there.

Issue History

Date Modified Username Field Change
2017-12-18 12:25 conic_chris New Issue
2017-12-18 12:25 conic_chris Assigned To => bugmaster
2017-12-18 12:47 bugmaster Assigned To bugmaster => abv
2017-12-18 12:47 bugmaster Status new => assigned
2017-12-18 14:16 abv Relationship added duplicate of 0029377
2017-12-18 14:26 abv Note Added: 0073023
2017-12-18 14:26 abv Assigned To abv => conic_chris
2017-12-18 14:26 abv Status assigned => feedback
2017-12-18 15:18 bugmaster Status feedback => closed
2017-12-18 15:18 bugmaster Resolution open => duplicate
2017-12-18 16:14 bugmaster Status closed => feedback
2017-12-18 16:14 bugmaster Resolution duplicate => reopened
2018-01-16 12:17 conic_chris Note Added: 0073431
2018-02-26 00:21 abv Note Added: 0074131
2018-02-28 00:04 conic_chris Note Added: 0074156
2018-02-28 09:00 abv Note Added: 0074157
2018-02-28 09:23 abv Assigned To conic_chris => abv
2018-03-19 08:45 abv Status feedback => closed
2020-11-13 13:13 abv Category PRODUCTS:Release BUILD => OCCT:Configuration