Search Unity

GameTune 2.3.0 unity sdk fails il2cpp compilation when exporting for android

Discussion in 'GameTune' started by MacroPinch, Jan 22, 2020.

  1. MacroPinch

    MacroPinch

    Joined:
    Dec 6, 2013
    Posts:
    40
    Using Unity 2019.2.18f1. Here's the error from the log:

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\dev\projects\undead\unity\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\dev\projects\undead\unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 308 of which compiled: 0
    Total compilation time: 143 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\dev\tools\android_ndk\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Baceto\AppData\Local\Temp\tmp45A0.tmp" -o "C:\dev\projects\undead\unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_C86664AEF8D5C32DC85B1DBD80D50F62\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\dev\tools\android_ndk\platforms\android-16\arch-arm" -gcc-toolchain "C:\dev\tools\android_ndk\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\dev\tools\android_ndk\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe

    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13262: error: undefined reference to 'UnityGameTuneSetAnswerCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13262: error: undefined reference to 'UnityGameTuneSetAnswerCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:12990: error: undefined reference to 'UnityGameTuneMakeQuestionRequest'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13001: error: undefined reference to 'UnityGameTuneDeleteQuestionRequest'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13011: error: undefined reference to 'UnityGameTuneDeleteReward'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13021: error: undefined reference to 'UnityGameTuneSendRewardEvent'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13039: error: undefined reference to 'UnityGameTuneAddQuestion'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13061: error: undefined reference to 'UnityGameTuneAddAlternativeToLastQuestion'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13083: error: undefined reference to 'UnityGameTuneAddAttributesToLastAlternative'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13109: error: undefined reference to 'UnityGameTuneAddAttributeToReward'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13131: error: undefined reference to 'UnityGameTuneAskQuestions'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13157: error: undefined reference to 'UnityGameTuneUse'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13183: error: undefined reference to 'UnityGameTuneMakeReward'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13206: error: undefined reference to 'UnityGameTuneSetUserAttribute'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13236: error: undefined reference to 'UnityGameTuneInitialize'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13276: error: undefined reference to 'UnityGameTuneSetAppStartEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13290: error: undefined reference to 'UnityGameTuneSetUseEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13304: error: undefined reference to 'UnityGameTuneSetRewardEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13318: error: undefined reference to 'UnityGameTuneSetQuestionEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13328: error: undefined reference to 'UnityGameTuneSetGdprConsent'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13346: error: undefined reference to 'UnityGameTuneSetMetaData'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13276: error: undefined reference to 'UnityGameTuneSetAppStartEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13290: error: undefined reference to 'UnityGameTuneSetUseEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13304: error: undefined reference to 'UnityGameTuneSetRewardEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13318: error: undefined reference to 'UnityGameTuneSetQuestionEventCallback'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:12990: error: undefined reference to 'UnityGameTuneMakeQuestionRequest'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13061: error: undefined reference to 'UnityGameTuneAddAlternativeToLastQuestion'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13131: error: undefined reference to 'UnityGameTuneAskQuestions'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13001: error: undefined reference to 'UnityGameTuneDeleteQuestionRequest'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13183: error: undefined reference to 'UnityGameTuneMakeReward'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13021: error: undefined reference to 'UnityGameTuneSendRewardEvent'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13011: error: undefined reference to 'UnityGameTuneDeleteReward'
    C:\dev\projects\undead\unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.GameTune.Android.cpp:13328: error: undefined reference to 'UnityGameTuneSetGdprConsent'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
     
  2. kosmikko

    kosmikko

    Unity Technologies

    Joined:
    Jan 30, 2018
    Posts:
    7
    Sorry, it looks like incorrect reference was left in the link.xml file. We are going to release a fix shortly, but for now please delete the Assets/UnityGameTune/link.xml file, which should fix the issue or then download the older 2.0.0 version which is available here http://docs.gametune.unity3d.com/#downloads.
     
  3. MacroPinch

    MacroPinch

    Joined:
    Dec 6, 2013
    Posts:
    40
    Thank you.
     
unityunity