Cannot create mesh due to missing libnglib.so

Bug #1866914 reported by Eriks Dobelis
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
freecad (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using 20.04 updated on March 10, 2020. Freecad package 0.18.4+dfsg2-1ubuntu2.

Using Mesh workbench I was trying to create a mesh from solid using "Create mesh from shape..." menu. Using default settings empty mesh was created with no vertices nor edges (solid was not empty). Using python console I tried to `import MeshPart` and got an error message ...libnglib.so not found...

Fix in 2 steps:
1) I had to install libnglib-6.2.1804. As mesh workbench is one of default workbenches of Freecad I suppose it should be a dependency for freecad package.
2) Package installs .so files into /usr/lib/x86_64-linux-gnu/netgen folder and the same error is still produced (even after ldconfig). After I added this folder path to x86_64-linux-gnu.conf and rerun ldconfig, `import MeshPart` works in Freecad's python console, and "Create mesh from shape..." produces usable mesh.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: freecad 0.18.4+dfsg2-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu19
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 10 22:42:58 2020
PackageArchitecture: all
SourcePackage: freecad
UpgradeStatus: Upgraded to focal on 2020-02-16 (23 days ago)
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2014-02-28T14:49:36

Revision history for this message
Eriks Dobelis (eriks00) wrote :
Revision history for this message
StarAurryon (staraurryon) wrote :

Hello,

I confirm the bug on my side.

The package libnglib-6.2.1804 should be set as a dependency for freecad deb.

In addition, I had, like mentioned previously, to:
- Add /usr/lib/x86_64-linux-gnu/netgen to /etc/ld.so.conf.d/x86_64-linux-gnu.conf
- Run sudo ldconfig

Best regards,

Aurryon

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in freecad (Ubuntu):
status: New → Confirmed
Revision history for this message
Wolfgang Wallner (wolfgang-wallner) wrote :

I can confirm this bug on Kubuntu 20.04 with freecad 0.18.4+dfsg2-1ubuntu4 (tested with FreeCAD's Path workbench). The procedure described in the bug report and in post #2 fixes it for me.

regards, Wolfgang

Revision history for this message
Maurizio Scarpa (scarpam72) wrote :

I also faced the same issue (Ubuntu 20.04) and resolved with the procedure described in the bug report

Revision history for this message
daryooosh (daryooosh) wrote :

I also had same problem (fresh install of Ubuntu 20.04) and is resolved with the recipe in original post.

Revision history for this message
Jakub Niemczuk (halogenek) wrote :

I have this problem too on Ubuntu 20.04. Fixed with solution from the bug report.

Revision history for this message
Ponik (ponik) wrote :

On Ubuntu 20.04 I've had same problem and used solution from above.

But on clean installation of Ubuntu 20.10 on same machine creating mesh from shape is working perfectly without any workaround. "Standard" and "Mefisto" options are working, "Netgen" is inactive. libnglib-6.2.1804 is not installed.

Revision history for this message
Nathaniel Jay Stenzel (nathaniel-stenzel) wrote :

This is still a problem with version 0.18.4 on Linux Mint. Maybe it is fixed in 0.19? At any rate, I installed the missing package to fix it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.