Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DesktopGL template has wrong names of librarys for Mac #5044

Closed
kennethsuda opened this issue Jul 28, 2016 · 1 comment · Fixed by #5045
Closed

DesktopGL template has wrong names of librarys for Mac #5044

kennethsuda opened this issue Jul 28, 2016 · 1 comment · Fixed by #5045

Comments

@kennethsuda
Copy link

After downloading the current dev install for XS on MacOS and creating a new project using the Cross Platform template, I am getting the following error below. The MonoGame.Framework.dll.config has the wrong filename for the SDL2 and openal libraries to match the actual files included in the project for the Mac. I am guessing this comes from ./ThirdParty/Dependencies/MonoGame.Framework.dll.config.

These two lines:

        <dllmap dll="SDL2.dll" os="osx" target="libSDL2.dylib"/>
        <dllmap dll="soft_oal.dll" os="osx" target="libopenal.dylib" />

Should be changed to:

    <dllmap dll="SDL2.dll" os="osx" target="libSDL2-2.0.0.dylib" />
    <dllmap dll="soft_oal.dll" os="osx" target="libopenal.1.dylib" />

Error:

Unhandled Exception:
System.DllNotFoundException: libSDL2.dylib
  at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&)
  at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00033] in <filename unknown>:0 
  at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0 
  at Microsoft.Xna.Framework.Game..ctor () [0x001fb] in <filename unknown>:0 
  at TestMonoCommon.Game1..ctor () [0x000ba] in /Users/ksuda/Documents/My Xarmarin Projects/TestMono/TestMonoCommon/Game1.cs:67 
  at TestMonoMac1.Program.Main (System.String[] args) [0x00006] in /Users/ksuda/Documents/My Xarmarin Projects/TestMono/TestMonoMac1/Main.cs:23 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libSDL2.dylib
  at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&)
  at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00033] in <filename unknown>:0 
  at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0 
  at Microsoft.Xna.Framework.Game..ctor () [0x001fb] in <filename unknown>:0 
  at TestMonoCommon.Game1..ctor () [0x000ba] in /Users/ksuda/Documents/My Xarmarin Projects/TestMono/TestMonoCommon/Game1.cs:67 
  at TestMonoMac1.Program.Main (System.String[] args) [0x00006] in /Users/ksuda/Documents/My Xarmarin Projects/TestMono/TestMonoMac1/Main.cs:23 
@mrhelmut
Copy link
Contributor

You're right!
This has been fixed in MonoGame/MonoGame.Dependencies#87 but we still need to upgrade the submodule of the main repo. I've created PR #5045 to get it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants