[qt5-base] fix x64-osx -> arm64-osx cross compile#18870
Conversation
|
Any progress? |
|
Right now the problem is that fontconfig fails to cross compile from x86 to arm. I can rebase this patch, but if merged without fontconfig fixes, it is kinda useless, since the dependencies can't cross compile. |
|
cc @Neumann-A |
|
Does this PR no longer depend on other PRs? I see the checks are okay now. |
|
It can be merged now. |
|
@Neumann-A Do you against this changes? |
only against the changes which removes the removal of the third party deps. These folders are removed to not accidentally build them. |
|
Qt's build system really wants to use vendored zlib to compile the bootstrap binary (the actual arm64 binary uses system zlib). And i haven't been able to convince it to use system zlib for that. |
|
Any progress? |
| for (k, $${currentConfig}.output.$${type}.assign._KEYS_): \ | ||
| + { | ||
| $${currentConfig}.output.$$type += "$$k = $$eval($${currentConfig}.output.$${type}.assign.$$k)" | ||
| + equals(k, "QMAKE_LIBS_ZLIB"): $${currentConfig}.output.$$type += "host_build:qtConfig(system-zlib): $$k = -lz" |
There was a problem hiding this comment.
Instead of -lz, we need the value of ZLIB_LIBS.
| patches/mysql-configure.patch #Fix mysql project | ||
| patches/cocoa.patch #Fix missing include on macOS Monterrey, https://code.qt.io/cgit/qt/qtbase.git/commit/src/plugins/platforms/cocoa?id=dece6f5840463ae2ddf927d65eb1b3680e34a547 | ||
| patches/arm64-osx.patch #Make it build on arm64 macos | ||
| patches/host-zlib.patch #Make the build system use host zlib instead of vendored one |
|
Convert this PR to draft since there is no progress. |
|
Closing this PR since it seems that no progress is being made. Please reopen if work is still being done. |
Make it possible to cross-compile qt5-base from x64 mac to arm64 by detecting cross compilation and passing the correct flags
What does your PR fix?
Which triplets are supported/not supported? Have you updated the CI baseline?
osx, Yes
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/