Welcome, Guest
Username Password: Remember me

Swingame C# not running in Linux from terminal
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Swingame C# not running in Linux from terminal

Swingame C# not running in Linux from terminal 1 year, 1 month ago #162

  • revamped83
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi.

I'm really in need of assistance with this. I know I can use Windows, but given we will be using Git on Software Development Project this semester I'd much rather keep everything in Linux. And I much prefer to keep it all Linux anyway.

I have installed the very latest versions of mono-complete and monodevelop from the mono repositories. But I still get errors whenever I ./run.sh

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'SwinGameSDK.sgLibrary' threw an exception. ---> System.DllNotFoundException: sgsdk.dll
  at (wrapper managed-to-native) SwinGameSDK.sgLibrary:DLL_sg_Utils_ExceptionOccured ()
  at SwinGameSDK.sgLibrary.sg_Resources_SetAppPathWithExe (System.String path, Int32 withExe) <0x416cc3a0 + 0x0009b> in <filename unknown>:0 
  at SwinGameSDK.Resources.SetAppPath (System.String path, Boolean withExe) <0x416cc360 + 0x00027> in <filename unknown>:0 
  at SwinGameSDK.sgLibrary..cctor () <0x416cc0c0 + 0x0002b> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at SwinGameSDK.SwinGame.OpenGraphicsWindow (System.String caption, Int32 width, Int32 height) <0x416cbf10 + 0x00017> in <filename unknown>:0 
  at MyGame.GameMain.Main () <0x416cbd50 + 0x0001f> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'SwinGameSDK.sgLibrary' threw an exception. ---> System.DllNotFoundException: sgsdk.dll
  at (wrapper managed-to-native) SwinGameSDK.sgLibrary:DLL_sg_Utils_ExceptionOccured ()
  at SwinGameSDK.sgLibrary.sg_Resources_SetAppPathWithExe (System.String path, Int32 withExe) <0x416cc3a0 + 0x0009b> in <filename unknown>:0 
  at SwinGameSDK.Resources.SetAppPath (System.String path, Boolean withExe) <0x416cc360 + 0x00027> in <filename unknown>:0 
  at SwinGameSDK.sgLibrary..cctor () <0x416cc0c0 + 0x0002b> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at SwinGameSDK.SwinGame.OpenGraphicsWindow (System.String caption, Int32 width, Int32 height) <0x416cbf10 + 0x00017> in <filename unknown>:0 
  at MyGame.GameMain.Main () <0x416cbd50 + 0x0001f> in <filename unknown>:0 
tom@Tom-Laptop-Ubu:~/Dropbox/UNI - SEMESTER 1 2016/SWE20001 - Development Project 1/Weekly Tasks/Week 2/ProjectTemplate$ 


When I try to build in monodevelop I get the following error:

/home/tom/Dropbox/UNI - SEMESTER 1 2016/SWE20001 - Development Project 1/Weekly Tasks/Week 2/ProjectTemplate/src/GameMain.cs(1,1): Error CS0138: A `using' directive can only be applied to namespaces but `SwinGameSDK.SwinGame' denotes a type. Consider using a `using static' instead (CS0138) (MyGame)


It's frustrating as everything works fine in Windows. Please help.

mono --version
Mono JIT compiler version 4.2.2 (Stable 4.2.2.30/996df3c Mon Feb 15 17:30:30 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen


=== MonoDevelop ===

Version 5.10
Installation UUID: ddaa2de6-c5fd-457c-8a0f-a28b3727faac
Runtime:
	Mono 4.2.2 (Stable 4.2.2.30/996df3c Mon Feb 15 17:30:30 UTC 2016) (64-bit)
	GTK+ 2.24.28 (Ambiance theme)

=== Build Information ===

Build information unavailable

=== Operating System ===

Linux
Linux Tom-Laptop-Ubu 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

  • Page:
  • 1
Time to create page: 0.09 seconds