-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Vcpkg export is trying to export packages from the wrong triplet #24033
Comments
The tool port in the dependency should not be exported, or there is some problem here. |
I feel like a simple |
Adding |
it should have been --host-triplet=x64-windows-v143 ;) |
I have isolated the problem which is not with the
Another thing that seems strange to me is that the I am closing this issue since filtering the output from |
Fine, I think this should be document. |
I don't see how this is not a bug. Even specifying the exact triplets brings in the default.
|
@mmahnic could you post the solution for filtering here please?
makes
and I don't see how I can influence the internal list command at this point. What exactly you expect users do to do to solve it? |
I use this BASH script to export packages: triplet="x86-windows-v142"
./vcpkg.exe list --triplet $triplet --host-triplet=x64-windows \
| grep $triplet \
| gawk "{ print \$1 }" | sed -e "s/:.*$//" | sort | uniq \
| sed -e "/\[.*\]/d" \
> xdata/$triplet.list
./vcpkg export --triplet $triplet --host-triplet=x64-windows \
--nuget --output=xdata/$nameprefix --nuget-version=$version \
@xdata/$triplet.list \
> xdata/$nupkgname.log Set the variables |
@mmahnic thanks for this, I was not aware that I can feed triplet.list during export somehow, so it helps to sort it out. In my case it does not work as x64 packages are still pulled in: |
Why is this closed? Idealy I would like to build packages for different targets and export them maybe separately. So if I need later to cross-compile somewhere i.e. on x64-linux I would install host packages for x64-linux and target-packages for mingw64 so I'd be able to use tools in my build process. |
We are also facing this issue where when the target is Android OS but the host is MAC_OS(where we are building it), then export tries to export the ones which are needed for the MAC_OS(host) and fails. Can we take a relook at this ? This is amplified and hence this issue too. |
I ended up writing my own script which exports packages how I need them. (I export in deb format). Vcpkg stores installed packages either in a 'status' file as empty line separated blocks or in separate files (manifest mode). |
Describe the bug
When exporting packages for the triplet
x64-windows-v143
, vcpkg wants to include also packages from the tripletx64-windows
. Export fails, although the packages it requires are in fact present inx64-windows
. These are the "native" packages that are needed to build the packages in the "target" triplet (x64-windows-v143
). Vcpkg suggests that these packages should be installed also inx64-windows-v143
:But at least
vcpkg-tool-meson
can not be installed:We use different compilers so we define additional triplets that include the platform toolset. This is the content of the triplet file for
x64-windows-v143
:Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A nuget package "exported" is created.
The text was updated successfully, but these errors were encountered: