[x264] enable cross-compile settings propagation for arm64-linux#23532
[x264] enable cross-compile settings propagation for arm64-linux#23532sylvain-prevost wants to merge 13 commits intomicrosoft:masterfrom sylvain-prevost:x264_arm64_linux_cross_compile
Conversation
…) only when relevant.
|
Depends on #23525. |
|
/azp run |
|
Close and reopen this PR to re-trigger the ci test. |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
cc @dg0yt for review this. |
dg0yt
left a comment
There was a problem hiding this comment.
Disclaimer: I don't use this port.
…chema + extend license to GPL-2.0-or-later.
|
Currently fails on PR formatting due to 'version-string'. |
Created #23585. |
|
Can you please rerun the command |
|
Hi @JackBoosY , sorry for the delay, I was away for a while.
|
|
issue #23766 is not anymore present, however the version-string issue is still there :( When I created the PR, I used the command
and the output was:
Thereafter I used the suggested flag to be able to generate the version & baseline files. If I replace 'version-string' by 'version' then it passes the check, but that would be invalid since the value of the version is: ''164-5db6aa6cab1b146" and this is not a dot-version. |
|
Oh I totally lost track with this PR, sorry. |
|
I don't know enough about this to say - I'm marking this as requires:discussion so we can talk with the team on thursday. Thanks for the PR! |
|
This seems wrong; can you please post the |
|
Hi @LilyWangLL ,
from buildtrees/x264/[target]-rel/config.mak: from buildtrees/x264/cmake-vars-[target]-rel.cmake.log: Just in case, to reduce ping-pong, I'm adding in attachment the corresponding files. |
|
And the triplet file I'm using for my target (jetson nano), cross-compiled on WSL2 Ubuntu 20.04: set (VCPKG_TARGET_ARCHITECTURE arm64) set (VCPKG_MAKE_BUILD_TRIPLET --host=aarch64-linux-gnu) if (DEFINED ENV{GSTREAMER_FOR_DEEPSTREAM}) set (VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../toolchains/aarch64_linux_jetson.cmake) |
|
@strega-nil-ms , requested info is available. |
BillyONeal
left a comment
There was a problem hiding this comment.
As in #22331 , ideally we would be setting all the right tools to the right bits (via CC, AR, etc.) rather than trying to coax x264's build scripts into detecting the right bits themselves.
Based on https://github.com/mirror/x264/blob/master/configure#L557 it looks like you need:
CCSTRINGSARRANLIBPKGCONFIG(??? it seems like this runs on the host so we don't understand why it is cross-prefix'd)STRIP(but we don't enable stripping so this one may not matter)
|
|
||
| list(APPEND OPTIONS --enable-pic) | ||
|
|
||
| if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") |
There was a problem hiding this comment.
This condition is probably wrong: Why is cross compiling for arm64 different than any other cross compiling?
To clarify, you need to get these values from |
|
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. |
Describe the pull request
What does your PR fix?
Fixes [x264] arm64 cross-compile settings are ignored. #22899
(follow-up of [x264] enable cross-compile settings propagation for arm64-linux. #22900)
Result of X-compilation successfully tested on Jetson nano device.
Which triplets are supported/not supported? Have you updated the CI baseline?
!(arm & windows), No
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/