Install/develop on MacBook, run on Raspberry Pi?
-
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.
wrote on 24 Dec 2018, 01:00 last edited by@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.
-
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.
-
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.
wrote on 30 Dec 2018, 02:44 last edited byLet'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.
-
Why not use the first version:
pip install PySide2
? -
wrote on 1 Jan 2019, 21:02 last edited by
@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.
-
Are you using a virtual environment ?
Or something like
macports
orbrew
? -
wrote on 3 Jan 2019, 19:50 last edited by OutsourcedGuru 1 Mar 2019, 19:50
I'm using a virtual environment by which I mean:
source venv/bin/activate
-
What version of python are you using ?
-
wrote on 10 Jan 2019, 02:42 last edited by
Python 2.7
-
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.
12/12