LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2016, 06:15 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackware 14.2, SlackwareArm-current
Posts: 1,217
Blog Entries: 4

Rep: Reputation: 183Reputation: 183
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.

Last edited by enine; 06-16-2016 at 06:17 PM.
 
Old 06-16-2016, 06:38 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,972

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
Did you built FreeCAD only or rebuilt every deps as well?
 
Old 06-16-2016, 07:25 PM   #3
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackware 14.2, SlackwareArm-current
Posts: 1,217

Original Poster
Blog Entries: 4

Rep: Reputation: 183Reputation: 183
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.
 
Old 06-16-2016, 07:32 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,265

Rep: Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626
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.
 
Old 06-16-2016, 07:41 PM   #5
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackware 14.2, SlackwareArm-current
Posts: 1,217

Original Poster
Blog Entries: 4

Rep: Reputation: 183Reputation: 183
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*

Last edited by enine; 06-16-2016 at 07:55 PM.
 
Old 06-16-2016, 07:57 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,950

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

http://www.opencascade.com/doc/occt-..._tkfillet.html
 
Old 06-16-2016, 08:05 PM   #7
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackware 14.2, SlackwareArm-current
Posts: 1,217

Original Poster
Blog Entries: 4

Rep: Reputation: 183Reputation: 183
Yea, I found it under opencascade.
 
Old 06-16-2016, 10:27 PM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,265

Rep: Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626Reputation: 1626
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.
 
Old 06-17-2016, 06:44 AM   #9
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.

Last edited by 55020; 06-17-2016 at 07:08 AM. Reason: #CanHazWrapperScript
 
1 members found this post helpful.
Old 06-17-2016, 03:57 PM   #10
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackware 14.2, SlackwareArm-current
Posts: 1,217

Original Poster
Blog Entries: 4

Rep: Reputation: 183Reputation: 183
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
 
Old 06-17-2016, 10:02 PM   #11
saxa
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 458

Rep: Reputation: 49
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.
 
Old 08-30-2018, 09:35 AM   #12
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Rep: Reputation: Disabled
I just ran into this after updating OpenCASCADE. After rebuilding FreeCAD, the issue went away.
 
Old 08-30-2018, 10:06 AM   #13
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 563

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Could it be possible to have the FEM module working?
I think it needs some other packages like netgen and/or GMSH and calculix?
 
Old 08-30-2018, 11:22 AM   #14
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to compile FreeCAD unstable 0.14 ? brodo Slackware 6 05-16-2014 04:09 AM
installing FreeCAD qrange Debian 3 07-28-2011 07:50 AM
[SOLVED] freecad slackbuild doesn't work darksaurian Slackware 14 04-11-2011 03:10 AM
[SOLVED] Trying to compile FreeCAD SVN on 64-13.1 ahmadj Slackware 11 12-26-2010 09:58 AM
FreeCAD Illegal storage access Linux.tar.gz Linux - Software 6 09-26-2010 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration