Thanks for all the answers!
waebbl wrote: ↑Sat Sep 24, 2022 8:32 am
You give very little input about when the error pops up. Were you using a specific workbench?
True. This occur when i start FreeCAD and load the Workbenches via autoload (start preferences), load it per hand in the preferences or change the workbenches. So the problem seems to be TechDraw.so and Fem.so (i load all WB at start, so this 2 are the only problematic SO).
waebbl wrote: ↑Sat Sep 24, 2022 8:32 am
Have you checked the file types of the both files and ran lddtree on the FreeCAD libraries which link against these libs? IMO the libraries should be symlinks, so check the file types of the link targets as well.
lddtree does not work for me, only
ldd. This is not really useful since it does not work on runtime since the WB loads afterwards. The files are sysmlinks and get in the end to the correct SO.
When do
i get
Code: Select all
libTKCAF.so.7 => not found
libTKVCAF.so.7 => not found
libTKV3d.so.7 => not found
libTKService.so.7 => not found
libTKCAF.so.7 => not found
libTKCDF.so.7 => not found
libTKCDF.so.7 => not found
and when i do
i get
Code: Select all
libTKV3d.so.7 => not found
libTKService.so.7 => not found
(only missing mentioned).
All found SO are in
/usr/local/lib/. But the not found SO are in
/usr/local/lib/. This is weird (at least for me).
waebbl wrote: ↑Sat Sep 24, 2022 8:32 am
Also the linker settings (-Wl,) flags could give some insight.
Gives not really insight, maybe i am using it incorrect.
waebbl wrote: ↑Sat Sep 24, 2022 8:32 am
Are you using external smesh?
No. I have installed it, but cmake takes the correct internal smesh. Also TechDraw needs no smesh and the Mesh WB also have no issue.
mfro wrote: ↑Sat Sep 24, 2022 11:21 am
Are they existing in a path that's known to ld.so (/etc/ld.so.conf / /etc/ld.so.conf.d)?
Yes,
/usr/local/lib.
wmayer wrote: ↑Sat Sep 24, 2022 8:44 am
In which directory are the OCCT libs located?
/usr/local/lib
vm4dim wrote: ↑Sat Sep 24, 2022 9:41 am
I would compare the search result:
find /usr -iname '*TKV3d*'
find /usr -iname '*TKCAF*'
Code: Select all
/usr/local/lib/libTKV3d.so
/usr/local/lib/libTKV3d.so.7.6.3
/usr/local/lib/libTKV3d.so.7
/usr/local/lib/libTKCAF.so.7.6.3
/usr/local/lib/libTKCAF.so.7
/usr/local/lib/libTKCAF.so
vm4dim wrote: ↑Sat Sep 24, 2022 9:41 am
and search result other TK*
find /usr -iname '*TKernel*'
find /usr -iname '*TKMath*'
Code: Select all
/usr/share/texlive/texmf-dist/tex/generic/xint/xintkernel.sty
/usr/local/lib/libTKernel.so.7.6.3
/usr/local/lib/libTKernel.so
/usr/local/lib/libTKernel.so.7
/usr/local/lib/libTKMath.so.7
/usr/local/lib/libTKMath.so
/usr/local/lib/libTKMath.so.7.6.3
/usr/include/vtk-9.0/vtkMathConfigure.h
/usr/include/vtk-9.0/vtkMathTextFreeTypeTextRenderer.h
/usr/include/vtk-9.0/vtkMath.h
/usr/include/vtk-9.0/vtkMathTextUtilities.h
/usr/include/vtk-9.0/vtkMathUtilities.h
Just in case, while writng this post, i found the program for
lbbtree. The odd thing is when i do here
lddtree TechDraw.so and lddtree
Fem.so, the SO are found. For example a part of the output:
Code: Select all
.....
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /home/user/Programs/FreeCADmaster/build/Mod/Import/Import.so
libTKIGES.so.7 => /usr/local/lib/libTKIGES.so.7
libTKXSBase.so.7 => /usr/local/lib/libTKXSBase.so.7
libTKXCAF.so.7 => /usr/local/lib/libTKXCAF.so.7
libTKVCAF.so.7 => /usr/local/lib/libTKVCAF.so.7
libTKV3d.so.7 => /usr/local/lib/libTKV3d.so.7
libTKService.so.7 => /usr/local/lib/libTKService.so.7
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6
As far as a know, there was one a time a similar problem,
https://forum.freecad.org/viewtopic.php ... 5&start=30.
Just a few thoughts: a few days/(maybe weeks?) i compiled FreeCAD with OCCT7.4.0 because to test a regression and i generally have more then one build (development/toponaming, some test branches, .....). But inbetween i compiled FreeCAD with OCCT7.6.3 and used TechDraw. So i thought, maybe somehow FreeCAD while opening for example TechDraw.so it found a testbranch TechDraw SO with the incorrect paths. But i deleted all branches and made everything from the scratch again, so this could not be the case.
Anyway, i am running out of time and can only maybe tomorrow or next weekend. Inbetween i will not have access to a/the computer.
Thanks for all folks!
Greetings
user1234