Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

Cura Build Environment fails to compile on M1. #97

Open lbibass opened 3 years ago

lbibass commented 3 years ago

it seems to have something to do with some of the dependencies not knowing what to do with an ARM64 architecture.


  "___chkstk_darwin", referenced from:
      _sgemv_ in libopenblasp-r0.3.13.a(sgemv.o)
      _sger_ in libopenblasp-r0.3.13.a(sger.o)
      _cblas_sgemv in libopenblasp-r0.3.13.a(cblas_sgemv.o)
      _cblas_sger in libopenblasp-r0.3.13.a(cblas_sger.o)
      _dgemv_ in libopenblasp-r0.3.13.a(dgemv.o)
      _dger_ in libopenblasp-r0.3.13.a(dger.o)
      _cblas_dgemv in libopenblasp-r0.3.13.a(cblas_dgemv.o)
      ...
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make[4]: *** [libopenblasp-r0.3.13.dylib] Error 1
make[3]: *** [shared] Error 2
make[2]: *** [OpenBLAS-prefix/src/OpenBLAS-stamp/OpenBLAS-build] Error 2
make[1]: *** [CMakeFiles/OpenBLAS.dir/all] Error 2```

It's usually errors like these. 
Ghostkeeper commented 3 years ago

We currently can't support M1, since Qt doesn't support M1 yet. Sorry!

We compile Cura on Catalina at the moment.

lbibass commented 3 years ago

how about now? Qt supports the M1 now.

nallath commented 3 years ago

how about now? Qt supports the M1 now.

Version 6.2 does, we are on 5.15.2

Ghostkeeper commented 3 years ago

Python needs to be upgraded too, since M1 support starts from 3.9.

A few problematic incompatibilities with this Qt upgrade are:

Ghostkeeper commented 3 years ago

Oh, and also PyQt6 is still on Qt 6.1. We'll need them to support Qt 6.2 too!