• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by privalgames · May 28, 2019 at 07:06 AM · erroril2cpperror buildcompilearmv7

I have the following error when trying to compile in Il2cpp...

I have the following error when trying to compile in Il2cpp

Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Client\trunk\RGame\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Client\trunk\RGame\Assets..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/Developer-GameBear/AppData/Local/Android/sdk-unity/ndk-bundle" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\DOTween.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Facebook.Unity.Settings.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\UI_SpriteAsset.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Facebook.Unity.Android.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Facebook.Unity.IOS.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Firebase.App.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Mono.Security.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\mscorlib.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\Stores.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\System.Core.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\System.dll" --assembly="D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Purchasing.dll" --generatedcppdir="D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput"

stdout: Building libil2cpp.so with AndroidToolChain. Output directory: D:\Client\trunk\RGame\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a Cache directory: D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache ObjectFiles: 612 of which compiled: 0 Total compilation time: 680 milliseconds. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\Developer-GameBear\AppData\Local\Android\sdk-unity\ndk-bundle\toolchains\llvm-3.6\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Developer-GameBear\AppData\Local\Temp\tmpF06.tmp" -o "D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_06C30BE19AE5890DD354C27780632DA1\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\Developer-GameBear\AppData\Local\Android\sdk-unity\ndk-bundle\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\Developer-GameBear\AppData\Local\Android\sdk-unity\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\Developer-GameBear\AppData\Local\Android\sdk-unity\ndk-bundle\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -Xlinker -Map="D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_06C30BE19AE5890DD354C27780632DA1\libil2cpp.map" -fuse-ld=bfd

D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_init_m632610565': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6567: undefined reference to init' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_logout_m1517745172': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6595: undefined reference to logout' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_activateApp_m486839488': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6605: undefined reference to activateApp' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_logPurchase_m2381031734': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6629: undefined reference to logPurchase' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_ui_m3813026227': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6659: undefined reference to ui' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_initScreenPosition_m2309792883': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6681: undefined reference to initScreenPosition' D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6681: undefined reference to initScreenPosition' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_logout_m1517745172': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6595: undefined reference to logout' D:\Client\trunk\RGame\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\B41FC0C272C213A51F258B693527354D.o: In function CanvasFacebook_activateApp_m486839488': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6605: undefined reference to `activateApp' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image

Answer by Darioszka · May 28, 2019 at 07:59 AM

I'm not sure if I remember correctly but I think I downloaded another Ndk (remove the path in Unity to ndk and during build select the option to find the right version on the Internet itself)

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by JoshPeterson · May 28, 2019 at 01:19 PM

It looks like the relevant error message is:

In function CanvasFacebook_init_m632610565': D:\Client\trunk\RGame\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:6567: undefined reference to init'

This usually indicates there is managed code (C#) in the project in an assembly named Facebook.Unity.dll which has a extern method named init in a class named CanvasFacebook. This extern method must have a native method of the same name ("init") available in the build process. It looks like this method is not available. Should there be a corresponding native library in the build?

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

140 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

¿Por qué ya no puedo compilar libil2cpp?... error. 0 Answers

How to Solve, Build Android IL2CPP- Error adding Symbols: Memory exhausted clagn++: error linker command failed with exit code 1 0 Answers

WebCamTexture can't play virtual camera? Couldn't config the stream!Could not find specified video device! 0 Answers

Gradle build failed : "Could not get unknown property 'GradleVersion' " 1 Answer

compile error. does not denote a valid type. 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges