MantisBT - Community
View Issue Details
0029407Community[OCCT] OCCT:Configurationpublic2017-12-29 16:212018-06-29 21:18
conic_chris 
abv 
normalminor 
closedfixed 
Mac OS XMac OS X High Sierra 0.12.6
[OCCT] 7.1.0 
[OCCT] 7.3.0[OCCT] 7.3.0 
Not needed
0029407: Generating static libraries on macOS
I want to build the entire OCCT under Mac for Mac OS as static libraries. (permission acquired to do so).

I wonder if there are settings in the 'env.sh' or 'custom.sh' scripts to do so. But if there are I cannot find them.
I am following instructions on
https://www.opencascade.com/doc/occt-7.2.0/overview/html/occt_dev_guides__building_xcode.html [^]
to compile occt libraries on mac as dynamic libraries. That worked so far.

I do not know what to change in the process to generate static libraries instead of dynamic ones.
No tags attached.
related to 0029589closed bugmaster Open CASCADE Configuration - allow MFC samples to be built when OCCT is linked statically 
Issue History
2017-12-29 16:21conic_chrisNew Issue
2017-12-29 16:21conic_chrisAssigned To => bugmaster
2018-02-28 17:17szyNote Added: 0074165
2018-02-28 17:17szyAssigned Tobugmaster => inv
2018-02-28 17:17szyStatusnew => assigned
2018-03-19 08:46abvTarget Version => 7.3.0
2018-03-19 08:58abvRelationship addedrelated to 0029589
2018-03-19 12:13bugmasterNote Added: 0074643
2018-03-19 12:13bugmasterStatusassigned => closed
2018-03-19 12:13bugmasterResolutionopen => no change required
2018-03-19 12:47bugmasterNote Added: 0074644
2018-03-19 12:47bugmasterAssigned Toinv => ibs
2018-03-19 12:47bugmasterStatusclosed => assigned
2018-05-25 18:23gitNote Added: 0076347
2018-05-25 18:28apnTest case number => Not needed
2018-05-25 18:28apnAssigned Toibs => abv
2018-05-25 18:28apnStatusassigned => feedback
2018-05-25 19:16abvNote Added: 0076350
2018-05-25 19:16abvAssigned Toabv => bugmaster
2018-05-25 19:16abvStatusfeedback => reviewed
2018-05-29 12:33abvChangeset attached => occt master f78445cf
2018-05-29 12:33abvAssigned Tobugmaster => abv
2018-05-29 12:33abvStatusreviewed => verified
2018-05-29 12:33abvResolutionno change required => fixed
2018-05-29 15:54abvChangeset attached => occt master 2e32a645
2018-06-23 13:56gitNote Added: 0076897
2018-06-29 21:13aivFixed in Version => 7.3.0
2018-06-29 21:18aivStatusverified => closed

Notes
(0074165)
szy   
2018-02-28 17:17   
Check it, please.
The customer refers to our guide (with xcode).
If it doesn't work may be we can fix it (guide or script)?
If not - probably cmake can be used (to be checked).
(0074643)
bugmaster   
2018-03-19 12:13   
The best way to build static library on MacOS is usage of CMake procedure with option BUILD_LIBRARY_TYPE=Static and native products.
It was checked for OCCT 7.1.0 and 7.2.0
(0074644)
bugmaster   
2018-03-19 12:47   
Ivan,

APN and me try to build static libraries on MacOS use the description from

https://www.opencascade.com/doc/occt-7.2.0/overview/html/occt_dev_guides__building_xcode.html [^]

1. We created environment
2. We generated XCode projects by genproj with usage -static option
3. But next point Building put us in a quandary
Could you please update this chapter for dummy users!
(0076347)
git   
2018-05-25 18:23   
Branch CR29407 has been created by apn.

SHA-1: 432048dabdb5c479154ddfc166bf1d7282b9f605


Detailed log of new commits:

Author: apn
Date: Fri May 25 18:23:01 2018 +0300

    0029407: Generating static libraries on macOS
    
    Update "Building with Xcode" documentation
(0076350)
abv   
2018-05-25 19:16   
Reviewed, added to branch CR0-OCCT730beta for integration
(0076897)
git   
2018-06-23 13:56   
Branch CR29407 has been deleted by kgv.

SHA-1: 432048dabdb5c479154ddfc166bf1d7282b9f605