Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
0
Question by qbrandon · Nov 27, 2015 at 10:39 AM · androidil2cpplibraries

Can an IL2CPP android build include static libraries?

Our project is facing issues of this kind: http://issuetracker.unity3d.com/issues/android-slash-il2cpp-shared-library-on-il2cpp-built-apk-does-not-load-and-causes-dllnotfoundexception

However, while not having access to the source code of the 3rd-party lib which we wish to use, we do have a static version of it.

It appears that .so files inside Plugin/Android are magically copied to the appropriate place in the final apk, but dropping a .a file there does not mean it is included in the link command generating il2cpp.so.

Is there, by any chance, a way to let Unity know about static libraries to be linked against?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Yury-Habets · Nov 27, 2015 at 11:03 AM

We don't support static libraries, at least at the moment.

Your bug with "dll not found" was fixed, and is planned to get into 5.2 patch release as well.

Comment
Add comment · Show 3 · 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 sdc-unity3d · Sep 09, 2016 at 09:09 PM 0
Share

With the latest Unity 5.4 where il2cpp android goes official, does this impediment remains? I mean, unable to link to a static lib?

Thanks

avatar image Yury-Habets ♦♦ · Sep 12, 2016 at 05:20 PM 0
Share

No static libs are not supported for Android IL2CPP at the moment.

Why would you want to use it?

Anyway - if you have a static lib that you want to make use, it's easy to link it into a .so and use it as a native plugin.

avatar image hogwash Yury-Habets ♦♦ · Jul 07, 2017 at 05:20 AM 0
Share

It would greatly help with hacking, for example we use S$$anonymous$$mworks via a DLL which can simply be replaced with a hacked copy. If this code was statically linked into the exe it would make it harder for our game to cracked.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

Memory usage in Profiler much less than on actual device 1 Answer

Native plugin JNI_OnLoad/UnitySetGraphicsDevice not called when using IL2CPP on Android 0 Answers

Why IL2CPP increases ANR percent ? 1 Answer

Failed to compress IL2CPP symbol files in android build 0 Answers

Export failed with Il2cpp on Android 1 Answer


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