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.

attempting to build netgen from git source using cmake with occ (opencascade)

More
2 years 6 months ago #4036 by ipatch
i'm attempting to build netgen from git source using cmake with occ support but i keep seeing errors in the `CMakeCache.txt` after running cmake to setup netgen for build.

the cmake command i'm using is,

```
cmake \
-DCMAKE_PREFIX_PATH="$bp/Cellar/opencascade/7.5.3/lib/cmake" \
-DUSE_OCC:BOOL=ON \
--graphviz=/opt/code/ltmp/netgen-deps/netgen.graphviz.dep \
-DCMAKE_INSTALL_PREFIX=/opt/beta/netgen ../netgen-src
```

and when i view the `CMakeCache.txt` file in the build dir i see something like the below snippet inside the file,


```
//enable mpi4py interface
USE_MPI4PY:BOOL=ON

//build for native cpu architecture
USE_NATIVE_ARCH:BOOL=ON

//compile with NUMA-aware code
USE_NUMA:BOOL=OFF

//(not supported) compile with OpenCascade geometry kernel
USE_OCC:BOOL=ON

//build with python interface
USE_PYTHON:BOOL=ON

//Enable spd log logging
USE_SPDLOG:BOOL=OFF
```

and looking over the netgen documentation for cmake flags i see,

docu.ngsolve.org/latest/install/cmakeoptions.html

what am i doing wrong here?
More
2 years 6 months ago #4039 by mrambausek
Hi ipatch,

you may try to install `libocct-data-exchange-dev` and `libocct-draw-dev`. Helped in my case.

Best,
Matthias R
More
2 years 6 months ago #4042 by ipatch
thanks for the suggestion, but unfortunately those packages look like their for a debian based distro, and i'm attempting to setup netgen on a macos box.
Time to create page: 0.120 seconds