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

Building WebView Question #2121

Open
mcrosson opened this issue Nov 10, 2024 · 3 comments
Open

Building WebView Question #2121

mcrosson opened this issue Nov 10, 2024 · 3 comments

Comments

@mcrosson
Copy link

mcrosson commented Nov 10, 2024

I'm working on building Anthias for Armbian and quickly discovered the WebView part of the Anthias project needs to be built from source. I also noticed the current WebView arm build process is setup very specifically for the Raspberry Pi boards.

During my research I discovered there are 2 open pull requests, #2081 and #1888 , that seem to make the necessary changes I'd want to be able to build WebView for Armbian. They both seem to accomplish the same thing but in different ways.

From what I can tell #1888 should be able to build the WebView for qt6 and have it work with the viewer while #2081 has a note that the compile completes but the output doesn't work in the viewer.

Is the above an accurate read of the PR details? If so, would it be best to work from #1888 or try #2081 first and then fall back to #1888 or should I focus on the current qt5 build process already present while the two open PRs are worked on by the main Anthias devs?

It's not clear to me which approach of the above would be the most appropriate choice and I'd appreciate any guidance that can be provided. My existing code is here in case you'd like to see my current progress.

@nicomiguelino
Copy link
Contributor

@mcrosson, I'm still assessing options on how to cross-compile Qt 6.

  • Create a pipeline for building WebView via Qt 6 #2081 makes use of pre-build Qt 6 binaries installed via apt. Yes, I tried to compile it for ARMv7 but doesn't work when I run it on a containerized Raspberry Pi 3.
  • Installing pre-built Qt 6 binaries via apt might have some limitations. It might be a better option to build Qt from source.
  • Feel free to share your changes just in case you came up with fixes/solutions.

@mcrosson
Copy link
Author

mcrosson commented Nov 10, 2024

Is there a reason to have multi-stage builds with cross compile for arm instead of a set of single stage builds leveraging the --platform flag? Multi-platform is already a hard requirement for building WebView and it seems like single stage builds would be possible and avoid some of the complexities of cross compilation.

@nicomiguelino
Copy link
Contributor

@mcrosson, Multi-stage builds is needed in cross-compiling Qt, since the Raspberry Pi sysroot (from the first stage) is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants