Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Igor2808 · Sep 28, 2014 at 09:58 PM · linuxfallback

Fallback handler could not load lib under Linux (.so)

Hi all!

This is the first time I'm publishing an issue at this kind of resource, so excuse my for mistakes.

I'm developing an application, which uses third-part library (Guardant, for hardware protection). This library is a .NET assembly, which provides an API for native library. For example, WinAPI.dll is a native lib for windows, LinuxAPI.so for linux, and DotNetApi.dll is .NET assembly for managing protection functions in .NET.

Project has a link to DotNetApi.dll, which provides function SetPathToNativeApi. This function allows to change currently active native library (it is WinAPI.dll by default). Therefore, for Linux I use this function to access Linux API. Function usage is like this:

 using Guardant;
 
 class Protector{
 
     public void Init(){
         GrdApi.SetPathToNativeLib("/home/developer/GrdLibs/", "LinuxAPI_x32.so", "LinuxAPI_x64.so");
     }
 
 }

In console projects, developed in Mono, all is OK, libs are found at provided directory and successfully loaded. But when I try to use this library in Unity, it fails to load linux lib.

I haven't found Unity under Linux, so I can't launch it it editor and debug. I am just building project under Mac OS (and tried under Windows, no matter), then start on Linux, it works, but failes to load native library provided. Here is log I receiving:

 Fallback handler could not load library /home/developer/UnityProjects/SubwayDebug/Subway_Linux_Debug_Data/Mono/x86_64/home/developer/GrdLibs/LinuxAPI_x64.so

where /home/developer/GrdLibs/ is a full path to lib, passed in the first argument in the code above. I tried to put library to the path from log, it didn't help (to give "/" as a first argument). Library is found successfully (File.Exists returns true).

I saw another topics with the same problem (for example, http://answers.unity3d.com/questions/606854/fallback-handler-could-not-load-library.html), but I don't see any dependencies from native libraries, and it works in console applications, so there should be another reason for this problem, in some Unity behavior I suppose.

I would like to read any suggestions of how can I make this stuff work :)

Comment
Add comment · Show 1
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 Igor2808 · Oct 01, 2014 at 03:37 PM 0
Share

Does anybody have any ideas? By the way: I checked my lib with "ldd" util under Linux Ununtu x64, and it didn't show any dependencies. Console app loads it successfully. Are there any problems in my post content? Why nobody gave an answer yet?

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

How can I run it on Linux? 4 Answers

Would it be possible to build Unity projects from Linux? 1 Answer

Unity in linux plans after the announcement of SteamOS? 2 Answers

Ubuntu Master Server - compiler error 1 Answer

Linux Standalone and Japanese 0 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