cura-build-environment icon indicating copy to clipboard operation
cura-build-environment copied to clipboard

Cura Build Environment fails to compile on M1.

Open lbibass opened this issue 4 years ago • 5 comments

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. 

lbibass avatar May 08 '21 15:05 lbibass

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

We compile Cura on Catalina at the moment.

Ghostkeeper avatar May 17 '21 13:05 Ghostkeeper

how about now? Qt supports the M1 now.

lbibass avatar Sep 01 '21 21:09 lbibass

how about now? Qt supports the M1 now.

Version 6.2 does, we are on 5.15.2

nallath avatar Sep 02 '21 07:09 nallath

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

A few problematic incompatibilities with this Qt upgrade are:

  • QtQuick Controls 1 has been removed (used in ~150 QML files, so this is huge).
  • QtGraphicalEffects has been removed, which we use for all recoloured icons.
  • The restoreMode for bindings in the settings list. Probably very easy to fix.

Ghostkeeper avatar Sep 13 '21 12:09 Ghostkeeper

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

Ghostkeeper avatar Sep 13 '21 12:09 Ghostkeeper