Gentoo + sztakker (MonoDeveloping)
Üdv!
Mint ahogyan azt a cím is mutatja Gentoo-n szeretném futtatni a magyar sztaki szótár programot a sztakkert. Le is szedtem erről az oldalról http://www.pixelfactory.hu/zsolti/sztakker/ a SZTAKKER 0.5 (tar.gz) nevű bináris csomagot, kicsomagoltam a home mappámba a sztakker shell scriptet futtatam ami a következőt tartalmazza:
#!/usr/bin/env bash
THIS_EXE="/usr/bin/sztakker.exe"
exec mono $MONO_EXTRA_ARGS $THIS_EXE "$@"
Ez persze elsőnek nem futott le mert ugye a home ba tömörítettem ki aztán átírtam az elérési utat /home/sunmao/Letöltések/usr/bin/sztakker.exe erre. Ekkor már megtalálta az exe t viszont a mono parancsot nem találta.. Akkor leszedtem emergel a mono csomagot utánna valami gtk csomag miatt nem indult el, azt is leszedtem neki. A következő hibaüzenet az NDesk.DBus.GLib csomagra hivatkozott ilyet nem talaltam gentoo alatt de felraktam egy ilyet némi googlezes után dbus-glib-sharp ami elég igéretesnek tünt ekkor root ként kiadva az sh sztakker parancsot a következőt kaptam:
mao-gentoo bin # sh sztakker
SZTAKKER v0.5
DBus error: Unable to open the session message bus.
Na ekkor kezdtem el megnyitni ezt a topicot de gondoltam teszek még egy próbát sima userrel, ekkor mezei userként elindítva a programot egy gconf-sharp nevu csomagot akart, még ezt is "felemergeltem" neki rootként megint ugyanazt a hiba üzenetet kaptam viszont egyszerű userként a parancsot kiadva:
sunmao@mao-gentoo ~/Letöltések/usr/bin $ sh sztakker
SZTAKKER v0.5
ONLINE
DBus - OK.
Tádáááám és meg is jelenik system try ben a sztakker ikonja meg is nyitom, és amint beírok egy fordítandó szót ezt kapom:
sunmao@mao-gentoo ~/Letöltések/usr/bin $ sh sztakker
SZTAKKER v0.5
ONLINE
DBus - OK.
ONLINE
Marshaling activate signal
Exception in Gtk# callback delegate
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: ApplicationName='/usr/bin/pysztaki.py', CommandLine='enhu apple', CurrentDirectory=''
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000]
at Sztakker.MainWindow.search () [0x00000]
at Sztakker.MainWindow.OnEntry1Activated (System.Object sender, System.EventArgs e) [0x00000]
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
at Gtk.Application.gtk_main()
at Gtk.Application.Run()
at Sztakker.MainClass.Main(System.String[] args)
sunmao@mao-gentoo ~/Letöltések/usr/bin $
Mint ahogyan azt az ábra is mutatja a program leáll. Innentől kezdve nem tudok tovább menni, ha valakinek van ötletek akkor ne habozzon...
Előre is köszi!
Ui: http://do.davebsd.com/wiki/Installing_Do#Gentoo nem tudom ez kell e nekem, mivel elvileg kielégítettem a függőségi listáját a programnak, már csak helyes működésre kéne bírni...
Najó akkor vigyük tovább a dolgot, leszedtem az oldalról ugye a forrást felraktam egy MonoDeveloper környezetet behúztam a forrást, fordításnál a következőt kapom:
Projekt fordítása: Sztakker (Debug)
Megoldás fordítása: Sztakker
Projekt fordítása: sztakker (Debug)
A fordítás folyamatban van...
/usr/bin/gmcs /noconfig "/out:/home/sunmao/Letöltések/sztakker05_release/bin/Debug/Sztakker.exe" "/r:System.dll" "/r:Mono.Posix.dll" "/r:/usr/lib/mono/ndesk-dbus-1.0/NDesk.DBus.dll" "/r:/usr/lib/mono/ndesk-dbus-glib-1.0/NDesk.DBus.GLib.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll" "/r:/usr/lib/mono/gtk-sharp-2.0/gconf-sharp.dll" /nologo /warn:4 /debug:+ /debug:full /optimize+ /codepage:utf8 /main:Sztakker.MainClass /t:exe "/res:/home/sunmao/Letöltések/sztakker05_release/gtk-gui/gui.stetic,gui.stetic" "/home/sunmao/Letöltések/sztakker05_release/gtk-gui/generated.cs" "/home/sunmao/Letöltések/sztakker05_release/MainWindow.cs" "/home/sunmao/Letöltések/sztakker05_release/Main.cs" "/home/sunmao/Letöltések/sztakker05_release/AssemblyInfo.cs" "/res:/home/sunmao/Letöltések/sztakker05_release/sztakker_logo.png,sztakker_logo.png" "/home/sunmao/Letöltések/sztakker05_release/TabWithCloseButton.cs" "/res:/home/sunmao/Letöltések/sztakker05_release/gtk-gui/objects.xml,objects.xml" "/home/sunmao/Letöltések/sztakker05_release/gtk-gui/Sztakker.TabWithCloseButton.cs" "/home/sunmao/Letöltések/sztakker05_release/gtk-gui/Sztakker.MainWindow.cs" "/home/sunmao/Letöltések/sztakker05_release/SztakkerAbout.cs" "/home/sunmao/Letöltések/sztakker05_release/SettingsWindow.cs" "/home/sunmao/Letöltések/sztakker05_release/gtk-gui/Sztakker.SettingsWindow.cs" "/home/sunmao/Letöltések/sztakker05_release/Settings.cs" "/res:/home/sunmao/Letöltések/sztakker05_release/sztakker_icon_offline_22x22.png,sztakker_icon_offline_22x22.png" "/res:/home/sunmao/Letöltések/sztakker05_release/sztakker_icon_online_22x22.png,sztakker_icon_online_22x22.png" "/home/sunmao/Letöltések/sztakker05_release/html.cs" "/home/sunmao/Letöltések/sztakker05_release/RemoteProxy.cs" "/home/sunmao/Letöltések/sztakker05_release/RemoteCtrl.cs" "/home/sunmao/Letöltések/sztakker05_release/OnlineStatus.cs" "/home/sunmao/Letöltések/sztakker05_release/Speak.cs"
Compilation succeeded - 2 warning(s)
/home/sunmao/Letöltések/sztakker05_release/MainWindow.cs(171,36): warning CS0618: `Gtk.StatusIcon.FromPixbuf' is obsolete: `use the Pixbuf property instead'
/home/sunmao/Letöltések/sztakker05_release/MainWindow.cs(174,36): warning CS0618: `Gtk.StatusIcon.FromPixbuf' is obsolete: `use the Pixbuf property instead'
A fordítás befejeződött -- 0 hiba, 3 figyelmeztetés
---------------------- Kész ----------------------
A(z) „gconf-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f” referencia nem található, helyette a(z) „gconf-sharp, Version=2.24.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f” lesz használva.
Fordítás: 0 hiba, 3 figyelmeztetés
Nah a gconf-sharp bol ujabbat hasznal, szerintem ez nem lesz gond, illetve hogy a Gtk.StatusIcon.FromPixbuf helyett hasznaljuk a Pixbuf -ot, mindegy ezekkel most nem foglalkozunk, mert nem itt száll el a progi...
Nézzük akkor a futtatást a MonoDevelop IDE -ből:
SZTAKKER v0.5
ONLINE
DBus - OK.
Eddig ugye ugyanaz a helyzet mint terminálból futtatva, most fut a program beírok egy szót és...
Exception in Gtk# callback delegate
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: ApplicationName='/home/sunmao/Letöltések/usr/bin/pysztaki.py', CommandLine='enhu apple', CurrentDirectory=''
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00352] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System/System.Diagnostics/Process.cs:1113
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00096] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System/System.Diagnostics/Process.cs:1187
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001e] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System/System.Diagnostics/Process.cs:1207
at Sztakker.MainWindow.search () [0x00282] in /home/sunmao/Letöltések/sztakker05_release/MainWindow.cs:391
at Sztakker.MainWindow.OnEntry1Activated (System.Object sender, System.EventArgs e) [0x00000] in /home/sunmao/Letöltések/sztakker05_release/MainWindow.cs:343
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00057] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MonoMethod.cs:159
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00071] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MonoMethod.cs:169
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection/MethodBase.cs:111
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System/Delegate.cs:430
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System/MulticastDelegate.cs:71
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System/Delegate.cs:402
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
at Gtk.Application.gtk_main()
at Gtk.Application.Run()
at Sztakker.MainClass.Main(System.String[] args) in /home/sunmao/Letöltések/sztakker05_release/Main.cs:line 66
ONLINE
Marshaling activate signal
Az alkalmazás futását megszakította a következő szignál: SIGHUP
Megint elszáll... Van ott az elején egy ilyen sor ami ide mutat /home/sunmao/Letöltések/usr/bin/pysztaki.py ez eredetileg ide mutatott usr/bin/pysztaki.py csak átírtam a forrásba mivel nekem ott van a python file-om, de végülis mindegy is mert egy GTK# exception al szall el, mivel nem én írtam a programot és van jópár class ezért nem kezdem el console write okkal telepakolni a progit, de ha valaki fejleszt Monoba és kicsit besegítene annak elég hálás lennék, ha már felraktam ezt a vackot a sztakker miatt.. :)
- Tovább (Gentoo + sztakker (MonoDeveloping))