Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Editor: x86 support for 32 bit c++ library

Discussion in 'Unity 5 Pre-order Beta' started by Lunatix, Feb 15, 2015.

  1. Lunatix

    Lunatix

    Joined:
    Dec 28, 2012
    Posts:
    11
    Hi!

    I'm trying to create a project with uses a native library and also wrote a wrapper library in managed code for it.
    The only problem i am facing is, that the library is build for x86 machine and does not provide x86_64 or x64 builds (I would like to integrate libspotify into my project).

    When I build the application, standalone x86, everything works fine - but since the editor runs as x64, I get a DllNotFoundException since it expects a x86_64 or x64 library.

    Is there any chance to run the editor in x86 mode? Or simply, execute the game in x86 mode when one hit's the play button?
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    You need to use the 32-bit version of the editor (different install)
     
  3. Lunatix

    Lunatix

    Joined:
    Dec 28, 2012
    Posts:
    11
  4. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
  5. Lunatix

    Lunatix

    Joined:
    Dec 28, 2012
    Posts:
    11
    Oups ._.

    Thank you very much, didn't saw this :)