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. Install/develop on MacBook, run on Raspberry Pi?
QtWS25 Last Chance

Install/develop on MacBook, run on Raspberry Pi?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
macosraspberry pi 3touchscreenpythoncross-compile
12 Posts 2 Posters 3.1k Views
  • 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.
  • SGaistS SGaist

    Hi,

    Are you planing to use PySide2 or PyQt5 ?

    If so, then you can develop the application on your MacBook and then use something like git to sync your source tree on the Pi and use the packages provided by the distribution you are using on the Pi.

    Otherwise, if the native packages are too old, then yes, you are going to need to setup a cross-compiling environment and cross-compile Qt as well as your application.

    You will likely have to also compile the cross-toolchain first from Linaro.

    O Offline
    O Offline
    OutsourcedGuru
    wrote on last edited by
    #3

    @SGaist Not knowing a lot about this, I'm guessing I would like to take the PySide2 route. I'm not sure why there's a compilation phase with this step (unless we're talking about the standard pyc output.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      I see I wasn't as clear as I wanted. I meant that if you wanted to go with C++ then you'd have to cross-compile stuff.

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

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        I see I wasn't as clear as I wanted. I meant that if you wanted to go with C++ then you'd have to cross-compile stuff.

        O Offline
        O Offline
        OutsourcedGuru
        wrote on last edited by
        #5

        @SGaist

        Let's see... the PySide2 route fails at the step to install pyside2 with either version tried:

        pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.12/latest pyside2 --trusted-host download.qt.io
        

        It simply can't be found. Visiting the link above in a browser shows a variety of files which may be downloaded by pip install. Presumably the Raspberry Pi 3B's reported architecture with Python 2.7 doesn't match up to any of those wheels. :checking that theory:

        So it's not win_amd64, none-win32, manylinux1_x86_64, macosx_10_12_intel, manylinux1_x86_64, macosx_10_12_intel. The Raspberry Pi 3B would be something more like manylinux1_armv6 or manylinux1_armv7 perhaps but it's not available in the list as seen in Qt's stash.

        PySide2-5.12.1a1.dev1547885753-5.12.0-cp35.cp36.cp37-none-win_amd64.whl
        PySide2-5.12.1a1.dev1547885753-5.12.0-cp35.cp36.cp37-none-win32.whl
        PySide2-5.12.1a1.dev1547885753-5.12.0-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl
        PySide2-5.12.1a1.dev1547885753-5.12.0-cp35.cp36.cp37-abi3-macosx_10_12_intel.whl
        PySide2-5.12.1a1.dev1547885753-5.12.0-cp27-cp27mu-manylinux1_x86_64.whl
        PySide2-5.12.1a1.dev1547885753-5.12.0-cp27-cp27m-macosx_10_12_intel.whl
        

        And the EGLFS route fails at Step 10 on the configure command. (See error from linked post.)

        I can't use the Embedded Linux route since I need to install this on a particular Raspbian Stretch Lite image that's already somewhat configured.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Why not use the first version: pip install PySide2 ?

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

          O 1 Reply Last reply
          0
          • SGaistS SGaist

            Why not use the first version: pip install PySide2 ?

            O Offline
            O Offline
            OutsourcedGuru
            wrote on last edited by
            #7

            @SGaist I tried that of course (same error message and result). I also tried to reply earlier but since I'm a noob on this forum it won't let me post frequently.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Are you using a virtual environment ?

              Or something like macports or brew ?

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

              1 Reply Last reply
              0
              • O Offline
                O Offline
                OutsourcedGuru
                wrote on last edited by OutsourcedGuru
                #9

                I'm using a virtual environment by which I mean:

                source venv/bin/activate
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  What version of python are you using ?

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

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    OutsourcedGuru
                    wrote on last edited by
                    #11

                    Python 2.7

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      May I suggest to change for Python 3 ?
                      Python 2.7 will reached end of life next year so it's not a good idea to start a new project with it.

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

                      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