Puhh, ich bin gefühlt kurz davor mit mono für OS X den Editor zum laufen zu kriegen, aber irgendwie auch weit entfernt.
Mit mono64-Bit geht gar nichts. Das verwendete Windows.Forms wird von mono auf das Carbon-Framework "verlinkt". (also in etwa zu jeder Funktion und jedem Objekt in WIndows.Forms wird eine entsprechende Carbon-Funktion oder ein Carbon-Objekt zugewiesen) Aber Carbon gibt es (noch?) nicht für 64-Bit-Systeme.
Code: Alles auswählen
Krischans-MacBook-Air-5:~ krischan$ mono --arch=64 /Users/krischan/Downloads/ArkanEdit.exe
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
System.NotSupportedException: Specified method is not supported.
at System.Drawing.MacSupport.GetCGContextForView (System.IntPtr handle) [0x0001a] in <96c2003d15dd4c1784674780359bf078>:0
at System.Drawing.Graphics.FromHwnd (System.IntPtr hwnd) [0x00055] in <96c2003d15dd4c1784674780359bf078>:0
at System.Windows.Forms.Control.CreateGraphics () [0x00019] in <0cb4fbe6da104c0e9a146523b449f33b>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.CreateGraphics()
at System.Windows.Forms.Document.owner_HandleCreated (System.Object sender, System.EventArgs e) [0x00000] in <0cb4fbe6da104c0e9a146523b449f33b>:0
at System.Windows.Forms.Control.OnHandleCreated (System.EventArgs e) [0x00019] in <0cb4fbe6da104c0e9a146523b449f33b>:0
at System.Windows.Forms.TextBoxBase.OnHandleCreated (System.EventArgs e) [0x00000] in <0cb4fbe6da104c0e9a146523b449f33b>:0 (...)
Gut, dass ich zufällig die letzte OS X-Version installiert habe, die noch native 32-Bit-Programme unterstützt. Dachte ich zumindest...
Zunächst 2-3 Sekunden große Freude, aber dann...
Code: Alles auswählen
Krischans-MacBook-Air-5:~ krischan$ mono --arch=32 /Users/krischan/Downloads/ArkanEdit.exe
Kein Fenster erscheint, nichts passiert, keine Exceptions auf dem StdOut, Programm terminiert aber auch nicht!
Mit mono --verbose bekommt man tausende Zeilen pro Sekunde um die Ohren gehauen, bringt also auch erstmal nix.
Grund ist wohl dieser hier:
Code: Alles auswählen
Krischans-MacBook-Air-5:~ krischan$ mono-test-install
Active Mono: /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono
Warning: pkg-config could not find mono installed on this system
No dotnet pkgconfig found, Windows.Forms, System.Drawing and others will not work
Hab mal mit Umgebungsvariablen rumprobiert, aber auch keinen Erfolg. Z. B.:
Code: Alles auswählen
#folder to the PKG_CONFIG_PATH variable
export PKG_CONFIG_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig":$PKG_CONFIG_PATH
Irgendwelche Ideen?
Ansonsten muss ich mal auf dem Rechner eines Freundes probieren und vielleicht bin ich dann so motiviert mir extra dafür eine VM einzurichten.
