Hello Guest

Author Topic: MonoDevelop - Fedora 25 - mono 4.8.0  (Read 359 times)

0 Members and 1 Guest are viewing this topic.

mythcat

  • Member
  • Posts: 1
    • View Profile
MonoDevelop - Fedora 25 - mono 4.8.0
« on: February 18, 2017, 10:46:52 AM »
I need help with Fedora 25 linux , mono version 4.8.0 with this source code:
Code: [Select]
using Otter;

namespace otter_001
{
class Player : Entity
{
public Player(float x, float y) : base(x, y)
{
this.AddGraphic(Image.CreateCircle(120, Color.Red));
}
}


class Program
{
static void Main(string[] args)
{
Game game = new Game();
game.Color = Color.White;

Scene scene = new Scene();

Entity entity1 = new Player(0,0);
scene.Add(entity1);

game.Start(scene);
}
}
}
using MonoDevelop with Otter package
the result is this:
Code: [Select]
Debug]$ mono otter_001.exe

Unhandled Exception:
System.DllNotFoundException: csfml-graphics-2
  at (wrapper managed-to-native) SFML.Graphics.VertexArray:sfVertexArray_create ()
  at SFML.Graphics.VertexArray..ctor (SFML.Graphics.PrimitiveType type) [0x00000] in <4627602695ae459198965b45eda5cf65>:0
  at Otter.Graphic..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Image..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height, Otter.Color color) [0x0001d] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height) [0x00008] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Game..ctor (System.String title, System.Int32 width, System.Int32 height, System.Int32 targetFramerate, System.Boolean fullscreen) [0x0030e] in <671bea10edbe4cdca82eebf0945869ac>:0
  at otter_001.Program.Main (System.String[] args) [0x00001] in <30890a970f3947e19de2283312e9da8c>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: csfml-graphics-2
  at (wrapper managed-to-native) SFML.Graphics.VertexArray:sfVertexArray_create ()
  at SFML.Graphics.VertexArray..ctor (SFML.Graphics.PrimitiveType type) [0x00000] in <4627602695ae459198965b45eda5cf65>:0
  at Otter.Graphic..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Image..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height, Otter.Color color) [0x0001d] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height) [0x00008] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Game..ctor (System.String title, System.Int32 width, System.Int32 height, System.Int32 targetFramerate, System.Boolean fullscreen) [0x0030e] in <671bea10edbe4cdca82eebf0945869ac>:0
  at otter_001.Program.Main (System.String[] args) [0x00001] in <30890a970f3947e19de2283312e9da8c>:0