Search Unity

IL2CPP Build Error on Windows Export with Unity 2018.4.14f1

Discussion in 'Windows' started by SenseEater, Jan 20, 2020.

  1. SenseEater

    SenseEater

    Joined:
    Nov 28, 2014
    Posts:
    25
    Failed running C:\Program Files\2018.4.14f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="D:\WORK\BB\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="D:\WORK\BB\Assets\..\Library/il2cpp_cache" --map-file-parser="C:\Program Files\2018.4.14f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="D:\WORK\BB\Temp\StagingArea\Data\Managed" --generatedcppdir="D:\WORK\BB\Temp\StagingArea\Data\il2cppOutput" --extra-types-file="D:\WORK\BB\Temp\StagingArea\Data\extra-types.txt"

    stdout:
    Building GameAssembly.dll with MsvcDesktopToolChain
    Msvc Install Version: 15.0
    Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
    Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe
    Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\cl.exe

    Output directory: D:\WORK\BB\Temp\StagingArea\Data\Native
    Cache directory: D:\WORK\BB\Library\il2cpp_cache
    ObjectFiles: 733 of which compiled: 137
    Time Compile: 17862 milliseconds Bulk_Assembly-CSharp_5.cpp
    Time Compile: 14249 milliseconds Il2CppAttributes.cpp
    Time Compile: 13938 milliseconds Il2CppTypeDefinitions.cpp
    Time Compile: 11979 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 7653 milliseconds GenericMethods4.cpp
    Time Compile: 6902 milliseconds Bulk_Assembly-CSharp_8.cpp
    Time Compile: 6886 milliseconds Bulk_Generics_5.cpp
    Time Compile: 6594 milliseconds Bulk_Generics_55.cpp
    Time Compile: 6464 milliseconds Bulk_Assembly-CSharp_6.cpp
    Time Compile: 6402 milliseconds Bulk_Generics_57.cpp
    Total compilation time: 87799 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /out:"D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /NODEFAULTLIB:uuid.lib "kernel32.lib" "user32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "Shell32.lib" "Crypt32.lib" "psapi.lib" "version.lib" "MsWSock.lib" "ws2_32.lib" "Iphlpapi.lib" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x64" /SUBSYSTEM:WINDOWS @"C:\Users\SenseEater\AppData\Local\Temp\tmp17C1.tmp"

    Creating library D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.lib and object D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.exp
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppInitSubstance referenced in function NativeFunctions_IOS_cppInitSubstance_mA2DC87942A0DA2E3EE5F5899B578C4979CA259A9
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetCallbacks referenced in function NativeFunctions_IOS_cppSetCallbacks_mCA859BA8AFEF0D395E0C737148E0A42E01744BBE
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppApplyPreset referenced in function NativeFunctions_IOS_cppApplyPreset_mC784FD5B932F77752ABA36B5343310E45F410557
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetPreset referenced in function NativeFunctions_IOS_cppGetPreset_mD2301BEADC62881C9A91D7D874E53B3F89D450C7
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetNumOutputs referenced in function NativeFunctions_IOS_cppGetNumOutputs_m2A92857BFACD12413F9190DFA9D11212D79FF335
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetTexturePackingList referenced in function NativeFunctions_IOS_cppGetTexturePackingList_m41809416BA27C7B28CBD8794F461B85D76BD2920
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetColorSpaceList referenced in function NativeFunctions_IOS_cppGetColorSpaceList_mA0259838C7BE64233BE0AE4B0907519447E5EE68
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppFreeMemory referenced in function NativeFunctions_IOS_cppFreeMemory_mB7051144F550389669ADB09C54FAC28B1ED92EEC
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetMInputs referenced in function NativeFunctions_IOS_cppGetMInputs_m41B925903559CCA876362CC65DD43D144FC52A2C
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppShutdownSubstance referenced in function NativeFunctions_IOS_cppShutdownSubstance_mC773ED9C11157E6F31A5103A7DA081BEE06ED209
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppRemoveAsset referenced in function NativeFunctions_IOS_cppRemoveAsset_mAF36E54D12786749F4A68801E9EA9262CB7FA534
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppLoadSubstance referenced in function NativeFunctions_IOS_cppLoadSubstance_mBF88C99D99F54431332FC4D99E138676E33D9421
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppQueueSubstance referenced in function NativeFunctions_IOS_cppQueueSubstance_m0F7EC6448CA7D3E602E41BA1747CAC2069F146B7
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppRenderSubstances referenced in function NativeFunctions_IOS_cppRenderSubstances_m7B3199B6A5591FB05FA29013635303ED7E41A0C6
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppIsRendererBusy referenced in function NativeFunctions_IOS_cppIsRendererBusy_mC868F98BE8A514DAFD39FBD619E10255E99966CF
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetNumInputs referenced in function NativeFunctions_IOS_cppGetNumInputs_m3E9086988E17036C76E07CB2AB3B7AC886B024AC
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Ints referenced in function NativeFunctions_IOS_cppGetInput_Ints_m334696328A08EFB33BCC433C3E285A69F801287A
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetMComboBoxItems referenced in function NativeFunctions_IOS_cppGetMComboBoxItems_mE3C053973CFC791A4AEEA401F357AB5C3AF99117
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Float referenced in function NativeFunctions_IOS_cppGetInput_Float_mDA56009ED9B5105ABFAD77942FE79A33B05EDD4E
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_Float referenced in function NativeFunctions_IOS_cppSetInput_Float_m8B7AB204510E5A958911FC9FD12F311C78AD9DC1
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Int referenced in function NativeFunctions_IOS_cppGetInput_Int_m28D4152E6184576594F33D516E2821E39CFC85C4
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_Int referenced in function NativeFunctions_IOS_cppSetInput_Int_m1BF5AAAC67507301966C5A966253C4C417D7CBC2
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_String referenced in function NativeFunctions_IOS_cppSetInput_String_mE8C9D95C82CE864F1BB270C4B7757041E0A08652
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_String referenced in function NativeFunctions_IOS_cppGetInput_String_m2DBD0F8AC5AACA60937A34C99FE72DF90971F998
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_Texture referenced in function NativeFunctions_IOS_cppSetInput_Texture_m928F72959DC0DCE00D35FF12AD42D132729DB99C
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppProcessQueuedOutputs referenced in function NativeFunctions_IOS_cppProcessQueuedOutputs_mDD56B607C91C8D029B799C30C386366B87042A85
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetOutputChannelStrFromHash referenced in function NativeFunctions_IOS_cppGetOutputChannelStrFromHash_m8701FE8151B8F5F1BCB5DDCC8DA3FE52A778AFAD
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppOnGenerateMipMapsChanged referenced in function NativeFunctions_IOS_cppOnGenerateMipMapsChanged_m89BB4181F5FF4161121794A6F672415D8908FDAE
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppOnAlphaSourceChanged referenced in function NativeFunctions_IOS_cppOnAlphaSourceChanged_m30FF28F3137DE40193051333AC0230B9D19ACE26
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetTextureDimensions referenced in function NativeFunctions_IOS_cppGetTextureDimensions_m05D037F0AAFF2591249C14F240C3724139344885
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppDuplicateGraphInstance referenced in function NativeFunctions_IOS_cppDuplicateGraphInstance_m0FD3EDF4B80ED1273341FE8B6C51C778525179B6
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppRemoveGraphInstance referenced in function NativeFunctions_IOS_cppRemoveGraphInstance_m3A66EEA03C504F972EBD0670737DE9EDA521455E
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppListInputs referenced in function NativeFunctions_IOS_cppListInputs_mFA36CE9D41702C733620ECB9E5A1580EF52A92AD
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetOutputHash referenced in function NativeFunctions_IOS_cppGetOutputHash_m20AF928DB21FD20CF4B425E34A71A39352F56C03
    D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.dll : fatal error LNK1120: 34 unresolved externals

    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)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /out:"D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /NODEFAULTLIB:uuid.lib "kernel32.lib" "user32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "Shell32.lib" "Crypt32.lib" "psapi.lib" "version.lib" "MsWSock.lib" "ws2_32.lib" "Iphlpapi.lib" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x64" /SUBSYSTEM:WINDOWS @"C:\Users\SenseEater\AppData\Local\Temp\tmp17C1.tmp"

    Creating library D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.lib and object D:\WORK\BB\Library\il2cpp_cache\linkresult_E931CB7CEA612C2FAB8A540E18DDFC94\GameAssembly.exp
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppInitSubstance referenced in function NativeFunctions_IOS_cppInitSubstance_mA2DC87942A0DA2E3EE5F5899B578C4979CA259A9
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetCallbacks referenced in function NativeFunctions_IOS_cppSetCallbacks_mCA859BA8AFEF0D395E0C737148E0A42E01744BBE
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppApplyPreset referenced in function NativeFunctions_IOS_cppApplyPreset_mC784FD5B932F77752ABA36B5343310E45F410557
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetPreset referenced in function NativeFunctions_IOS_cppGetPreset_mD2301BEADC62881C9A91D7D874E53B3F89D450C7
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetNumOutputs referenced in function NativeFunctions_IOS_cppGetNumOutputs_m2A92857BFACD12413F9190DFA9D11212D79FF335
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetTexturePackingList referenced in function NativeFunctions_IOS_cppGetTexturePackingList_m41809416BA27C7B28CBD8794F461B85D76BD2920
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetColorSpaceList referenced in function NativeFunctions_IOS_cppGetColorSpaceList_mA0259838C7BE64233BE0AE4B0907519447E5EE68
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppFreeMemory referenced in function NativeFunctions_IOS_cppFreeMemory_mB7051144F550389669ADB09C54FAC28B1ED92EEC
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetMInputs referenced in function NativeFunctions_IOS_cppGetMInputs_m41B925903559CCA876362CC65DD43D144FC52A2C
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppShutdownSubstance referenced in function NativeFunctions_IOS_cppShutdownSubstance_mC773ED9C11157E6F31A5103A7DA081BEE06ED209
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppRemoveAsset referenced in function NativeFunctions_IOS_cppRemoveAsset_mAF36E54D12786749F4A68801E9EA9262CB7FA534
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppLoadSubstance referenced in function NativeFunctions_IOS_cppLoadSubstance_mBF88C99D99F54431332FC4D99E138676E33D9421
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppQueueSubstance referenced in function NativeFunctions_IOS_cppQueueSubstance_m0F7EC6448CA7D3E602E41BA1747CAC2069F146B7
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppRenderSubstances referenced in function NativeFunctions_IOS_cppRenderSubstances_m7B3199B6A5591FB05FA29013635303ED7E41A0C6
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppIsRendererBusy referenced in function NativeFunctions_IOS_cppIsRendererBusy_mC868F98BE8A514DAFD39FBD619E10255E99966CF
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetNumInputs referenced in function NativeFunctions_IOS_cppGetNumInputs_m3E9086988E17036C76E07CB2AB3B7AC886B024AC
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Ints referenced in function NativeFunctions_IOS_cppGetInput_Ints_m334696328A08EFB33BCC433C3E285A69F801287A
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetMComboBoxItems referenced in function NativeFunctions_IOS_cppGetMComboBoxItems_mE3C053973CFC791A4AEEA401F357AB5C3AF99117
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Float referenced in function NativeFunctions_IOS_cppGetInput_Float_mDA56009ED9B5105ABFAD77942FE79A33B05EDD4E
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_Float referenced in function NativeFunctions_IOS_cppSetInput_Float_m8B7AB204510E5A958911FC9FD12F311C78AD9DC1
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppGetInput_Int referenced in function NativeFunctions_IOS_cppGetInput_Int_m28D4152E6184576594F33D516E2821E39CFC85C4
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error LNK2019: unresolved external symbol cppSetInput_Int referenced in function NativeFunctions_IOS_cppSetInput_Int_m1BF5AAAC67507301966C5A966253C4C417D7CBC2
    CD31949EBA50BD4FA4FE05EDABEC4DC0.obj : error<message truncated>
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,999
    Your script is calling into functions that don't exist on Windows:

    Code (csharp):
    1. NativeFunctions_IOS.cppInitSubstance
    2. NativeFunctions_IOS.cppSetCallbacks
    3. .
    4. .
    5. .
    Just #ifdef them out for Windows.
     
  3. seizestudios

    seizestudios

    Joined:
    Oct 18, 2016
    Posts:
    20
    Hello @Tautvydas-Zilys ,
    I'm having very similar issues using unity 2018.4.15.

    The thing is... My project was never intended for mobile, and I don't call those NativeFuncions ever.

    I tried to search inside my files to see if any plugin was doing it, but the only results were from the cpp files on my "Temp" folder.

    Do you have any other ideas to what could be triggering this issue?

    Thanks
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,999
    Do you have any precompiled DLLs in your project that call those functions? What are the exact errors coming from C++ linker? Which .cpp files contain those functions?
     
  5. seizestudios

    seizestudios

    Joined:
    Oct 18, 2016
    Posts:
    20
    @Tautvydas-Zilys thank you for your answer.
    The few .dll files I have on my project doesn't seen to be calling the functions (they are all plugins, I don't have access to the sourcecode, but I've disabled them all for the target platform).

    The .cpp files that I could found those functions were:
    Il2CppCompilerCalculateTypeValues_61Table.cpp
    Il2CppTypeDefinitions.cpp
    Il2CppMethodPointerTable.cpp
    Bulk_Substance.Game_0.cpp

    The full error is:

    Code (Boo):
    1. Failed running D:\Programas\Unity\Hub\Editor\2018.4.15f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="XboxOne" --architecture="x64" --configuration="Release" --outputpath="D:\Projetos\WTDParent\Temp\StagingArea\Data\Native\UserAssembly.dll" --cachedirectory="D:/Projetos/WTDParent/Assets/../Library/il2cpp_cache" --plugin="D:\Programas\Unity\Hub\Editor\2018.4.15f1\Editor\Data\PlaybackEngines\XboxOnePlayer\Tools\XboxOneIl2CppPlugin.dll" --additional-include-directories="D:\Programas\Unity\Hub\Editor\2018.4.15f1\Editor\Data\PlaybackEngines\XboxOnePlayer\Tools\il2cpp\bdwgc\include" --additional-include-directories="D:\Programas\Unity\Hub\Editor\2018.4.15f1\Editor\Data\PlaybackEngines\XboxOnePlayer\Tools\il2cpp\libil2cpp\include" --map-file-parser="D:\Programas\Unity\Hub\Editor\2018.4.15f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="D:\Projetos\WTDParent\Temp\StagingArea\Data\Managed" --generatedcppdir="D:\Projetos\WTDParent\Temp\il2cpp_temp\il2cppOutput"
    2.  
    3. stdout:
    4. Building UserAssembly.dll with MsvcXboxOneToolChain
    5.     Msvc Install Version: 14.0
    6.     Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
    7.     Msvc Linker Path: D:\Programas\Visual Studio\VC\bin\amd64\link.exe
    8.     Msvc Compiler Path: D:\Programas\Visual Studio\VC\bin\amd64\cl.exe
    9.  
    10.     Output directory: D:\Projetos\WTDParent\Temp\StagingArea\Data\Native
    11.     Cache directory: D:\Projetos\WTDParent\Library\il2cpp_cache
    12. ObjectFiles: 827 of which compiled: 3
    13.     Time Compile: 778 milliseconds Win32ApiXboxEmulation.cpp
    14.     Time Compile: 383 milliseconds mach_dep-durango.c
    15.     Time Compile: 306 milliseconds gccpch.cpp
    16. Total compilation time: 1163 milliseconds.
    17. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\Programas\Visual Studio\VC\bin\amd64\link.exe /out:"D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /NODEFAULTLIB:uuid.lib "d3d11_x.lib" "combase.lib" "kernelx.lib" "uuid.lib" "ws2_32.lib" "bcrypt.lib" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\Lib\amd64" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\vs2015\vc\lib\amd64" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\ucrt\lib\amd64" /SUBSYSTEM:WINDOWS /WINMD:NO /NODEFAULTLIB:advapi32.lib /NODEFAULTLIB:atl.lib /NODEFAULTLIB:atls.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:stlsn.lib /NODEFAULTLIB:atlsnd.lib /NODEFAULTLIB:comctl32.lib /NODEFAULTLIB:comsupp.lib /NODEFAULTLIB:dbghelp.lib /NODEFAULTLIB:gdi32.lib /NODEFAULTLIB:gdiplus.lib /NODEFAULTLIB:guardcfw.lib /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:mmc.lib /NODEFAULTLIB:msimg32.lib /NODEFAULTLIB:msvcole.lib /NODEFAULTLIB:msvcoled.lib /NODEFAULTLIB:mswsock.lib /NODEFAULTLIB:ntstrsafe.lib /NODEFAULTLIB:ole2.lib /NODEFAULTLIB:ole2autd.lib /NODEFAULTLIB:ole2auto.lib /NODEFAULTLIB:ole2d.lib /NODEFAULTLIB:ole2ui.lib /NODEFAULTLIB:ole2uid.lib /NODEFAULTLIB:ole32.lib /NODEFAULTLIB:oleacc.lib /NODEFAULTLIB:oleaut32.lib /NODEFAULTLIB:oledlg.lib /NODEFAULTLIB:oledlgd.lib /NODEFAULTLIB:oldnames.lib /NODEFAULTLIB:runtimeobject.lib /NODEFAULTLIB:shell32.lib /NODEFAULTLIB:shlwapi.lib /NODEFAULTLIB:strsafe.lib /NODEFAULTLIB:urlmon.lib /NODEFAULTLIB:user32.lib /NODEFAULTLIB:userenv.lib /NODEFAULTLIB:uuid.lib /NODEFAULTLIB:wlmole.lib /NODEFAULTLIB:wlmoled.lib /NODEFAULTLIB:ws2_32.lib @"C:\Users\PICHAU\AppData\Local\Temp\tmp246D.tmp"
    18.  
    19. Creating library D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.lib and object D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.exp
    20. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppInitSubstance referenced in function NativeFunctions_IOS_cppInitSubstance_m535A091E9D3D3893E6E861397A758C1A60747F5A
    21. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetCallbacks referenced in function NativeFunctions_IOS_cppSetCallbacks_m596CA98B88ABC921E971C839FF286E7E4BF09847
    22. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppIsValidGraphHandle referenced in function NativeFunctions_IOS_cppIsValidGraphHandle_m31AC20FA7D3228D563844C86F0267C6D97C84CF7
    23. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppApplyPreset referenced in function NativeFunctions_IOS_cppApplyPreset_m89E3485871679F728250602A5CEC1643C323F3AF
    24. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetPreset referenced in function NativeFunctions_IOS_cppGetPreset_mAD14080E5925C339AEC2510B20DCB5E27E562F3C
    25. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppListAssets referenced in function NativeFunctions_IOS_cppListAssets_mC7A2EE498167C8FBDE7EDA93396EBDA626817979
    26. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetNumOutputs referenced in function NativeFunctions_IOS_cppGetNumOutputs_m956D8BF347ED070546CA9470F95DDA01021B03EC
    27. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetNumOutputsAndTypes referenced in function NativeFunctions_IOS_cppGetNumOutputsAndTypes_mF6444AD65D994E08FA214BA650FF4DD9DB717359
    28. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetNumMainTextures referenced in function NativeFunctions_IOS_cppGetNumMainTextures_m23765E42AEA24ECE7E8E2A7EE97137C8C759DA3E
    29. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetTexturePackingList referenced in function NativeFunctions_IOS_cppGetTexturePackingList_mC32182207D911BA061A8954FC471A7ADD5FDF7B7
    30. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetColorSpaceList referenced in function NativeFunctions_IOS_cppGetColorSpaceList_m237156F850451B3F06D46D088FA338360A43D993
    31. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppFreeMemory referenced in function NativeFunctions_IOS_cppFreeMemory_m8A40D8F24632AECC7EF67FFCC07493AE24E924B0
    32. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetCreateSubstanceGraphCallbackEditorPtr referenced in function NativeFunctions_IOS_cppSetCreateSubstanceGraphCallbackEditorPtr_m80926C56D62B2338964013553A237AFACE7C209C
    33. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetMInputs referenced in function NativeFunctions_IOS_cppGetMInputs_mE93457C455ACD0B5EA6BA8A77CC8458C4C4FFBFA
    34. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppShutdownSubstance referenced in function NativeFunctions_IOS_cppShutdownSubstance_m4BD0A815583C50B82A5A8DB7B90E909F59D9C675
    35. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppRemoveAsset referenced in function NativeFunctions_IOS_cppRemoveAsset_mE6A8E4F7ABFDEB0B96C4DE9D41F69221E4B0D05C
    36. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppMoveAsset referenced in function NativeFunctions_IOS_cppMoveAsset_m9E2A7AB65AB31DE7CEA51748BB57A2863EAA487C
    37. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppLoadSubstance referenced in function NativeFunctions_IOS_cppLoadSubstance_mFB2807F103D31BB590EC6D6BEA24B64FEFBF9395
    38. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppQueueSubstance referenced in function NativeFunctions_IOS_cppQueueSubstance_m156CD4BF6F72EE5646C21F30AB3D7130D5472952
    39. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppRenderSubstances referenced in function NativeFunctions_IOS_cppRenderSubstances_m3AD9D07BDBB0F0676CC2C40A01E73DCCEDDA9F76
    40. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppIsRendererBusy referenced in function NativeFunctions_IOS_cppIsRendererBusy_m21F9EC9EDE81F11E108D95A95F0976AEE8012A9A
    41. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetDirtyOutputs referenced in function NativeFunctions_IOS_cppSetDirtyOutputs_m48745A327D0F4263795F693009F3C7940A221FC5
    42. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetNumInputs referenced in function NativeFunctions_IOS_cppGetNumInputs_m2CB01081557B6D905962A8F4653CAECAFAA9DBE1
    43. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetInput_Ints referenced in function NativeFunctions_IOS_cppGetInput_Ints_m3528DDE2D5842F75D52D74986C9A7279BC72AA8F
    44. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetMComboBoxItems referenced in function NativeFunctions_IOS_cppGetMComboBoxItems_mE3DF88C93E0673315D657FF3CFC35FFF5BFA5B72
    45. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetInput_Float referenced in function NativeFunctions_IOS_cppGetInput_Float_m8B3AAF95411D70DACC2227599DA2FB6339C249A0
    46. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetInput_Float referenced in function NativeFunctions_IOS_cppSetInput_Float_m0EBEFEAE8B675E908E92662AD8EF1CCCAEADE7C4
    47. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetInput_Int referenced in function NativeFunctions_IOS_cppGetInput_Int_m09567A7EAADFE494140EC1FAB94382ED7DDCD47D
    48. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetInput_Int referenced in function NativeFunctions_IOS_cppSetInput_Int_m9E7C9966CE6E37EBCAAFE1350FFE5583DB7CD955
    49. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetInput_String referenced in function NativeFunctions_IOS_cppSetInput_String_m7E3A5B01AF68C175B98D91D1D97D1FEE3FAC7086
    50. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetInput_String referenced in function NativeFunctions_IOS_cppGetInput_String_m62C29F8DF1E8824FD309EAC66516FA293F9CC3B3
    51. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppSetInput_Texture referenced in function NativeFunctions_IOS_cppSetInput_Texture_m0439982D9AF83C8D599F62ACC6A08929BD780671
    52. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppProcessQueuedOutputs referenced in function NativeFunctions_IOS_cppProcessQueuedOutputs_m5F930BF4A8E42A32A104EE2C598CFF1125509BB5
    53. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetOutputLabelFromHash referenced in function NativeFunctions_IOS_cppGetOutputLabelFromHash_m6DD16E28D31C1D12C2859A9ECBB1E00FFC40A6DF
    54. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppIsImageOutputFromHash referenced in function NativeFunctions_IOS_cppIsImageOutputFromHash_m5ECACD65F8C50F81FE2EDF75DC54015A466F7255
    55. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetOutputChannelStrFromHash referenced in function NativeFunctions_IOS_cppGetOutputChannelStrFromHash_m3038A7492F395F9C920C9EA544886FCB8075574B
    56. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppOnGenerateMipMapsChanged referenced in function NativeFunctions_IOS_cppOnGenerateMipMapsChanged_m5B9AB929AB347B4C971F5B4AC8815D97D70A5575
    57. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppOnAlphaSourceChanged referenced in function NativeFunctions_IOS_cppOnAlphaSourceChanged_mA2F011A24EBEBF10FB147C6B3380ED11CBA312E1
    58. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetTextureDimensions referenced in function NativeFunctions_IOS_cppGetTextureDimensions_m24E68347A60FCE3A4BF3978092304612F46532CD
    59. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppDuplicateGraphInstance referenced in function NativeFunctions_IOS_cppDuplicateGraphInstance_m7897634A1177F81E2CB67DFB2482A62B25BDB2F8
    60. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppRemoveGraphInstance referenced in function NativeFunctions_IOS_cppRemoveGraphInstance_mBE2DC4161684E977A9A5BEAF33F48372665B992E
    61. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppListInputs referenced in function NativeFunctions_IOS_cppListInputs_m9ACE7820A7B4F1DEA502B171AF5ADB29EE2AFE3C
    62. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetChannelNames referenced in function NativeFunctions_IOS_cppGetChannelNames_m97D0F333FB279C03E462089C339F2F4E8BC1C45B
    63. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetOutputHash referenced in function NativeFunctions_IOS_cppGetOutputHash_m780F4A919E1BB134EEF95DF7421636D22200D0E8
    64. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetEngineVersion referenced in function NativeFunctions_IOS_cppGetEngineVersion_m2C0530EA844A9DDC9E457100845DD91E2942618F
    65. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppGetNumberOfDuplicatedGraphs referenced in function NativeFunctions_IOS_cppGetNumberOfDuplicatedGraphs_m819CF2F6BA688BE875EC60F1B0EE107DE22A9F7F
    66. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresolved external symbol cppComputeOldFileID referenced in function NativeFunctions_IOS_cppComputeOldFileID_m7496B5418F608D06E9204804BD5FC23D870493A5
    67. D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.dll : fatal error LNK1120: 47 unresolved externals
    68.  
    69.   em Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    70.   em Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    71.   em il2cpp.Program.DoRun(String[] args)
    72.   em il2cpp.Program.Run(String[] args)
    73.   em il2cpp.Program.Main(String[] args)
    74. stderr:
    75.  
    76. Exce��o Sem Tratamento: Unity.IL2CPP.Building.BuilderFailedException: D:\Programas\Visual Studio\VC\bin\amd64\link.exe /out:"D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /NODEFAULTLIB:uuid.lib "d3d11_x.lib" "combase.lib" "kernelx.lib" "uuid.lib" "ws2_32.lib" "bcrypt.lib" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\Lib\amd64" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\vs2015\vc\lib\amd64" /LIBPATH:"C:\Program Files (x86)\Microsoft Durango XDK\180709\xdk\ucrt\lib\amd64" /SUBSYSTEM:WINDOWS /WINMD:NO /NODEFAULTLIB:advapi32.lib /NODEFAULTLIB:atl.lib /NODEFAULTLIB:atls.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:stlsn.lib /NODEFAULTLIB:atlsnd.lib /NODEFAULTLIB:comctl32.lib /NODEFAULTLIB:comsupp.lib /NODEFAULTLIB:dbghelp.lib /NODEFAULTLIB:gdi32.lib /NODEFAULTLIB:gdiplus.lib /NODEFAULTLIB:guardcfw.lib /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:mmc.lib /NODEFAULTLIB:msimg32.lib /NODEFAULTLIB:msvcole.lib /NODEFAULTLIB:msvcoled.lib /NODEFAULTLIB:mswsock.lib /NODEFAULTLIB:ntstrsafe.lib /NODEFAULTLIB:ole2.lib /NODEFAULTLIB:ole2autd.lib /NODEFAULTLIB:ole2auto.lib /NODEFAULTLIB:ole2d.lib /NODEFAULTLIB:ole2ui.lib /NODEFAULTLIB:ole2uid.lib /NODEFAULTLIB:ole32.lib /NODEFAULTLIB:oleacc.lib /NODEFAULTLIB:oleaut32.lib /NODEFAULTLIB:oledlg.lib /NODEFAULTLIB:oledlgd.lib /NODEFAULTLIB:oldnames.lib /NODEFAULTLIB:runtimeobject.lib /NODEFAULTLIB:shell32.lib /NODEFAULTLIB:shlwapi.lib /NODEFAULTLIB:strsafe.lib /NODEFAULTLIB:urlmon.lib /NODEFAULTLIB:user32.lib /NODEFAULTLIB:userenv.lib /NODEFAULTLIB:uuid.lib /NODEFAULTLIB:wlmole.lib /NODEFAULTLIB:wlmoled.lib /NODEFAULTLIB:ws2_32.lib @"C:\Users\PICHAU\AppData\Local\Temp\tmp246D.tmp"
    77.  
    78. Creating library D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.lib and object D:\Projetos\WTDParent\Library\il2cpp_cache\linkresult_4F635F8E3A4D30DAFC055585E19FBD4F\UserAssembly.exp
    79. FDEB29EE1374AB9F9CB3F25B966D8058.obj : error LNK2019: unresol<message truncated>
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,999
    Substance.Game.dll is responsible for these errors. It doesn't seem to be excluded from the build.
     
  7. seizestudios

    seizestudios

    Joined:
    Oct 18, 2016
    Posts:
    20
    You were right... I don't know why unity didn't show me Substance when I searched for dlls.
    Fixing it made my build run.

    Thank you!
     
  8. hkdev_unity

    hkdev_unity

    Joined:
    Sep 18, 2018
    Posts:
    1
    What was the fix? It wasn't just excluding the dll from the build was it?
     
  9. seizestudios

    seizestudios

    Joined:
    Oct 18, 2016
    Posts:
    20
    I had updated my Unity to a minor version (was using 2018.3 for a long time, then I switched to the last on 2018 series) and haven't updated the Substance plugin to the right version.

    Updating it solved my issue.
     
unityunity