Hello Netgen team
In FreeCAD we have implemented meshing via the Netgen Python bindigns. Everything works fine, but some users have reported problems with the pip package.
In my case, I reproduce the error by installing the package in a virtual environment:
mkdir virtual_env # create virtual environment directory
python3 -m venv virtual_env # create virtual env
cd virtual_env/bin # move to virtual env
./pip install netgen-mesher # install netgen mesher for the venv
./python3 # run python interpreter
import netgen # -> Illegal instruction!
I’ve also noticed that *.so shared objects have unresolved dependencies for all OCC libraries:
ldd ./lib/python3.11/site-packages/netgen/libngpy.so
....
libTKOffset.so.7.8.1 => not found
libTKFillet.so.7.8.1 => not found
etc
....
I’ve also tried installing the pip package in a conda environment and forcing pip to install to /usr/local but I get the same error.
For some other users the pip package works fine.