Search Unity

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

Discussion in 'Linux' started by peq42, May 21, 2022.

  1. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    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?
     
    Epitaque likes this.
  2. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    Anyone has any ideas?
     
  3. Steedalion

    Steedalion

    Joined:
    Jul 6, 2020
    Posts:
    51
    Restart, reinstall, try again.
     
  4. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    I did, and that even installed a new update (2022.1.1f1, previously 2022.1.1f0) and its still the same
     
  5. Steedalion

    Steedalion

    Joined:
    Jul 6, 2020
    Posts:
    51
    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)
     
    peq42 likes this.
  6. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    basically, yes. Guess I'll have to revert back to LTS until it gets fixed...
     
  7. Steedalion

    Steedalion

    Joined:
    Jul 6, 2020
    Posts:
    51
    Try that, I have not had ILCPP issues yet so I don't know enough to suggest a solution.
     
    peq42 likes this.
  8. Epitaque

    Epitaque

    Joined:
    Jul 28, 2015
    Posts:
    8
    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.
     
    Last edited: Jun 15, 2022
  9. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    same here
     
  10. uani

    uani

    Joined:
    Sep 6, 2013
    Posts:
    232
    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
     
  11. PetrisPeper

    PetrisPeper

    Joined:
    Nov 10, 2017
    Posts:
    66
    Same here on 2022.1.7f1.
     
  12. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    I don't know the answers here, but I have contacted the team internally that works on this feature.
     
    Anthiese likes this.
  13. qiliang_zhou

    qiliang_zhou

    Unity Technologies

    Joined:
    Sep 3, 2019
    Posts:
    15
    We've identified the bug and will get the fix in 2022.1 ASAP. Thank you for posting on this issue!
     
    Anhorse, PetrisPeper and Anthiese like this.
  14. binzydev

    binzydev

    Joined:
    Jun 18, 2021
    Posts:
    3
    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 - https://issuetracker.unity3d.com/is...erited-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.
     
    Last edited: Jul 11, 2022
  15. binzydev

    binzydev

    Joined:
    Jun 18, 2021
    Posts:
    3
    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.
     
  16. Anhorse

    Anhorse

    Joined:
    Mar 23, 2020
    Posts:
    3
    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 "
     
  17. qiliang_zhou

    qiliang_zhou

    Unity Technologies

    Joined:
    Sep 3, 2019
    Posts:
    15
    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.
     
  18. peq42

    peq42

    Joined:
    Mar 4, 2022
    Posts:
    74
    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 ^^
     
    binzydev likes this.
  19. Anhorse

    Anhorse

    Joined:
    Mar 23, 2020
    Posts:
    3
    Thank you so much! I appreciate the reply.
     
  20. samanabo

    samanabo

    Joined:
    Mar 10, 2015
    Posts:
    51
    It looks like 2022.1.10f1 is available now, can anyone confirm that this has been fixed?
     
  21. Epitaque

    Epitaque

    Joined:
    Jul 28, 2015
    Posts:
    8
    Yes. It's fixed in 2022.1.10f1.
     
    samanabo likes this.
  22. shinichikudo997

    shinichikudo997

    Joined:
    Jul 1, 2018
    Posts:
    33
    It is again the same on 2023.1
    Why?
     
  23. Armynator

    Armynator

    Joined:
    Feb 15, 2013
    Posts:
    67
    It's always been like that, I'm a bit surprised that this was marked as fixed. Sometimes it works after editor restart, sometimes it doesn't. It's only a visual thing in the build window however.

    Make sure that you have the required module installed, make sure that the Windows->Linux toolchain package is installed and use your own build script instead of relying on the build window. Much less headache.
     
    shinichikudo997 likes this.
  24. oukaichimon

    oukaichimon

    Joined:
    Mar 9, 2015
    Posts:
    5
    Me too.
    Win10.
    UNITY2023.2.8
    upload_2024-2-2_18-33-43.png
     
    shinichikudo997 likes this.
  25. gooby429

    gooby429

    Joined:
    Aug 13, 2019
    Posts:
    135
    its still happening in 2022.3.12