Linux FAQ
- Can I compile AutoLyrix with Mono and run in my MacOS or Linux?
Yes you can. I have been trying to keep the code clean to use Mono.
I'm not using any library or method that currently is not supported
or implemented in Mono. You should be able to run/compile it without
change any code.
How? Here is the steps:
- Download de source code
- Inside the "Properties" folder run: resgen Resources.resx resources.resources
- Compile with: gmcs -recurse:*.cs -out:AutoLyrix.mono -r:System -r:System.Drawing -r:System.Windows.Forms -r:System.Data -r:Interop.iTunesLib.dll -r:ID3.dll -res:Properties/resources.resources,AutoLyrix.Properties.Resources.resources -res:Resources/Winamp.ico,AutoLyrix.Resources.Winamp.ico -res:Resources/iTunes.ico,AutoLyrix.Resources.iTunes.ico
- Run with: mono AutoLyrix.mono - When I try to run I get an error:
Error: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
....
If you use Debian or other distro that use .deb packages, install the libgdiplus with:
apt-get install libgdiplus
Error: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall ---> System.DllNotFoundException: libMonoPosixHelper.so
Try install mono-gmcs package (it is the compiler). This should do it. Some distros also have a .rpm for this package.
Run:
apt-get install mono-gmcs
