Skip to content

Proper way of configuring cross compilation (Xbox Scarlett) #38956

Answered by Bvsemmer
Bvsemmer asked this question in Q&A
Discussion options

You must be logged in to vote

Hey all,

Thank you for your replies! After some digging in the vcpkg-tool code and reading the vcpkg cmake file, I found the problem I was having.
I had two issues:

  • vcpkg.exe does not pass along the Environment Variables by default. I had to specifiy some using VCPKG_KEEP_ENV_VARS to be passed to the CMake environment called by vcpkg.
  • I had to respecify VCPKG_CHAINLOAD_TOOLCHAIN_FILE inside my triplet file. Which is a bit of a pitty, cause I have to specify it inside the triplet file and the CMakePresets.json.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Bvsemmer
Comment options

@Neumann-A
Comment options

@Bvsemmer
Comment options

Comment options

You must be logged in to vote
1 reply
@Neumann-A
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Bvsemmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants