-   Slackware (
-   -   FreeCAD Slackwarex64 -Current can't open libTKFillet (

enine 06-16-2016 06:15 PM

FreeCAD Slackwarex64 -Current can't open libTKFillet
I built FreeCAD on my x64 -current box today and am getting the following


Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/opt/FreeCAD/Mod/Draft/", line 45, in <module>
    import sys, FreeCAD, os, Part, math, re, string, Mesh, Draft, DraftVecUtils, DraftGeomUtils
ImportError: cannot open shared object file: No such file or directory

I used the -current Slackbuilds

I found this

But looking at the date/time on the packages I see that I built VTK before opencascade so the fix there doesn't seem to be my problem.

I didn't post because the build works fine. Its when I tried to open a file I get the erorr.

willysr 06-16-2016 06:38 PM

Did you built FreeCAD only or rebuilt every deps as well?

enine 06-16-2016 07:25 PM

I built all the deps. Its a clean install of -current, burned an iso a week or so ago and put a new ssd in and did a fresh install. So there wasn't any old deps, all were built new.

Richard Cranium 06-16-2016 07:32 PM

So, what is the output of...

ls -l /usr/lib64/libTKFillet*

EDIT: I intend to run FreeCAD on this system when I upgrade to 14.2, so I'm curious about the fix.

enine 06-16-2016 07:41 PM

Hmm, not found. I thought it was part of one of the packages I built so where did it go.
Am I right that its part of VTK

here it is


root@darkstar:/# ls /opt/OpenCASCADE/lib64/libTKFillet*

bassmadrigal 06-16-2016 07:57 PM

Based on a quick Google search, it seems like it should be a part of OpenCASCADE.

enine 06-16-2016 08:05 PM

Yea, I found it under opencascade.

Richard Cranium 06-16-2016 10:27 PM

I rather suspect, in that case, that either the cmake build for FreeCAD needs to be told where to find it or you can edit /etc/ to have it available at run time.

FWIW, I think that editing /etc/ would be the wrong thing to do.

55020 06-17-2016 06:44 AM

Hi enine, thanks for the very useful report, I can reproduce it easily here, sorry for the cockup :(

I recognise the essential truth of what Mr Cranium says about /etc/, but adding /opt/OpenCASCADE/lib64 may be a relatively clean solution, since FreeCAD does not use a wrapper script.

Alternatively, I could write a trivial wrapper script.

Yeah, ok, I'll write a wrapper script.

Edit: wrote a wrapper script.

Quick and dirty, you can remove the symlink /usr/bin/FreeCAD, and put this script at that location, and make it executable:

exec /opt/FreeCAD/bin/FreeCAD "$@"

I'll push a new FreeCAD build to SBo git master soon.

enine 06-17-2016 03:57 PM

Thanks, 55020. This is why I made the Open Source switch years ago. I still have tickets with Microsoft for bugs I reported in server 2003

Only minor issue, if I just run FreeCAD it errors, I have to specify /usr/bin/FreeCAD to run your wrapper. Apparently FreeCAD is elsewhere in the path getting found first.

Off to try printing my son a Google Cardboard

saxa 06-17-2016 10:02 PM

Try to see here if it cankarjeva help
But i think you have to configure correctly opencascade.

PROBLEMCHYLD 08-30-2018 09:35 AM

I just ran into this after updating OpenCASCADE. After rebuilding FreeCAD, the issue went away.

nobodino 08-30-2018 10:06 AM

Could it be possible to have the FEM module working?
I think it needs some other packages like netgen and/or GMSH and calculix?

PROBLEMCHYLD 08-30-2018 11:22 AM


Originally Posted by nobodino (Post 5897982)
Could it be possible to have the FEM module working?
I think it needs some other packages like netgen and/or GMSH and calculix?

I believe so.

All times are GMT -5. The time now is 10:34 AM.