[raziel@Bebop openra]$ ./AppRun
Usage:
If the game doesn't run, try using the Cg renderer ~/.openra/settings.yaml
like so:
Graphics:
Renderer: Cg
Be careful to only use one indenting tab with 8 shift width.
Platform is Linux
Using Gl renderer
Desktop resolution: 1920x1080
No custom resolution provided, using desktop resolution
Using resolution: 1920x1080
Available mods:
cnc: C&C (release-20121019)
d2k: Dune 2000 (beta) ({DEV_VERSION})
ra: Red Alert (release-20121019)
Exception of type `System.TypeInitializationException`: An exception was thrown by the type initializer for OpenRA.Support.PerfHistory
Inner Exception of type `System.TypeInitializationException`: An exception was thrown by the type initializer for System.Drawing.KnownColors
Inner Exception of type `System.TypeInitializationException`: An exception was thrown by the type initializer for System.Drawing.GDIPlus
Inner Exception of type `System.DllNotFoundException`: libc
TypeName=``
at (wrapper managed-to-native) System.Drawing.GDIPlus:uname (intptr)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0
at System.Drawing.Color.get_Red () [0x00000] in <filename unknown>:0
at OpenRA.Support.PerfHistory..cctor () [0x00000] in <filename unknown>:0
at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0
at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0
at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
I have very little experience with .NET/Mono, so I don't really know what can be going on. Does any of you guys have an idea?
The OSX builds of OpenRA used to ship with a stripped down version of Mono.
At the time (Mono 2.4 - 2.6), this required patching hardcoded library paths in the mono executable and support files, and also setting $LD_LIBRARY_PATH and $MONO_PATH before running the patched build.
Things are probably different with newer versions and Linux vs OSX, but these may be useful references:
Oops, sorry about the late reply, looks like the message notifier didn't work
Thanks a lot for the info and the scripts. I added the missing dependencies and tweaked some environment variables and mono parameters, but the error still persists.
What bugs me is that the error seems to be that mono is not able to find libc for some reason. It must be something about the binary patching needed to make mono run in a portable way. Ugly stuff.
I had to do some pretty nasty hacks, but in the end I think I got it working. I tested it on my Archlinux and on a Ubuntu 10.04 LiveUSB, so it should be pretty portable.