You are not logged in.

#1 2021-12-27 13:13:44

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

[solved] Freecad-git does not find libtbb.so.2

The error was not coming from freecad itself. It was solved by rebuilding opencascade-git.

-------------

Hi,

I did a system update and later I rebuilt freecad-git from scratch (makepkg -Cfi). All the building went fine.
However now at runtime freecad looks for libtbb.so.2 instead of libtbb.so.12 from extra->tbb, and, failing to find it, results basically unusable.

How is it possible that freecad gets configured and linked against a version of the library which is not available on the system?
Any hint about how to correct the issue?

EDIT: the same is happening also with freecad from community:
libtbb.so.2: cannot open shared object file: No such file or directory

Last edited by DarioP (2021-12-27 15:00:06)

Offline

#2 2021-12-27 13:38:20

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: [solved] Freecad-git does not find libtbb.so.2

I managed to temporary fix freecad by downgrading to tbb-2020.3, without recompiling freecad.
I am still very confused by the issue.

Offline

#3 2021-12-27 14:10:34

dtbaumann
Member
Registered: 2015-07-03
Posts: 26

Re: [solved] Freecad-git does not find libtbb.so.2

For what it's worth: it seems that freecad from community is not linked against libtbb.

ldd /usr/bin/freecad|grep tbb

results in just nothing. Maybe a leftover from a previous installation?

pacman -Qs freecad 

local/freecad 0.19.3-11
    General purpose 3D CAD modeler

Online

#4 2021-12-27 14:28:39

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [solved] Freecad-git does not find libtbb.so.2

freecad depends on opencascade which depends on intel-tbb (provided by tbb). Did you forget to update opencascade or needs opencascade to be rebuilt with the new tbb?

Last edited by progandy (2021-12-27 14:35:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#5 2021-12-27 14:38:42

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: [solved] Freecad-git does not find libtbb.so.2

progandy wrote:

freecad depends on opencascade which depends on intel-tbb (provided by tbb). Did you forget to update opencascade or needs opencascade to be rebuilt with the new tbb?

I am running the git version of opencascade and I did forget to rebuild it, I am doing it now. Thanks.

I have just tried the packages in the repo and they look ok.

These nested dependencies are tricky to remember...

Last edited by DarioP (2021-12-27 14:50:26)

Offline

#6 2021-12-27 14:59:24

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [solved] Freecad-git does not find libtbb.so.2

dtbaumann wrote:

For what it's worth: it seems that freecad from community is not linked against libtbb.

The freecad binary is not, its import plugin is.

Offline

Board footer

Powered by FluxBB