question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin 'libsteam_api.so' is used from several locations

See original GitHub issue

Hey, I am trying to upgrade to a newer version of the library, as I was suddenly having this problem https://github.com/rlabrecque/Steamworks.NET/issues/350 (except for me all the issues are happening in Mac) and I am unable to do so.

I first tried to upgrade - download from the master branch and replace the files in Assets, specifically everything under Editor and Plugins. I was having a issue saying that steam_api.bundle is damaged and should be moved to bin.

After unsuccessfully trying to work it out for some time and headache, I decided to completely remove everything from Steamworks from my game and then reinstall it from scratch. I deleted manually:

  • Assets/Editor
  • Assets/Plugins/Steamworks.NET
  • Assets/Plugins/steam_api.bundle
  • Assets/Plugins/x86_64
  • Assets/Plugins/x86

I mean I deleted everything from those folders and even the metafiles. Then I downloaded master and added Editor and content of Plugins under Assets. I also tried to download the last release (even though that is behind the master) and import it via Unity importer, I tried both approaches separately but got the same issue.

When I am building the mac build, I get this error:

Plugin 'libsteam_api.so' is used from several locations:
 Assets/Plugins/x86/libsteam_api.so would be copied to <PluginPath>/libsteam_api.so
 Assets/Plugins/x86_64/libsteam_api.so would be copied to <PluginPath>/libsteam_api.so
Please fix plugin settings and try again.

UnityEditor.Modules.DefaultPluginImporterExtension:CheckFileCollisions (string)
UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

My guess is I did not deleted everything and I somehow still have multiple versions? I am quite desperate as I do not know how to make it work, how to completely remove it, upgrade, install… nothing …

I would appreciate any help or advice on how to proceed to just make it work with the newest version … Thanks!

P.S. my Unity version: 2020.2.3f1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
rlabrecquecommented, May 5, 2021

That change hasn’t made it’s way into a release yet, will likely take a few weeks.

As of that change Steamworks.NET can now be installed from the Unity Package Manager though!

https://github.com/rlabrecque/Steamworks.NET/issues/389#issuecomment-830982635

2reactions
RobDonovancommented, Feb 17, 2021

I’m also getting this error.

I was on Unity 2018.4 and version 13.0.0 of Steamworks.NET

Just upgraded to 2019.4 and version 14.0.0 of Steamworks.NET

I compile for Windows 64, Linux 64 and Mac Universal, through the Unity cloud build.

Everything is ok for Win and Linux, but Mac build fails with: 13415: [Unity] ERROR: Plugin ‘libsteam_api.so’ is used from several locations: 13416: [Unity] Assets/Plugins/x86_64/libsteam_api.so would be copied to <PluginPath>/libsteam_api.so 13417: [Unity] Assets/Plugins/x86/libsteam_api.so would be copied to <PluginPath>/libsteam_api.so 13418: [Unity] Please fix plugin settings and try again.

Now, plugins are new to me, and I dont fully understand them yet.

I’m not sure why Unity is trying to copy the libsteam_api.so files for the Mac build. The settings are as the default and is currently set to not be for ‘Max OS X’ on the x86 version, but it IS included for the x86_64 version. Not sure why the x86_64 version is set for Mac, I thought it would only need the 'libsteam_api.dylib from the bundle folder.

As suggested in the other thread, it looks like there is a Unity error, with the x86 version and it not being flaged for Mac OS X, but it still tries to copy it during the build.

And then the other confusing thing, is that for Windows it seems to put the dll(s) into 2 seperate folders (x86 or x86_64), but on the Mac it just drops them into the root plugin folder. So that is why I’m getting the error, because it’s trying to put the 2 different .so files into the root.

Since I’m not targetting x86 builds, I think it is ok for me to just select Exclude platforms ‘Standalone’ on the x86 libsteam_api and then it doesn’t copy that .so

I still get the x86_64 verion copied on the Mac though, but I guess that will just get ignored, or should I set that to not be ‘Mac OS X’ also, since Mac wont use that?

Am I right in my thinking?

Any help would be appricated, as I’m a bit unsure here. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin 'libsteam_api.so' is used from several locations -
I am trying to upgrade to a newer version of the library, as I was suddenly having this problem https://github.com/rlabrecque/Steamworks.NET/ ...
Read more >
Error Newtonsoft.Json.dll when I tried to build my game on ...
Plugin 'libsteam_api.so' is used from several locations: Assets/Plugins/x86_64/libsteam_api.so would be copied to <PluginPath>/libsteam_api.
Read more >
Game will not start :: Hidden Folks Bugs
I have tried restarting steam and my computer multiple times with no ... /Contents/Frameworks/MonoEmbedRuntime/osx/libsteam_api.so Fallback ...
Read more >
Server plugins
Server plugins are C++ code libraries that modify the behaviour of dedicated servers. They are used to provide everything from maintenance ...
Read more >
"Plugin 'libfmodstudio.so' in several locations" && ...
Plugin 'libfmodstudio.so' is used from several locations:… This issue was caused by a conflict in meta files and has been fixed for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found