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
b4e437b4
Commit
b4e437b4
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
beb9d79b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.occ
+46
-17
46 additions, 17 deletions
doc/README.occ
with
46 additions
and
17 deletions
doc/README.occ
+
46
−
17
View file @
b4e437b4
How to build OpenCascade 6.2 for Gmsh:
How to build OpenCascade 6.2
(OCC)
for Gmsh:
- get the linux (source) distribution of occ
- Get the linux (source) distribution of OCC and unpack it. In the
following <OpenCascade dir> refers to the directory where OCC is
installed (e.g ~/OpenCascade)
-
i
f you're using Cygwin/Mingw32 (Windows) define
-
I
f you're using Cygwin/Mingw32 (Windows) define
export CC="gcc -mno-cygwin -DWNT=1 -DWIN32 -DHAVE_NO_DLL"
export CXX="g++ -mno-cygwin -DWNT=1 -DWIN32 -DHAVE_NO_DLL"
-
w
ith new versions of gcc, add "-ffriend-injection
" to the compiler
options (this prevents the "Standard_Transient_Type_
not declared"
error)
-
W
ith new versions of gcc, add "-ffriend-injection
-fpermissive" to
the compiler
options (this prevents the "Standard_Transient_Type_
not declared" error), i.e., define
- go to the ros/ directory and type
export CXXFLAGS="${CXXFLAGS} -ffriend-injection -fpermissive"
- Go to the <OpenCascade dir>/Linux/ros directory and type
./configure --prefix=/usr/local/opencascade --enable-debug=no
--enable-production=yes --enable-static=yes --enable-shared=no
--disable-dependency-tracking
- then go to the adm/make/ directory and run
- Then go to the <OpenCascade dir>/Linux/ros/adm/make/ directory and
run "make" in the following subdirectories, e.g. by running the
following bash script:
#!/bin/bash
for lib in TKernel TKMath TKAdvTools TKG2d TKG3d TKGeomBase TKBRep
TKGeomAlgo TKTopAlgo TKPrim TKBO TKHLR TKMesh TKShHealing TKBool
TKFillet TKFeat TKOffset TKXSBase TKIGES TKSTEPBase TKSTEPAttr
...
...
@@ -27,15 +34,14 @@ How to build OpenCascade 6.2 for Gmsh:
cd $lib && make; cd ..;
done
(This is the same as doing
make FoundationClasses
make ModelingData
make ModelingAlgorithms
and part of
make DataExchange)
Note that this is the same as doing "make FoundationClasses", "make
ModelingData", "make ModelingAlgorithms" and part of "make
DataExchange"
- and finally do
- Finally, run this other bash script in the same directory (to install
the libraries)
#!/bin/bash
for lib in TKernel TKMath TKAdvTools TKG2d TKG3d TKGeomBase TKBRep
TKGeomAlgo TKTopAlgo TKPrim TKBO TKHLR TKMesh TKShHealing TKBool
TKFillet TKFeat TKOffset TKXSBase TKIGES TKSTEPBase TKSTEPAttr
...
...
@@ -43,6 +49,29 @@ How to build OpenCascade 6.2 for Gmsh:
cd $lib && make install; cd ..;
done
and copy config.h and inc/ to /usr/local/opencascade (This is the
same as a doing a partial 'make install')
and copy config.h and the <OpenCascade dir>/Linux/ros/inc/ subdirectory
to /usr/local/opencascade (This is the same as a doing a partial
'make install')
OpenCascade is now installed and ready to be used by Gmsh. To compile
Gmsh with OpenCascade support:
- Go to the gmsh source directory
- Run "./configure --enable-occ --with-occ-prefix=/usr/local/opencascade" and
then "make"
- If you get errors like
undefined reference to `pthread_create'
undefined reference to `pthread_detach'
...
edit the "variables" file and add "-pthread" to the OPTIM variable, e.g.:
OPTIM="-g -O2 -pthread"
and run make again
- If compiling is successful then you are done and you can enjoy
importing IGES/STEP/BREP files into Gmsh!
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