ellenhp / bambu-farm

Self-hostable Bambu Cloud alternative
GNU Affero General Public License v3.0
132 stars 9 forks source link

[WIP] Build support for Apple Silicon - Mac #9

Open tdgunes opened 5 months ago

tdgunes commented 5 months ago

Hi there,

I wanted to share my attempt for those who may be interested in building this project in Mac OS X Apple Silicon environment. Although, I failed to use this library with OrcaSlicer, as I couldn't stop OrcaSlicer to redownload the original libraries, this may be a good starting point for others.

ellenhp commented 5 months ago

Very cool. I think you may be running into the bug in #6.

Maybe try updating this line: https://github.com/ellenhp/bambu-farm/blob/main/bambu-farm-client/cpp/bambu_networking.hpp#L87

You'll need to pull the version string from whichever version of OrcaSlicer you're using. It's frankly ridiculous that they (Bambu Studio, and therefore downstream projects too) re-download the closed source binaries without asking if it doesn't match.

tdgunes commented 5 months ago

Thanks, this actually worked (will be updating the PR soon), however since I have A1, I need to figure out how to support A1 (should be similar to P1P one.).

It's frankly ridiculous that they (Bambu Studio, and therefore downstream projects too) re-download the closed source binaries without asking if it doesn't match.

I agree! Seems like a PR is needed for OrcaSlicer for this.

tdgunes commented 5 months ago

With the latest changes, it worked!

Screenshot 2024-06-02 at 12 14 55

tdgunes commented 5 months ago

For others, who want to try: I had issues sending a print, and got an SD card error (claiming that my SD card is full, which is not). I will document further once I have more time.