Cannot build for Linux On Windows, even with toolchain installed?

I’m using unity 2022.1 for a project(On windows 10), and I’ve installed the IL2CPP module on unity hub on that version, but while on 2021.2 I was able to export to Linux from windows, on the new version Unity’s Build Settings window says “Linux il2cpp player can only be built on linux”

Any ideas why?

1 Like

Anyone has any ideas?

Restart, reinstall, try again.

I did, and that even installed a new update (2022.1.1f1, previously 2022.1.1f0) and its still the same

So linux mono works but linux ILCPP does not?

If you have issues always revert back to LTS. (21.03 is most recent at this moment)

1 Like

basically, yes. Guess I’ll have to revert back to LTS until it gets fixed…

Try that, I have not had ILCPP issues yet so I don’t know enough to suggest a solution.

1 Like

Same issue here with 2022.1.3f1. Any chance of a fix?

Edit: Still seeing this on 2022.1.4f1, with Linux IL2CPP module installed from Unity Hub.

Edit: I resolved my issue by downgrading to 2022.1.0b2.

same here

issue here too, after all the Hub module addition, following messages, seeking “the toolchain”, adding packages, an apparent final dead end on 2022.1.6f on Windows 11 for Linux

Same here on 2022.1.7f1.

I don’t know the answers here, but I have contacted the team internally that works on this feature.

1 Like

We’ve identified the bug and will get the fix in 2022.1 ASAP. Thank you for posting on this issue!

3 Likes

Building for Linux is frustratingly lately. It needs more attention and ideally automated checks before release.

2020 on Mac had linux support between versions (missing Mono libraries in release)
2021 on Mac says “Dedicated server support for linux is not installed”
2021 on Windows doesn’t show Linux at all (nor Hub or manual install)
2022 on Windows says it can’t build
2022 on Mac says “Dedicated server support for linux is not installed” (Hub says installed, persists after reboot)

Windows pre-release alpha 2022.1.0a18 broken due to linux sysroot issue - Unity Issue Tracker - SysrootPackage throws not implement inherited abstract member errors after importing

Windows pre-release beta 2022.1.0b16 builds after jumping through hoops with 2D common + URP packages. Edit: It works. Phew… at least I have an option now.

Will we get a fix in 2021? Wondering if I need to be on the bleeding edge, and a little nervous of the broken sysroot package in alpha.

Just wanted to bump and say even with the Linux tool chain and Linux modules, cross compilation from Windows to Linux appears not possible on 2022.1.8f1. I get the error " Linux IL2CPP player can only be built on Linux "

The fix will be available in the next editor release of 2022.1, which is 2022.1.10f1. Sorry for the inconvenience.

The bug discussed in this thread does not affect 2021.3 as far as we know. Linux mono build, il2cpp build, and dedicated server build should all show up in the Hub & the Build Settings window, and build fine in the latest release 2021.3.6f1 on Windows.

This is an issue we definitely should look into. Could you please file a bug?

Do you mean 2022.2.0a18? Could you try upgrading the sysroot package in the project to 2.0.0+? That should resolve the issue.

hey @qiliang_zhou @JoshPeterson no need to fix this anymore! I’m pretty sure I won’t be using unity anymore if that recent merging actually goes through ^^

1 Like

Thank you so much! I appreciate the reply.

It looks like 2022.1.10f1 is available now, can anyone confirm that this has been fixed?