If built against opencascade-7.8.0, librepcb-1.0.0 fails with the following error: ld: error: unable to find library -lTKXDESTEP c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error code 1
Approved. Please commit it.
Issue reported: <https://github.com/LibrePCB/LibrePCB/issues/1315>.
A patch has been submitted upstream: see <https://github.com/LibrePCB/LibrePCB/pull/1329>.
See <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277312>: LibrePCB is now patched and builds fine with OpenCascade 7.8.0, but it crashes when opening a STEP file. This bug is in OpenCascade, it has been reported, and we are waiting for a fix.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b7bc96ccb10409807aa1c39cf7dd3a7436476db0 commit b7bc96ccb10409807aa1c39cf7dd3a7436476db0 Author: Thierry Thomas <thierry@FreeBSD.org> AuthorDate: 2024-03-17 16:36:42 +0000 Commit: Thierry Thomas <thierry@FreeBSD.org> CommitDate: 2024-03-21 18:01:18 +0000 cad/librepcb: add support of OpenCascade Patch from upstream, slightly modified because cad/opencascade has been fixed against the reported crash. PR: 277312 Approved by: yuri (maintainer) cad/librepcb/Makefile | 1 + .../files/patch-cmake_FindOpenCascade.cmake (new) | 39 ++++++++++++++++++++++ 2 files changed, 40 insertions(+)
Committed, thanks!