2017-04-18 3 views
1

I'am :Monogame sdl2 오류 라이더와 함께 monogame를 사용하여 프로젝트에 대한 기본 템플릿을 만들려고 노력

https://github.com/bussiere/MonoGameRiderTemplate

지금까지 지금은 sdl2 오류가 너무 좋은 :

Unhandled Exception: 
System.DllNotFoundException: SDL2.dll 
at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&) 
at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) <0x412db940 + 0x000f7> in :0 
at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) <0x412db290 + 0x00027> in :0 
at Microsoft.Xna.Framework.Game..ctor() <0x412d8250 + 0x008d3> in :0 
at Example.Game1..ctor() <0x412d7f50 + 0x0000f> in :0 
at Example.Program.Main() <0x412d7d50 + 0x00027> in :0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: SDL2.dll 
at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&) 
at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) <0x412db940 + 0x000f7> in :0 
at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) <0x412db290 + 0x00027> in :0 
at Microsoft.Xna.Framework.Game..ctor() <0x412d8250 + 0x008d3> in :0 
at Example.Game1..ctor() <0x412d7f50 + 0x0000f> in :0 
at Example.Program.Main() <0x412d7d50 + 0x00027> in :0 

내가 내가 https://github.com/bussiere/MonoGameRiderTemplate/tree/master/Example/lib

Example/lib/ 
에 올려 적이없는 lib에는 sdl2에서 나온 생각 사람이 어떤 아이디어가 그래서 경우

https://github.com/bussiere/MonoGameRiderTemplate/blob/master/Example/MonoGame.Framework.dll.config

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <dllmap dll="SDL2.dll" os="osx" target="./lib/darwin-x86_64/libSDL2-2.0.0.dylib"/> 
    <dllmap dll="soft_oal.dll" os="osx" target="./lib/darwin-x86_64/libopenal.1.dylib" /> 
    <dllmap dll="SDL2.dll" os="linux" cpu="x86" target="./lib/linux-i686/libSDL2-2.0.so.0"/> 
    <dllmap dll="soft_oal.dll" os="linux" cpu="x86" target="./lib/linux-i686/libopenal.so.1" /> 
    <dllmap dll="SDL2.dll" os="linux" cpu="x86-64" target="./lib/linux-x86_64/libSDL2-2.0.so.0"/> 
    <dllmap dll="soft_oal.dll" os="linux" cpu="x86-64" target="./lib/linux-x86_64/libopenal.so.1" /> 
</configuration> 

...

감사와 안부 :

와 나는 솔루션이 MonoGame.Framework.dll.config 파일에있을 수 있다고 생각

답변

1

나는 똑같은 문제에 직면했다. SDL2가 설치되지 않은 것으로 나타났습니다.

2 개 개의 필요한 패키지는 다음과 같습니다

  • libsdl2-2.0-0
  • libsdl2-DEV
1

이 솔루션은 2.0.5 이상으로 SDL을 업데이트하는 것입니다 (이 필수 확실하지 않음) 최신 버전

관련 문제