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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Cross-compile toolchains after v7 are missing the setup.bat

FYI, the cross-compile instructions mention a setup.bat to generate OutputEnvVars.txt but v7, v8 and v9 are missing it from their respective zip files: https://docs.unrealengine.com/latest/INT/Platforms/Linux/GettingStarted/

Product Version: UE 4.17
more ▼

asked Sep 06 '17 at 05:55 PM in Linux

avatar image

1 1 3

avatar image Hariberu Sep 08 '17 at 10:02 PM

i can confirm this that the files are indeed missing. I have downloaded them all and extracted them with many different zip/rar programs, No setup.bat or unsetup.bat files were found.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The setup/unsetup.bat are not necessary (they are used in AutoSDKs system which is not documented).

more ▼

answered Sep 08 '17 at 10:24 PM

avatar image

2.7k 59 6 88

avatar image Hariberu Sep 08 '17 at 10:27 PM

When trying to build the linux in unreal 4.16.3, i get directed to this link: https://docs.unrealengine.com/latest/INT/Platforms/Linux/GettingStarted/index.html

It clearly explains to run "Setup.bat". If i try to skip this step it gives me a crapload of errors when trying to build linux in the project sln.

avatar image RCL STAFF Sep 08 '17 at 10:33 PM

The toolchain does not need any setup if used standalone outside AutoSDKs (you can check Setup.bat and see what it does - it just prints env var names). The errors are most caused by the change of structure of the toolchain between v7 and v8. v7 was still using the old LINUX_ROOT arrangement, while v8 uses LINUX_MULTIARCH_ROOT. If you want to use v8 with LINUX_ROOT you need to provide the path to a specific architecture.

EDIT: the documentation will be corrected to clarify that Setup.bat is not truly necessary (although may be helpful so you know how to set up the variables).

avatar image Hariberu Sep 08 '17 at 10:38 PM

I'm trying to use v9 clang 4.0.0-based - for UE4 4.16 Will i use LINUX_ROOT or LINUX_MULTIARCH_ROOT?

avatar image RCL STAFF Sep 09 '17 at 01:09 AM

For v8 and later toolchains (that have multiple architectures in them) LINUX_MULTIARCH_ROOT is definitely recommended.

avatar image Hariberu Sep 09 '17 at 02:28 PM

Followed the guide with the information you gave, it's not showing Linux in Visual Studio.

avatar image RCL STAFF Sep 11 '17 at 03:04 PM

Please open cmd.exe and type

%LINUX_MULTIARCH_ROOT%x86_64-unknown-linux-gnu\bin\clang++.exe --version

it should print clang version. If you see any other output (missing path/file), the variable was not set up properly.

avatar image lfljaxzin Sep 11 '17 at 02:56 PM

It might not be required, and I was able to figure out the value I needed for the environment variables, but it is still confusing to try to follow incorrect or outdated documentation. I hope you can update the documentation for others, thanks.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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