-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: Compilation fails on new SDK #3957
Comments
thanks for doing this are you using the default compile commands following guide did you change some settings? |
I have not changed any settings, no. I tried to change some of the settings (such as setting the C++ version to 11) to see if that did the trick, but no luck there. I believe that this is a side effect of using the SDK for a newer macOS version than the one Bambu Lab is compiled on for testing and distribution. I have not researched this to confirm, but my theory is that the newer SDK has raised the minimum C++ version to 17 and dropped support for C++11 features altogether, and as a result, the currently-frozen version of Boost us unable to compile since it uses C++11 features. I'm currently working on a PR to upgrade Boost and fix some of the other issues I've run into when trying to compile (they are probably all related to C++11 -> C++17). I hope to have it finished and ready for review soon! |
so it should be related with the newer macOS we will prepare an environment with new macos sdk and also tried here thanks |
I've updated this issue to track the upgrade to the new macOS SDK rather than just the Boost compilation failure. I just submitted a draft PR, #3968, which includes the changes I have made so far! |
This issue has been marked as inactive due to no response for 90 days. |
Bambu Studio Version
Local checkout of cfb273c
Where is the application from?
Built from source by yourself or others
OS version
macOS Sonoma 14.4.1
Additional system information
MacBook Pro 16-inch 2021, Apple M1 Max, 64GB RAM
Printer
Bambu X1 Carbon
How to reproduce
When attempting to perform manual compilation of Bambu Studio to attempt to fix a bug, I had issues with the compilation process. (I still am, but I'm slowly working through the issues.)
One issue happens to be with the frozen version of Boost. Boost 1.78 uses
std::piecewise_construct
which has been replaced withstd::piecewise_construct_t
in C++17 -- and in turn, the macOS SDK.Actual results
Expected results
Naturally, the project should have compiled without issue!
I've found that by upgrading to the latest version (at the time of writing) of Boost, Boost 1.85, it compiles just fine. You can apply the following diff to
deps/Boost/Boost.cmake
to fix the issue:Unfortunately, this raises other issues within the code; dependencies might just need to be updated across the board.
Project file & Debug log uploads
Not applicable
Checklist of files to include
The text was updated successfully, but these errors were encountered: