Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Installing NetGen/Ngsolve in a mac with OCC support.

More
6 years 6 months ago #201 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.
More
6 years 6 months ago #202 by cwinters
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.
Code:
brew tap homebrew/science && brew install oce
Then you should be able to configure with OCC support.
Code:
cmake ~/NetGen/ngsolve-src -DUSE_OCC=ON
Concerning the other flags you used:
  • 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
For the beginning I advice to take the default values. If you need the features you can bother about installing the dependencies.

Regards,
Christoph
More
6 years 6 months ago #203 by Teixeira
Thanks Christoph! That was exactly the information I was looking for. It will help a lot.
Time to create page: 0.103 seconds