- Thank you received: 0
attempting to build netgen from git source using cmake with occ (opencascade)
3 years 1 month 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?
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?
- mrambausek
- Offline
- New Member
Less
More
- Thank you received: 3
3 years 1 month ago #4039
by mrambausek
Replied by mrambausek on topic attempting to build netgen from git source using cmake with occ (opencascade)
Hi ipatch,
you may try to install `libocct-data-exchange-dev` and `libocct-draw-dev`. Helped in my case.
Best,
Matthias R
you may try to install `libocct-data-exchange-dev` and `libocct-draw-dev`. Helped in my case.
Best,
Matthias R
3 years 1 month ago #4042
by ipatch
Replied by ipatch on topic attempting to build netgen from git source using cmake with occ (opencascade)
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.097 seconds