Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Please Help Unity 2022.2.12f1 Android OS Ubuntu 22.04 Error x86_64/bin/clang++: 1: clang: not found

Discussion in 'Editor & General Support' started by Irina-uk, Mar 24, 2023.

  1. Irina-uk

    Irina-uk

    Joined:
    Feb 14, 2014
    Posts:
    62
    Hi!
    I'm building a project for Android, a lot of errors related to

    Building Library/Bee/artifacts/Android/87lik/ojg0_stem2.lump.o failed with output:
    /home/jonsmith/Unity/Hub/Editor/2022.2.12f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: 1: clang: not found

    UnityEngine.GUIUtilityrocessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

    fix up error - Install clang for ubuntu 22.04
    sudo apt-get -y install clang

    new 8 errors building for android

    Building Library/Bee/artifacts/Android/x6ly2/wmym_opy_encode.o failed with output:
    clang: error: no input files


    UnityEngine.GUIUtilityrocessEvent (int,intptr,bool&) (at

    Is there a solution? Thanks
     
    Last edited: Mar 24, 2023
    MadLeopard likes this.
  2. MadLeopard

    MadLeopard

    Joined:
    Sep 16, 2019
    Posts:
    1
    i'm facing the same problem here with Ubuntu 20.04 on Unity 2022.2.7f1, did you find a new solution Irina?
     
  3. jester74864

    jester74864

    Joined:
    Aug 2, 2018
    Posts:
    10
    For you guys or anyone in the future check out this and scroll down to PUZZLEPAINT's comment. If you're using windows the commands might be a little different, but its easy and worked like a charm ;-)

    Im using unity 2022.2.17 on Ubuntu 22.04
     
    boruok likes this.
  4. tokar_dev

    tokar_dev

    Joined:
    Feb 1, 2017
    Posts:
    9
    Faced with it on a lts 2022.3.2f.. LTS!

    OS: Linux Mint 21 (ubuntu based)

    Stupid way to fix it.
    In Editor's External tools link your external SDK and NDK.
    Current Android SDK contains 25 NDK. Unity editor require old 23.1.7779620 strict to minor.

    I duplicated 25 version folder and change version in ndk's source.properties file to 23.1.. and it work ok for my app.
    BTW, unity 2021.3.26f use mach higher NDK version 21.3.6528147, 2022.3.2f LTS use older NDK version, wat?