Pcbnew does not start - MakeShape symbol not found

Aaaaah, ok…

I interpreted

Failed to load shared library '/usr/bin/_pcbnew.kiface': 
/lib/x86_64-linux-gnu/libTKBO.so.7: undefined symbol: 
_ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange

as:
_pcbnew.kiface needs _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange from /lib/x86_64-linux-gnu/libTKBO.so.7 but cannot find it.”

But if I understand you correctly, what the message meant was:
“In _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange from /lib/x86_64-linux-gnu/libTKBO.so.7, loaded by _pcbnew.kiface, there was an issue: missing symbol”

/lib/x86_64-linux-gnu/libTKBO.so.7 has an undefined symbol _ZN24BRepBuilderAPI_MakeShape5BuildERK21Message_ProgressRange (some code in boolean operations uses BRepBuilderAPI_MakeShape::Build(Message_ProgressRange const&)).

When the dynamic loader loads libTKBO.so.7’s dependency libTKTopAlgo.so.7, it should have resolved that symbol (but the loader doesn’t know that)

Just in case somebody has a similar problem in Ubuntu 24.04 (noble) - the kicad package from the KiCad Ubuntu repository depends on libocct-modeling-algorithms-7.6, whose description says

  This package contains the following shared libraries:
    TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat
    TKMesh TKXMesh TKShHealing

However, this package doesn’t actually contain any shared library files:

$ dpkg -L libocct-modeling-algorithms-7.6
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/share
/usr/share/doc
/usr/share/doc/libocct-modeling-algorithms-7.6
/usr/share/doc/libocct-modeling-algorithms-7.6/changelog.Debian.gz
/usr/share/doc/libocct-modeling-algorithms-7.6/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libocct-modeling-algorithms-7.6

The solution was to install the package libocct-modeling-algorithms-7.6t64 from the standard Ubuntu repository.

I see the shared libs in jammy version from kicad-8.0-releases ppa:

$ dpkg -L libocct-modeling-algorithms-7.6
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libTKBO.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKBool.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKFeat.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKFillet.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKGeomAlgo.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKHLR.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKMesh.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKOffset.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKPrim.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKShHealing.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKTopAlgo.so.7.6.3
/usr/lib/x86_64-linux-gnu/libTKXMesh.so.7.6.3
/usr/share
/usr/share/doc
/usr/share/doc/libocct-modeling-algorithms-7.6
/usr/share/doc/libocct-modeling-algorithms-7.6/changelog.Debian.gz
/usr/share/doc/libocct-modeling-algorithms-7.6/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libocct-modeling-algorithms-7.6
/usr/lib/x86_64-linux-gnu/libTKBO.so.7
/usr/lib/x86_64-linux-gnu/libTKBool.so.7
/usr/lib/x86_64-linux-gnu/libTKFeat.so.7
/usr/lib/x86_64-linux-gnu/libTKFillet.so.7
/usr/lib/x86_64-linux-gnu/libTKGeomAlgo.so.7
/usr/lib/x86_64-linux-gnu/libTKHLR.so.7
/usr/lib/x86_64-linux-gnu/libTKMesh.so.7
/usr/lib/x86_64-linux-gnu/libTKOffset.so.7
/usr/lib/x86_64-linux-gnu/libTKPrim.so.7
/usr/lib/x86_64-linux-gnu/libTKShHealing.so.7
/usr/lib/x86_64-linux-gnu/libTKTopAlgo.so.7
/usr/lib/x86_64-linux-gnu/libTKXMesh.so.7
$ apt show libocct-modeling-algorithms-7.6
Package: libocct-modeling-algorithms-7.6
Version: 1:7.6.3+dfsg1-8~ubuntu22.04.1
Priority: optional
Section: libs
Source: opencascade
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Installed-Size: 21,8 MB
Depends: libc6 (>= 2.33), libgcc-s1 (>= 3.3.1), libocct-foundation-7.6 (>= 1:7.6.3+dfsg1), libocct-modeling-data-7.6 (>= 1:7.6.3+dfsg1), libstdc++6 (>= 11)
Breaks: libocct-modeling-algorithms-7.4, libocct-modeling-algorithms-7.5
Replaces: libocct-modeling-algorithms-7.4, libocct-modeling-algorithms-7.5
Download-Size: 7 109 kB
APT-Manual-Installed: yes
APT-Sources: https://ppa.launchpadcontent.net/kicad/kicad-8.0-releases/ubuntu jammy/main amd64 Packages
Description: Open CASCADE Technology geometrical & topological algorithms module
 Open CASCADE Technology is a suite for 3D surface and solid modeling,
 visualization, data exchange and rapid application development.  It is an
 excellent platform for development of numerical simulation software including
 CAD/CAM/CAE, AEC and GIS, as well as PDM applications.
 .
 This package contains the following shared libraries:
 TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat
 TKMesh TKXMesh TKShHealing

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.