Skip to content

Commit

Permalink
libslic3r: include tbb/spin_mutex to fix compilation error
Browse files Browse the repository at this point in the history
PrintObject.cpp references tbb::spin_mutex, thus it needs to include
tbb/spin_mutex. Otherwise compilation fails with:

error: ‘spin_mutex’ is not a member of ‘tbb’

Supersedes #7057
  • Loading branch information
anarsoul committed Nov 16, 2024
1 parent 31be679 commit cf6f79e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions flatpak/io.github.softfever.OrcaSlicer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ modules:
# OrcaSlicer Source Archive
- type: dir
path: ../
- type: patch
path: patches/libslic3r_missing_include.patch

# AppData metainfo for Gnome Software & Co.
- type: file
Expand Down
12 changes: 0 additions & 12 deletions flatpak/patches/libslic3r_missing_include.patch

This file was deleted.

1 change: 1 addition & 0 deletions src/libslic3r/PrintObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <boost/log/trivial.hpp>

#include <tbb/parallel_for.h>
#include <tbb/spin_mutex.h>

#include <Shiny/Shiny.h>

Expand Down

0 comments on commit cf6f79e

Please sign in to comment.