[arch-general] Tuxguitar: documentation and SWT/GTK
I have stumbled. Archlinux does almost everything to perfection, so I am concerned I may have erred in the installation of tuxguitar. I am uisng a 64 bit, a relatively mature installation with many packages installed, including many from AUR. Tux guitar works well, so far; however, when trying to access Documentation through "Help>Documentation" Tuxguitar hangs. I've spent some hours researching this problem, and have gotten nowhere. Every google search I make leads one to mention of SWT, and apparently the most up to date 4.2 version, and some issue regarding gtk. The following messages are received: (TuxGuitar:10351): GLib-GObject-WARNING **: cannot register existing type 'GtkWi dget' (TuxGuitar:10351): GLib-GObject-WARNING **: cannot add class private field to in valid type '<invalid>' (TuxGuitar:10351): GLib-GObject-WARNING **: cannot add private field to invalid (non-instantiatable) type '<invalid>' (TuxGuitar:10351): GLib-GObject-CRITICAL **: g_type_add_interface_static: assert ion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (TuxGuitar:10351): GLib-GObject-WARNING **: cannot register existing type 'GtkBu ildable' (TuxGuitar:10351): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed (TuxGuitar:10351): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed (TuxGuitar:10351): GLib-GObject-CRITICAL **: g_type_add_interface_static: assert ion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (TuxGuitar:10351): GLib-GObject-CRITICAL **: g_type_register_static: assertion ' parent_type > 0' failed (TuxGuitar:10351): GLib-GObject-WARNING **: cannot add private field to invalid (non-instantiatable) type '<invalid>' Also interesting, in the "About" screen, is the following information: This product include third party libraries: -> SWT (Standard Widget Toolkit): http://www.eclipse.org/swt/ -> iText (Free Java-PDF library): http://www.lowagie.com/iText/ The documentation is pretty good, in general, on the Archlinux Wiki. I could not find much useful information regarding this problem with Tuxguitar with respect to Archlinux, even there. Can someone shed some light, or, better still, suggest a way to solve this problem. I suppose I can try to get a PDF of the docs, and use that. Alan Davis -- “That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.” --- Albert Einstein
On 19-07-15 20:06, Alan E. Davis wrote:
Tux guitar works well, so far; however, when trying to access Documentation through "Help>Documentation" Tuxguitar hangs. I've spent some hours researching this problem, and have gotten nowhere. Every google search I make leads one to mention of SWT, and apparently the most up to date 4.2 version, and some issue regarding gtk.
<snip> Also interesting, in the "About" screen, is the following information:
This product include third party libraries: -> SWT (Standard Widget Toolkit): http://www.eclipse.org/swt/ -> iText (Free Java-PDF library): http://www.lowagie.com/iText/
The documentation is pretty good, in general, on the Archlinux Wiki. I could not find much useful information regarding this problem with Tuxguitar with respect to Archlinux, even there.
Can someone shed some light, or, better still, suggest a way to solve this problem. I suppose I can try to get a PDF of the docs, and use that.
Alan Davis
|The PKGBUILD has this line twice : export CLASSPATH=/usr/share/java/swt.jar:$CLASSPATH That makes tuxguitar use the archlinux SWT version. The problems likely come from arch SWT being newer then wat tuxguitar expects. Try building the package yourself with those lines commented. Note that you need to make sure the tuxguitar provided swt.jar is included in the package. |
Thank you, LoneVVolf: It is not clear to me how to obtain the PKGBUILD for Tuxguitar, since it is distributed through pacman. I tried to include an Archaudio repo, hoping that another version would be available via AUR. Alas! No such luck. Alan On Sun, Jul 19, 2015 at 1:24 PM, LoneVVolf <lonewolf@xs4all.nl> wrote:
On 19-07-15 20:06, Alan E. Davis wrote:
Tux guitar works well, so far; however, when trying to access Documentation through "Help>Documentation" Tuxguitar hangs. I've spent some hours researching this problem, and have gotten nowhere. Every google search I make leads one to mention of SWT, and apparently the most up to date 4.2 version, and some issue regarding gtk.
<snip> Also interesting, in the "About" screen, is the following information:
This product include third party libraries: -> SWT (Standard Widget Toolkit): http://www.eclipse.org/swt/ -> iText (Free Java-PDF library): http://www.lowagie.com/iText/
The documentation is pretty good, in general, on the Archlinux Wiki. I could not find much useful information regarding this problem with Tuxguitar with respect to Archlinux, even there.
Can someone shed some light, or, better still, suggest a way to solve this problem. I suppose I can try to get a PDF of the docs, and use that.
Alan Davis
|The PKGBUILD has this line twice : export CLASSPATH=/usr/share/java/swt.jar:$CLASSPATH That makes tuxguitar use the archlinux SWT version. The problems likely come from arch SWT being newer then wat tuxguitar expects. Try building the package yourself with those lines commented. Note that you need to make sure the tuxguitar provided swt.jar is included in the package. |
-- “That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.” --- Albert Einstein
On Sun, Jul 19, 2015 at 10:53:12PM -0700, Alan E. Davis wrote:
Thank you, LoneVVolf:
It is not clear to me how to obtain the PKGBUILD for Tuxguitar, since it is distributed through pacman. I tried to include an Archaudio repo, hoping that another version would be available via AUR. Alas! No such luck.
Alan You can obtain the PKGBUILD via the Arch Build System. https://wiki.archlinux.org/index.php/Arch_Build_System
After you installed abs and ran an synchronization with "sudo abs", you just copy the folder to e.g. /var/build/ (which you will need to create first): "cp -r /var/abs/community/tuxguitar /var/build" There you can edit the PKGBUILD or just run "makepkg -o" to download the sources, patch them and run a "makepkg -e" to use the patched sources. Regards, Sebastian M.
On Mon, Jul 20, 2015 at 1:53 AM, Alan E. Davis <lngndvs@gmail.com> wrote:
Thank you, LoneVVolf:
It is not clear to me how to obtain the PKGBUILD for Tuxguitar, since it is distributed through pacman. I tried to include an Archaudio repo, hoping that another version would be available via AUR. Alas! No such luck.
Alan
-- “That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.”
--- Albert Einstein
`yaourt -G tuxguitar` -- if you use yaourt. Or as Sebastian says, use the ABS. But don't wait to synchronize *everything*, just `sudo abs community/tuxguitar` Personally I prefer asp (from the AUR package asp-git): `asp export tuxguitar` -- fetch history (if asp does not already know about it) and export to directory in one move, plus no need to type the name of the repo first. https://github.com/falconindy/asp -- Eli Schwartz
Thank you for the several ideas. I have installed aps, for specifically tuxguitar, and edited the PKGBUILD, commenting the two lines about SWT. I had done this as root, so when I ran pkgbuild I was told not to do so. I changed the ownership of the directory to my user and my group, chmod -R me:me ... Pkgbuild ran, but put out an error. The earliest error message was here: [javac] import org.eclipse.swt.SWT; [javac] ^ [javac] /var/build/src/tuxguitar-src-1.2/TuxGuitar/src/org/her ac/tuxguitar/gui/TuxGuitar.java:12: error: package org.eclipse.swt .events does not exist I will install eclipse? Thank you again. This is a great help, a learning process. Alan On Mon, Jul 20, 2015 at 8:46 AM, Eli Schwartz <eschwartz93@gmail.com> wrote:
On Mon, Jul 20, 2015 at 1:53 AM, Alan E. Davis <lngndvs@gmail.com> wrote:
Thank you, LoneVVolf:
It is not clear to me how to obtain the PKGBUILD for Tuxguitar, since it is distributed through pacman. I tried to include an Archaudio repo, hoping that another version would be available via AUR. Alas! No such luck.
Alan
-- “That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.”
--- Albert Einstein
`yaourt -G tuxguitar` -- if you use yaourt.
Or as Sebastian says, use the ABS. But don't wait to synchronize *everything*, just `sudo abs community/tuxguitar`
Personally I prefer asp (from the AUR package asp-git): `asp export tuxguitar` -- fetch history (if asp does not already know about it) and export to directory in one move, plus no need to type the name of the repo first.
https://github.com/falconindy/asp
-- Eli Schwartz
-- “That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.” --- Albert Einstein
participants (4)
-
Alan E. Davis
-
Eli Schwartz
-
LoneVVolf
-
Sebastian M.