Cross compile linux build, from Win7, fail
Not able to compile the development linux platform.
One thing, there was no Setup.bat file in the 4.0 clang tools download, I took the script from the previous version. There was not mention in the instructions that the tool was removed though.
No game.exe is made in E:\UnrealEngine\Engine\Binaries\Linux
1>------ Build started: Project: ShaderCompileWorker, Configuration: Linux_Development_Program Win32 ------ 1>....\Build\BatchFiles\Build.bat ShaderCompileWorker Linux Development -waitmutex 1>Creating makefile for ShaderCompileWorker (Build.version is newer) 1>Using LINUX_MULTIARCH_ROOT, building with toolchain 'E:\Linux_CrossCompileToolChain\v9_clang-4.0.0-centos7\x86_64-unknown-linux-gnu'
1>[17/80] Link libShaderCompileWorker-Core.so 1>/usr/bin/ld: this linker was not configured to use sysroots 1>clang++.exe : error : linker command failed with exit code 1 (use -v to see invocation)
and error results: Severity Code Description Project File Line Suppression State Error linker command failed with exit code 1 (use -v to see invocation) ShaderCompileWorker E:\UnrealEngine\Engine\Intermediate\ProjectFiles\clang++.exe 1
For someone who runs into this.
cygwin was installed on my environment, and the correct linker wasn't being used. temporarily renaming the cygwin folder and then re running the clang toolchain setup.bat fixed this and it cross comiles from windows to linux.
answered Jul 07 '17 at 05:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here