superslicer-prerelease/0004-fix-opencascade-version-check.patch
Dominic 2b9cd5ceb7
Try to update to 2.5.60.0-1
Currently fails to launch with
$ superslicer
superslicer: symbol lookup error: superslicer: undefined symbol: _ZN3tbb6detail2r127get_thread_reference_vertexEPNS0_2d126wait_tree_vertex_interfaceE
2024-11-20 14:28:13 +01:00

18 lines
643 B
Diff

https://github.com/supermerill/SuperSlicer/issues/3912#issuecomment-1675135988
--- src/occt_wrapper/CMakeLists.txt.bak 2024-11-20 13:23:45.624527309 +0100
+++ src/occt_wrapper/CMakeLists.txt 2024-11-20 13:23:56.347478724 +0100
@@ -19,7 +19,12 @@
generate_export_header(OCCTWrapper)
-find_package(OpenCASCADE 7.6.2 REQUIRED)
+find_package(OpenCASCADE REQUIRED)
+if (OpenCASCADE_VERSION VERSION_LESS 7.6.2)
+ message(FATAL_ERROR "OpenCASCADE v7 >= v7.6.2 must be used")
+elseif (OpenCASCADE_VERSION VERSION_GREATER_EQUAL 8.0.0)
+ message(FATAL_ERROR "OpenCASCADE v7 >= v7.6.2 must be used")
+endif ()
set(OCCT_LIBS
TKXDESTEP