LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   FreeCAD Slackwarex64 -Current can't open libTKFillet (https://www.linuxquestions.org/questions/slackware-14/freecad-slackwarex64-current-cant-open-libtkfillet-4175582458/)

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

Code:

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

I used the -current Slackbuilds https://github.com/Ponce/slackbuilds

I found this http://forum.freecadweb.org/viewtopic.php?t=13646

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 http://www.linuxquestions.org/questi...ls-4175561999/ 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...
Code:

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

Code:

root@darkstar:/# ls /opt/OpenCASCADE/lib64/libTKFillet*
/opt/OpenCASCADE/lib64/libTKFillet.la*
/opt/OpenCASCADE/lib64/libTKFillet.so@
/opt/OpenCASCADE/lib64/libTKFillet.so.0@
/opt/OpenCASCADE/lib64/libTKFillet.so.0.0.0*


bassmadrigal 06-16-2016 07:57 PM

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

http://www.opencascade.com/doc/occt-..._tkfillet.html

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/ld.so.conf to have it available at run time.

FWIW, I think that editing /etc/ld.so.conf 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/ld.so.conf, 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:
Code:

#!/bin/sh
export LD_LIBRARY_PATH=/opt/OpenCASCADE/lib64:$LD_LIBRARY_PATH
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 https://github.com/saxa/slackbuilds/...uild-order.txt
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

Quote:

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.

https://www.freecadweb.org/wiki/FEM_Install


All times are GMT -5. The time now is 07:13 AM.