Search Unity

How to debug build error relate to IL2CPP ?

Discussion in 'Android' started by bladerunner69008, Mar 3, 2021.

  1. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    After Pc/MAC and iOs, I am building for android 64-bits.
    It works quite well with Mono but to no avail with IL2CPP

    What is the procedure to analyse the issue ? There should be some logs somewhere

    Error I got :
    led running "/Volumes/SDD 250/Applications/Unity/2019.4.20f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Release" --outputpath="/Volumes/SDD 250/Carrier Battles/Unity CB 1.5/Temp/StagingArea/assets/bin/Data/Native/arm64-v8a/libil2cpp.so" --cachedirectory="/Volumes/SDD 250/Carrier Battles/Unity CB 1.5/Assets/../Library/il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="/Volumes/SDD 250/Applications/Unity/2019.4.20f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Volumes/SDD 250/Applications/Unity/2019.4.20f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Volumes/SDD 250/Applications/Unity/2019.4.20f1/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="/Volumes/SDD 250/Applications/Unity/2019.4.20f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Volumes/SDD 250/Carrier Battles/Unity CB 1.5/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Volumes/SDD 250/Carrier Battles/Unity CB 1.5/Temp/StagingArea/Il2Cpp/il2cppOutput"

    Thanks
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    Is there more to this error, this is only shows the command line?

    A long shot, but do you by any chance use external harddrive? If so, try building to builtin harddrive
     
  3. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    Indeed, I get everything on external hard-drive (Unity, Android packages and the build)
     
  4. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    I tried to build on main hard drive but to no avail
    I also tried to move the Unity install to the HD without success
    Cannot move the whole project to the HD by lack of space.

    There is no more info on this error. Is there a log file we could look at ?
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    Editor.log should contain full info, but I think this is not the first time I heard there are issues with external harddrives
     
  6. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    Editor.log pointed out an error/
    StagingArea/Il2Cpp/il2cppOutput/glmdisplay.h:13:10: fatal error: 'OpenGL/OpenGL.h' file not found
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    I can only assume you have glmdisplay.h file in your Unity project? if so, is that on purpose?
     
  8. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    I found out that it is contained in the Steam sdk
    It is possible to ignore this folder when building for mobile ?
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    Folder - no, you will need to click on plugin files (.h, .dll, etc) and unselect Android as compatible platform
     
  10. bladerunner69008

    bladerunner69008

    Joined:
    May 2, 2019
    Posts:
    25
    This was enough to build
    Thanks a lot for your time !
     
    Tomas1856 likes this.