1
這是我在pi論壇的第一篇文章。我的pi在昨天抵達,我真的很高興能讓我的應用程序在pi上運行。讓MonoGame在Raspberry Pi上工作
我想要做以下...我想用播放列表中的當前歌曲做一個簡單的播放列表。只需顯示前4首歌曲的封面。我已經使用XNA在VB.Net中完成了這項工作。我嘗試將它移植到monogame,在PI上運行時使用了OpenTK的GraphicsModeException
。
即使是一個很小的"Hello World"
字符串呈現失敗,出現相同的異常。全部通過簡單的spritebatch渲染完成
有什麼建議嗎?
編輯:來源和錯誤 來源:https://bitbucket.org/S3NS4Ti0N/coverflow-test
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.GraphicsContext ---> System.PlatformNotSupport edException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGetCurrentGraphicsContext() [0x00000] in <filename unknown>:0
at OpenTK.Graphics.GraphicsContext..cctor() [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.OpenTKGameWindow.Initialize() [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.OpenTKGameWindow..ctor() [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.OpenTKGamePlatform..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 CoverFlow.Game1..ctor() [0x00000] in <filename unknown>:0
at CoverFlow.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.GraphicsContext ---> System.Plat formNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGetCurrentGraphicsContext() [0x00000] in <filename unknown>:0
at OpenTK.Graphics.GraphicsContext..cctor() [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.OpenTKGameWindow.Initialize() [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.OpenTKGameWindow..ctor() [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.OpenTKGamePlatform..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 CoverFlow.Game1..ctor() [0x00000] in <filename unknown>:0
at CoverFlow.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
是的,請分享您正在嘗試的代碼,以及拋出的適用錯誤/異常。 – admdrew
你走了... – Alex