Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Make Qt work on apple Silicon
Forum Updated to NodeBB v4.3 + New Features

Make Qt work on apple Silicon

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
apple siliconqt5arm64installation
18 Posts 8 Posters 5.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 13 Dec 2020, 17:34 last edited by
    #2

    Hi and welcome to devnet,

    Did you check already with Qt 6 ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    A 1 Reply Last reply 13 Dec 2020, 18:34
    1
    • S SGaist
      13 Dec 2020, 17:34

      Hi and welcome to devnet,

      Did you check already with Qt 6 ?

      A Offline
      A Offline
      AlexGado
      wrote on 13 Dec 2020, 18:34 last edited by
      #3

      @SGaist Thank you for your help ! I tried to install the Qt6 binaries but I had the same problems.
      Do you want me to build Qt6 from source files ?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 14 Dec 2020, 06:30 last edited by
        #4

        The support isn't there quite yet, but it's worked on.

        You can check here:
        https://bugreports.qt.io/browse/QTBUG-85279

        For current progress, and what you can do yourself of right now, to make it work, apparently building Qt yourself my work 🤷‍♂️


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        A 1 Reply Last reply 14 Dec 2020, 10:31
        2
        • J J.Hilk
          14 Dec 2020, 06:30

          The support isn't there quite yet, but it's worked on.

          You can check here:
          https://bugreports.qt.io/browse/QTBUG-85279

          For current progress, and what you can do yourself of right now, to make it work, apparently building Qt yourself my work 🤷‍♂️

          A Offline
          A Offline
          AlexGado
          wrote on 14 Dec 2020, 10:31 last edited by
          #5

          @J-Hilk Thank you for your answer ! Unfortunately I can’t manage to build qt by myself, I think I will wait for now ...

          1 Reply Last reply
          0
          • R Offline
            R Offline
            roilev
            wrote on 18 Dec 2020, 10:20 last edited by
            #6
            This post is deleted!
            1 Reply Last reply
            0
            • J Offline
              J Offline
              Justinxiang
              wrote on 23 Feb 2021, 13:42 last edited by
              #7

              hey I wonder did you solve this problem?becasu i 'm running qt on my apple m1 as well, and obviously, it didn't work very well

              J 1 Reply Last reply 23 Feb 2021, 13:53
              0
              • J Justinxiang
                23 Feb 2021, 13:42

                hey I wonder did you solve this problem?becasu i 'm running qt on my apple m1 as well, and obviously, it didn't work very well

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 23 Feb 2021, 13:53 last edited by
                #8

                @Justinxiang See https://bugreports.qt.io/browse/QTBUG-85279
                It is planed for Qt6.2

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                J 1 Reply Last reply 23 Feb 2021, 13:56
                0
                • J jsulm
                  23 Feb 2021, 13:53

                  @Justinxiang See https://bugreports.qt.io/browse/QTBUG-85279
                  It is planed for Qt6.2

                  J Offline
                  J Offline
                  Justinxiang
                  wrote on 23 Feb 2021, 13:56 last edited by
                  #9

                  @jsulm oh thank u, i suppose i need to wait for a time :(
                  but i'd like to know do you have any other temporary way to run qt on arm64 mac?

                  J 1 Reply Last reply 23 Feb 2021, 13:58
                  0
                  • J Justinxiang
                    23 Feb 2021, 13:56

                    @jsulm oh thank u, i suppose i need to wait for a time :(
                    but i'd like to know do you have any other temporary way to run qt on arm64 mac?

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 23 Feb 2021, 13:58 last edited by
                    #10

                    @Justinxiang You could try to build Qt by yourself which is not an easy task

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    J 1 Reply Last reply 23 Feb 2021, 14:12
                    0
                    • J jsulm
                      23 Feb 2021, 13:58

                      @Justinxiang You could try to build Qt by yourself which is not an easy task

                      J Offline
                      J Offline
                      Justinxiang
                      wrote on 23 Feb 2021, 14:12 last edited by
                      #11

                      @jsulm ok, I got your idea, thank u for your reply :)

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        KJC94
                        wrote on 5 Apr 2021, 14:31 last edited by
                        #12

                        @Justinxiang Did u solve this problem by build Qt for arm64?
                        I encounter same problem when I use opencv lib...

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Rukshan
                          wrote on 28 Jun 2021, 01:18 last edited by
                          #13

                          Is there a solution for this issue. I have Qt6, but the issue persists.

                          J 1 Reply Last reply 28 Jun 2021, 05:34
                          0
                          • R Offline
                            R Offline
                            Rukshan
                            wrote on 28 Jun 2021, 01:42 last edited by
                            #14

                            This is the code in .pro. I used homebrew to install opencv4.

                            QT += core gui

                            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                            CONFIG += c++11
                            CONFIG += arm64

                            SOURCES +=
                            main.cpp
                            opencvmain.cpp

                            HEADERS +=
                            opencvmain.h

                            FORMS +=
                            opencvmain.ui

                            INCLUDEPATH += -I/opt/homebrew/Cellar/opencv/4.5.2_4/include/opencv4
                            INCLUDEPATH += -I/opt/homebrew/Cellar/opencv/4.5.2_4/lib
                            INCLUDEPATH += -I/opt/homebrew/Cellar/opencv/4.5.2_4/bin
                            LIBS += pkg-config --cflags --libs opencv4

                            LIBS += -framework CoreFoundation
                            LIBS += -framework IOKit

                            LIBS += -L/opt/homebrew/Cellar/opencv/4.5.2_4/lib
                            -lopencv_core
                            -lopencv_highgui
                            -lopencv_imgproc
                            -lopencv_core

                            QT_CONFIG -= no-pkg-config
                            CONFIG += link_pkgconfig
                            PKGCONFIG += opencv4

                            1 Reply Last reply
                            0
                            • R Rukshan
                              28 Jun 2021, 01:18

                              Is there a solution for this issue. I have Qt6, but the issue persists.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 28 Jun 2021, 05:34 last edited by
                              #15

                              @Rukshan said in Make Qt work on apple Silicon:

                              Is there a solution for this issue

                              What issue do you mean? Qt built for x86_64?
                              There is no official M1 ARM builds of Qt yet.
                              You can either build Qt by yourself or use OpenCV x86_64 build.

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                Rukshan
                                wrote on 28 Jun 2021, 13:51 last edited by
                                #16

                                Thanks for the replay. I have a Mac M1 and I cannot build. I get the following error.

                                ld: warning: ignoring file /opt/homebrew/Cellar/opencv/4.5.2_4/lib/libopencv_alphamat.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

                                Undefined symbols for architecture x86_64:
                                "cv::Mat::Mat()", referenced from:
                                _main in main.o
                                "cv::Mat::~Mat()", referenced from:
                                _main in main.o
                                ld: symbol(s) not found for architecture x86_64
                                clang: error: linker command failed with exit code 1 (use -v to see invocation)
                                make: *** [OpenCVDemoB.app/Contents/MacOS/OpenCVDemoB] Error 1
                                23:02:43: The process "/usr/bin/make" exited with code 2.
                                Error while building/deploying pro
                                If Qt does not support M1 could you please recommend a resource that I can follow to build and run opencv.

                                J 1 Reply Last reply 28 Jun 2021, 13:55
                                0
                                • R Rukshan
                                  28 Jun 2021, 13:51

                                  Thanks for the replay. I have a Mac M1 and I cannot build. I get the following error.

                                  ld: warning: ignoring file /opt/homebrew/Cellar/opencv/4.5.2_4/lib/libopencv_alphamat.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

                                  Undefined symbols for architecture x86_64:
                                  "cv::Mat::Mat()", referenced from:
                                  _main in main.o
                                  "cv::Mat::~Mat()", referenced from:
                                  _main in main.o
                                  ld: symbol(s) not found for architecture x86_64
                                  clang: error: linker command failed with exit code 1 (use -v to see invocation)
                                  make: *** [OpenCVDemoB.app/Contents/MacOS/OpenCVDemoB] Error 1
                                  23:02:43: The process "/usr/bin/make" exited with code 2.
                                  Error while building/deploying pro
                                  If Qt does not support M1 could you please recommend a resource that I can follow to build and run opencv.

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 28 Jun 2021, 13:55 last edited by
                                  #17

                                  @Rukshan said in Make Qt work on apple Silicon:

                                  could you please recommend a resource that I can follow to build and run opencv

                                  https://docs.opencv.org/master/d0/db2/tutorial_macos_install.html

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  R 1 Reply Last reply 28 Jun 2021, 14:02
                                  0
                                  • J jsulm
                                    28 Jun 2021, 13:55

                                    @Rukshan said in Make Qt work on apple Silicon:

                                    could you please recommend a resource that I can follow to build and run opencv

                                    https://docs.opencv.org/master/d0/db2/tutorial_macos_install.html

                                    R Offline
                                    R Offline
                                    Rukshan
                                    wrote on 28 Jun 2021, 14:02 last edited by
                                    #18

                                    @jsulm Thanks I will follow the link.

                                    1 Reply Last reply
                                    0

                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved