Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
b95950e2
Commit
b95950e2
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
occ
parent
e6f29429
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.occ
+75
-0
75 additions, 0 deletions
doc/README.occ
with
75 additions
and
0 deletions
doc/README.occ
0 → 100644
+
75
−
0
View file @
b95950e2
How to build OpenCascade 6.1 for Gmsh:
- get the linux distribution of occ
- uncompress and apply patches (see below)
- go to the ros/ subdir and
./configure --prefix=/usr/local/opencascade --enable-debug=no
--enable-production=yes --enable-static=yes --enable-shared=no
make FoundationClasses
make ModelingData
make ModelingAlgorithms
make DataExchange
(or just go into each dr occ/ros/adm/make/XXX and type 'make')
- then
make install
(or just go into each dir occ/ros/adm/make/XXX and type 'make install')
*************************************************************************
MINGW: too many patches to list here:
1) export CC="gcc -mno-cygwin -DWNT=1 -DWIN32"
export CXX="g++ -mno-cygwin -DWNT=1 -DWIN32"
2) fix all OSD_* routines that throw MSVC-specific expcetions (__try,
__finally, etc.) using #defines
3) fix dllimport/dllexport #defines on the fly when the compiler complains
I will try to consolidate all these patches in a single one and submit
it to the OCC folks, but it's not easy: we must first find a way to
uniquelyidentify gcc on mingw
*************************************************************************
APPLE:
1) add dummy "malloc.h" in inc/
2) comment out 'uname' stuff in OSD/OSD_Path.cxx
#else
/*
struct utsname info;
uname(&info);
cout << info.sysname << endl;
cout << info.nodename << endl;
cout << info.release << endl;
cout << info.version << endl;
cout << info.machine << endl;
*/
return OSD_Default;
}
3) IMPORTANT (mmap crashes): add this in Standard/Standard.cxx
#if defined(__APPLE__)
bMMap = atoi("0");
#else
bMMap = atoi((var = getenv("MMGT_MMAP" )) ? var : "1" );
#endif
*************************************************************************
PS: to strip static libaries of debug symbols, use "strip -S *.a"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment