Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide qt-build images for raspberry pi #11

Open
jamesee opened this issue Oct 16, 2019 · 3 comments
Open

Provide qt-build images for raspberry pi #11

jamesee opened this issue Oct 16, 2019 · 3 comments
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@jamesee
Copy link

jamesee commented Oct 16, 2019

Hi darkmattercoder

I came across qt-build and would like to use it for raspberry pi (armf)

Have you build qt-build docker for raspberry?

James

@darkmattercoder
Copy link
Owner

darkmattercoder commented Oct 16, 2019

I thought about providing arm images several times but simply have had no time so far to dig into it. It should be not that hard because I also build several arm toolchain crosscompiled qt images at work.

Unfortunately, I do not expect to get this done quickly because of the lack of spare time. However I would appreciate help with that.

@darkmattercoder darkmattercoder changed the title qt-build docker for raspberry Provide qt-build images for raspberry pi Oct 16, 2019
@darkmattercoder darkmattercoder added good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed labels Oct 16, 2019
@jamesee
Copy link
Author

jamesee commented Oct 16, 2019

Hi darkmattercoder

What kind of help you need? I am willing to try if you are able to provide guidance/instructions.
I have some basic knowledge of docker and had tried to install Qt 5.12 on raspi before.

@darkmattercoder
Copy link
Owner

Well, since the images should be portable, I think the way to go is to target cross compilation. This typically involves installing the appropriate toolchain and configure everything accordingly.

I can't give exact instructions, but I would try those or similar steps:

  1. fork the repo
  2. copy the dockerfile and name the copy Dockerfile.raspiX (or Dockerfile.armhf, I do not know if a special toolchain is required for raspi or if a standard one will work)
  3. Install the selected toolchain inside the image
  4. Now I would first try to build the image up to that point, start it and compile a simple basic c++ binary, that you can use to confirm that the toolchain produced a suitable binary for the target system
  5. If successful, try to compile a relatively new qt (e.g. 5.12.4 or whatever is stable at that time) by hand (mounted volumes), to see whether the build process passes successfully.
  6. If successful, try the same during the build process of the dockerfile with the configure file modified accordingly.
  7. build the tests
  8. run the tests on a raspi to verify
  9. figure out a way to run the tests in travis infrastructure on an appropriate architecture (probably tricky, but they provide beta alpha arm runners since 10/2019 https://blog.travis-ci.com/2019-10-07-multi-cpu-architecture-support)
  10. Put everything together and see how the ci performs.
  11. Adjust where necessary
  12. Cross fingers

--> probably a lot of files in the repo will change during the process, so probably we should consider using a dedicated arm/raspi branch for this (?)
8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants