Monodevelop抛出以下异常System.DllNotFoundException:SDL2.dll

时间:2013-09-25 06:53:16

标签: c# sdl monodevelop monogame

更确切地说,这是我尝试运行使用monogame构建的应用程序时出现的错误:

System.DllNotFoundException: SDL2.dll
  at (wrapper managed-to-native) SDL2.SDL:SDL_SetMainReady ()
  at Microsoft.Xna.Framework.SDL2_GameWindow..ctor () [0x00000] in <filename unknown>:0
  at Microsoft.Xna.Framework.SDL2_GamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
  at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
  at Microsoft.Xna.Framework.Game..ctor () [0x00000] in <filename unknown>:0
  at MovingTeddyBears.Game1..ctor () [0x00000] in <filename unknown>:0
  at MovingTeddyBears.Program.Main () [0x00000] in /home/Dan/Desktop/MonoDevelopPrograms/LinuxMonoGameMovingTeddyBears/Program.cs:19

编译程序时没有错误,但是当我运行它时,我得到了上面的输出。 我正在linux上运行monodevelop 3.0.3

ldconfig -p | grep libSDL2
    libSDL2_image-2.0.so.0 (libc6,x86-64) => /usr/local/lib/libSDL2_image-2.0.so.0
    libSDL2-2.0.so.0 (libc6,x86-64) => /usr/local/lib/libSDL2-2.0.so.0

欢迎任何帮助,请帮我解决此问题。

0 个答案:

没有答案