Linux compile option not appearing for cross compilation

Quite simple, the platform option in visual studio to compile for linux never appears. I’ve set my environment variables correctly, I’ve restarted, I’ve tried all versions of the clang toolchain. Currently using 4.12.5 as my engine version.

When I run Setup.bat it correctly downloads linux dependencies, but the generateprojectfiles.bat file doesn’t give me a linux solution.

Furthermore if I try compile linux in the editor it brings me to the online documentation.

Thanks

This lacks details on which exactly variables are set. Since you are using 4.12.5, you should use v7 cross-toolchain and LINUX_ROOT environment variable. Open a DOS prompt (cmd.exe) and type

%LINUX_ROOT%\bin\clang++.exe --version

If your setup is indeed correct, you should see clang output with the version of 3.7.0. If it says that the command is not found then the cross-toolchain has not been set up correctly.

I did this and I got a confusing result:

122443-capture.png

I have correctly setup the environment variable, but it doesn’t seem to register the path correctly.

Oh my god how did I not see that. Thank you, and apologies for the dumb moment.

Your directory is called C:\UE-Toolchain while environment variable holds value of C:\UE_Toolchain, so this is the problem (underscore instead of a hyphen).

No prob, glad it was easy.