x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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
Error Failed to produce item: E:\UnrealEngine\Engine\Binaries\Linux\libShaderCompileWorker-Core.so ShaderCompileWorker E:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command "....\Build\BatchFiles\Build.bat ShaderCompileWorker Linux Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. ShaderCompileWorker C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error linker command failed with exit code 1 (use -v to see invocation) UE4 E:\UnrealEngine\Engine\Intermediate\ProjectFiles\clang++.exe 1
Error Failed to produce item: E:\UnrealEngine\Engine\Binaries\Linux\UE4Game UE4 E:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command "....\Build\BatchFiles\Build.bat UE4Game Linux Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

Product Version: UE 4.16
Tags:
more ▼

asked Jun 29 '17 at 11:52 PM in Packaging & Deployment

avatar image

Michael Purvis
1 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jul 07 '17 at 05:58 PM

avatar image

Michael Purvis
1 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question