-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compile crosscompile Linux from Windows doesn't work #28
Comments
I've been debugging it further and noticed that the Unreal Build Tool runs the configuration three times (still not sure why). The first time, it sets the target as Win64, and then it runs two more times with Linux as the target. This causes the Linux binary to never be compiled, as it’s already being compiled during the first execution. I'm trying to follow this comment to fix the issue, but if you have any other suggestions, they would be very welcome. |
Here I've created a PR with a change that allows building the project into platform-specific folders: #29 Now the Linux compilation starts, but the unreal toolchain is not properly loaded therefore the compilation fails. Any idea on how to load it?
|
I am out of town till next week and can look at some of this then. There is also a branch tool_chains that is attempting to load the cxx flags from the build tools and inject that into cmake that may also help. |
@caseymcc Thanks! At the moment I’ve abandoned the idea of building using the cross-compiler, so I’m trying to compile directly on Linux. I fixed a small issue that was preventing the proper compilation of CMake libraries (#30), and now I’m investigating a problem with the linker. I’m not sure if it’s caused by an issue with the library or the way this plugin compiles the library. In any case, I would really use some help ti figure it out. Here the error:
|
Hi, I'm trying to Cross Compile a linux version from Windows. The compilation errors during the linking phase:
Digging more I've noticed that when I launch the compilation, the detected platform is still "Windows" so UE4CMake still uses all the windows compilers causing the libraries to be compiled for Windows instead to be compiled for linux. That's explains why the linker fails with the above error.
Notice, I've tried to delete the Intermediate folder, to ensure that the config files are re-generated, but it didn't solve the issue.
The question is then how can we cross compile for linux, from Windows, using this plugin?
The text was updated successfully, but these errors were encountered: