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

How to use Unreal-Linux-From-Windows-Toolchain.cmake to cross compile for Linux from Windows? #966

Open
lincoln310 opened this issue Oct 12, 2024 · 1 comment

Comments

@lincoln310
Copy link

I am tring to cross compile cesium-native for linux from windows. And I created this bat:

cmake -B build-linux -S . -DCMAKE_TOOLCHAIN_FILE="unreal-linux-from-windows-toolchain.cmake" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build-linux --target install

According to the content in cmake, I added these to Enviroments.
image

But it still run into this error:
image

This is the cross compile tool chain:
image

@kring
Copy link
Member

kring commented Oct 18, 2024

Hi @lincoln310, we haven't tried cross-compiling in awhile, because these days we just compile for Linux on Linux. You might find it easier to do the same by using WSL2.

That said, you may be able to fix your immediate problem just by adding -G Ninja to your cmake configure command-line. You'll need to install Ninja, for course.

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