Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Tizen : DllNotFoundException

Discussion in 'Tizen' started by Jonny-Roy, Nov 18, 2015.

  1. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    I'm getting DllNotFoundException on Tizen with a simple plugin, the Plugin (TizenShared.zip) and the Asset folder (TizenTest.zip) are attached, it's including the plugin in the build as I can see it in the tpk, but for some reason it can't find it, the error message is:

    11-18 11:52:19.413 : INFO / Unity ( 4862 : 4862 ) : Couldn't open /opt/usr/apps/com.BubbleByte.TizenTest/lib/libtizenshared.so, error: /opt/usr/apps/com.BubbleByte.TizenTest/lib/libtizenshared.so: cannot open shared object file: No such file or directory

    So the question is whats going wrong here? Has anyone got a simple plugin working that would be able to share the code as a sample?

    Thanks,

    Jon
     

    Attached Files:

  2. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
  3. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Yes, followed it to the letter, I also tried 5.2.2p3 and 5.3RC1 I get the same issue on both.
     
  4. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
    Ah, I see. Your shared library is built for x86. Rebuild it for ARM in the Tizen IDE.
     
    Grizmu likes this.
  5. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Perfect that sorted it!

    For anyone coming across this, it's not 100% clear where you change the build target to Arm, this is how you do it:

    1) Select your project and perform mouse click (right button)
    2) select Properties-> C/C++ Build-> Tizen Setiings->Platform
    3) change Architecture to Arm from x86

    Once you do that and rebuild the above works great, so you can use it as a basis for getting your plugin going!

    Thanks Masterfalcon, you rock!
     
    maxinteractive, Grizmu and Wadjey like this.
  6. rakyatmiskin

    rakyatmiskin

    Joined:
    May 19, 2013
    Posts:
    4
    Hi...
    I already try to change the architecture but still get the DLLNotFoundException....
    I try it in editor.. not in the device.. or plugin method is only can be done using the device properly?
     
  7. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    It can only be done on the device, for the Editor you can write a simple c# stub class to emulate the functionality.