- Home /
il2cpp compilation error
tried to compile Hello World example C# => C++ => EXE, but it's failing to find "Libil2cppLackey.dll"
anyone has encountered this before?
Answer by djkaty · Feb 12, 2021 at 06:20 PM
The correct answer is that you can only create DLLs with more recent versions of il2cpp, it used to be possible to generate EXE files directly but this was dropped/is broken as of Unity 2019.
if only creating a DLL works, then how should the HelloWorld C# source code be modified to become the entry point, or an exported ordinal, that can be invoked via rundll32
?
Unless you want to create a harness with the canned windows .exe stub and UnityPlayer.dll that ship with Unity, or make a an app that imports the DLL and calls il2cpp_init yourself, you don't. Create a Unity project with Unity. The standalone build tool in Il2CppInspector is really only intended for test case generation whereby the output files are fed into Il2CppInspector for compatibility integration tests, it is not for creating complete applications. To make a Unity application, you should use Unity :)
ah okay, i was just exploring whether this could be an obfuscator for an implant
Answer by evandrix · Feb 10, 2021 at 02:27 PM
sure, i was trying to follow https://katyscode.wordpress.com/2020/06/24/il2cpp-part-1
il2cpp.exe didn't catch exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'toolchain\il2cpp\Libil2cppLackey'.
Thanks for the details. Unity only supports use of il2cpp.exe via the Unity editor. This use of the in a standalone capacity is not supported.