- Thank you received: 0
Installing NetGen/Ngsolve in a mac with OCC support.
7 years 1 month ago #201
by Teixeira
Installing NetGen/Ngsolve in a mac with OCC support. was created by Teixeira
I have been trying to add OCC support to my Mac Os in NetGen but until now I keep failing.
I am currently using the following configuration:
cmake ~/NetGen/ngsolve-src \
-USE_OCC=ON \
-USE_GUI=ON \
-USE_JPEG=ON \
-USE_MPI=ON \
-USE_MPEG=ON
but I keep getting:
Enabled functionality:
OCC: ............... OFF
JPEGlib: ........... OFF
FFMPEG: ............ OFF
GUI: ............... ON
MPI: ............... OFF
PYTHON: ............ ON
Is OCC integration available in Mac OS or not? If so how can I configure it correctly to compile with OCCt support.
I am currently using the following configuration:
cmake ~/NetGen/ngsolve-src \
-USE_OCC=ON \
-USE_GUI=ON \
-USE_JPEG=ON \
-USE_MPI=ON \
-USE_MPEG=ON
but I keep getting:
Enabled functionality:
OCC: ............... OFF
JPEGlib: ........... OFF
FFMPEG: ............ OFF
GUI: ............... ON
MPI: ............... OFF
PYTHON: ............ ON
Is OCC integration available in Mac OS or not? If so how can I configure it correctly to compile with OCCt support.
7 years 1 month ago #202
by cwinters
Replied by cwinters on topic Installing NetGen/Ngsolve in a mac with OCC support.
Hi,
if you want set one of the cmake options, you have to put a "D" in front such that cmake knows it's a define flag. So none of your flags was used and you got the default configuration.
Here is a (probably not complete) list of cmake options you can use to configure Netgen/NGSolve.
As you see in the list of cmake options, OCC support is not tested on MacOS. I just installed homebrew and oce (using homebrew) and it seems to work. After installing homebrew, the following command should install oce.
Then you should be able to configure with OCC support.
Concerning the other flags you used:
Regards,
Christoph
if you want set one of the cmake options, you have to put a "D" in front such that cmake knows it's a define flag. So none of your flags was used and you got the default configuration.
Here is a (probably not complete) list of cmake options you can use to configure Netgen/NGSolve.
As you see in the list of cmake options, OCC support is not tested on MacOS. I just installed homebrew and oce (using homebrew) and it seems to work. After installing homebrew, the following command should install oce.
Code:
brew tap homebrew/science && brew install oce
Code:
cmake ~/NetGen/ngsolve-src -DUSE_OCC=ON
- USE_GUI: is ON by default
- USE_JPEG: needed to export screenshots of the solution
- USE_MPI: you are probably working on a desktop machine, so you don't need MPI
- USE_MPEG: you just need that to export videos
Regards,
Christoph
Time to create page: 0.113 seconds