Hello,
I have the problem that libnglib is not found by the mesh-workbench at runtime. CMake finds netgen and it compiles fine.
libnglib not found at runtime
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: libnglib not found at runtime
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: libnglib not found at runtime
Most likely the issue is that libnglib.so is located in a directory that is not listed in ld.so.conf. For example, often it is installed under /opt.
To solve the issue you have two possibilities:
* set the environment variable LD_LIBRARY_PATH pointing to the directory where the library is located
* add an entry to /etc/ld.so.conf and update the cache
See:
http://archive.linuxfromscratch.org/lfs ... x2141.html
http://man7.org/linux/man-pages/man8/ldconfig.8.html
Re: libnglib not found at runtime
Are you running debian?
I reported that already: https://bugs.debian.org/cgi-bin/bugrepo ... bug=924300
I reported that already: https://bugs.debian.org/cgi-bin/bugrepo ... bug=924300
Re: libnglib not found at runtime
Yes. That’s the problem. But I’m not sure the Problem is on the debian side...reox wrote: ↑Fri Feb 14, 2020 7:42 pm Are you running debian?
I reported that already: https://bugs.debian.org/cgi-bin/bugrepo ... bug=924300
Re: libnglib not found at runtime
I would say so, as debian configures where to put the header files.rynn wrote: ↑Sun Feb 16, 2020 7:01 pmYes. That’s the problem. But I’m not sure the Problem is on the debian side...reox wrote: ↑Fri Feb 14, 2020 7:42 pm Are you running debian?
I reported that already: https://bugs.debian.org/cgi-bin/bugrepo ... bug=924300
But if you have any other information please put them into the bugreport
Re: libnglib not found at runtime
Today I run into the same problem on Ubuntu Mate 20.04.1 LTS while exporting my build to *.stl for printing.
The problem FeeCAD package does not install libnglib.so by default, do a
But as libnglib is installed in sub directory "/usr/lib/x86_64-linux-gnu/netgen/" but FreeCAD looks in "/usr/lib", you must do a
This way all *.so files in "/usr/lib/x86_64-linux-gnu/netgen/" becomes symlinks in "/usr/lib", restart FreeCAD and your'e good to go.
My current system:
My current kernel:
The problem FeeCAD package does not install libnglib.so by default, do a
Code: Select all
sudo apt-get install libnglib-6.2.1804
Code: Select all
sudo ln -s /usr/lib/x86_64-linux-gnu/netgen/*.so /usr/lib/
My current system:
Code: Select all
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Code: Select all
Linux main-pc 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Re: libnglib not found at runtime
That’s probably a CMake-problem. The directory that contains libnglib should be added to the rpath¹ of the executable.
__________
¹ https://en.wikipedia.org/wiki/Rpath
__________
¹ https://en.wikipedia.org/wiki/Rpath