Compile w/Py3 & Qt5 for Dummies

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Compile w/Py3 & Qt5 for Dummies

Post by looo »

Was the netgen-package updated in ubuntu 18.04? I have problems with updating netgen:

Code: Select all

libnglib-dev: Depends: libnglib-6.2.1807 (= 6.2.1807+dfsg1-0ppa3~ubuntu18.04) aber es ist nicht installiert
netgen: Depends: libnglib-6.2.1807 (= 6.2.1807+dfsg1-0ppa3~ubuntu18.04) aber es ist nicht installiert
        Depends: libgcc1 (>= 1:3.0) aber 1:8.2.0-1ubuntu2~18.04 ist bereits installiert
        Depends: libtcl8.6 (>= 8.6.0) aber 8.6.8+dfsg-3 ist bereits installiert
        Depends: libtk8.6 (>= 8.6.0) aber 8.6.8-4 ist bereits installiert
User avatar
kkremitzki
Veteran
Posts: 2509
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Compile w/Py3 & Qt5 for Dummies

Post by kkremitzki »

What apt command are you getting that error message from btw?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Compile w/Py3 & Qt5 for Dummies

Post by looo »

kkremitzki wrote: Wed Feb 20, 2019 9:01 pm What apt command are you getting that error message from btw?
It was from "apt-get upgrade". A "apt-get --fix-broken install" seems to fixed it now.
User avatar
kkremitzki
Veteran
Posts: 2509
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Compile w/Py3 & Qt5 for Dummies

Post by kkremitzki »

Ah, OK, great. I was going to suggest sudo apt install -f as a fix but wanted to get more context first.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
kkremitzki
Veteran
Posts: 2509
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Compile w/Py3 & Qt5 for Dummies

Post by kkremitzki »

BTW, I have an updated netgen 6.2.1810 package I still need to upload to the PPAs.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Compile w/Py3 & Qt5 for Dummies

Post by reox »

today I tried to build with netgen support, but I noticed that I would get this error message when switching into the FEM workbench:

Code: Select all

libnglib.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "<string>", line 45, in Initialize
the error would go away if I used:

Code: Select all

LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/netgen/:$LD_LIRBARY_PATH freecad
It looks like that libnglib.so is also not listed by ldconfig -p.
I would guess, that the problem is, that no symlinks from /usr/lib/x86_64-linux-gnu/netgen/ to /usr/lib/x86_64-linux-gnu are provided, thus ldconfig does not search for the library?

I'm using netgen from debian sid:

Code: Select all

ii  libnglib-6.2.1804:amd64 6.2.1804+dfsg1-2 amd64        Automatic 3d tetrahedral mesh generator shared library
ii  libnglib-dev            6.2.1804+dfsg1-2 amd64        Automatic 3d tetrahedral mesh generator development files
ii  netgen         6.2.1804+dfsg1-2 amd64        Automatic 3d tetrahedral mesh generator
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Compile w/Py3 & Qt5 for Dummies

Post by reox »

kkremitzki wrote: Fri Feb 22, 2019 6:07 pm ping
I think the netgen package in debian should either provide a /etc/ld.conf.d/netgen.conf or symlink the .so files to /usr/lib/$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) so they are found by ldconfig.
wmayer
Founder
Posts: 20202
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compile w/Py3 & Qt5 for Dummies

Post by wmayer »

looo wrote: Sat Feb 09, 2019 10:25 am Somehow I am missing /usr/lib/python3.6/site-packages/shiboken2.<cpython....>.so
Today I was installing an Ubuntu LTS version in a virtualbox environment and I ran into the same problem. I have installed the corresponding packages of the PPA and I can confirm that this file is still missing.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Compile w/Py3 & Qt5 for Dummies

Post by triplus »

Post Reply