Tux Guitar

Problems

Subject Printing Problems with Tuxguitar



Author Message
psychodelic Tom
Post: Aug 14th 2008 at 2:04 PM

Hi...

I've installed Tuxguitar from http://sourceforge.net/project/downloading.php?groupname=tuxguitar&filename=tuxguitar-1.0-ubuntu-x86.deb&use_mirror=osd.
Sound is ok but if I want to print, nothing happens.
Please help me, My Platform is Ubuntu Studio 8.04 hardy kernel linux 2.6.24-19 rt.
TIA

Tom


Back to Top
 
Julian
Post: Aug 15th 2008 at 12:19 AM

Printer don't works on ubuntu package,
because Ubuntu repositories has an older version of libswt (a tuxguitar dependency)

If you want get printer enabled, try download a generic GNU/Linux version (with latest SWT included) instead of the .deb package


Back to Top
 
psychodelic Tom
Post: Aug 15th 2008 at 8:19 AM

Thx for your answer...
I'm a linuxbeginner and will try to do my best...

Tom


Back to Top
 
Anonymous
Post: Aug 15th 2008 at 11:45 AM

Hi ...
now im testing with this installed version:
Linux version 2.6.24-19-generic (buildd@terranova) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Fri Jul 11 23:41:49 UTC 2008
but printing doesn't work with tuxguitar. I only see the printing options window, where i can choose track and range...
abd when i klick the ok button the window closed and nothing happens.
What do i wrong???

Tom


Back to Top
 
psychodelic Tom
Post: Aug 15th 2008 at 11:48 AM

Hi ...
now im testing with this installed version:
Linux version 2.6.24-19-generic (buildd@terranova) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Fri Jul 11 23:41:49 UTC 2008
but printing doesn't work with tuxguitar. I only see the printing options window, where i can choose track and range...
abd when i klick the ok button the window closed and nothing happens.
What do i wrong???

Tom


Back to Top
 
Julian
Post: Aug 15th 2008 at 11:54 AM

When i say "try download a generic GNU/Linux version"
I mean the TuxGuitar generic package ( not your kernel version)

TuxGuitar depends on SWT (see your package libswt3.2-gtk-java from synaptic )
And it's SWT who do the print process.

But, SWT-3.2 didn't have printer support.
so, it's not a bug, it's just you need a newest version of SWT.

TuxGuitar GNU/Linux package came with SWT-3.4
and that newest version of SWT implements printer support.


Back to Top
 
giovanni
Post: Sep 1st 2008 at 11:41 PM

Hello well I have exactly the same problem.

Would not it be possible to change only this SWT thing into the new one without having to go through all the harshness of removing the Ubuntu version and install the generic one (I would really have no clue how to do it)? If so, how?


Back to Top
 
Julian
Post: Sep 2nd 2008 at 12:06 AM

You can install swt-3.4 on Ubuntu, but you'll need to found a .deb package to do that (i think debian repositories have it)
Another thing you can do, is download SWT from official web site, extract the zipped file and config /usr/lib/java/swt.jar with "update-alternatives"


Back to Top
 
Psychodelic Tom
Post: Sep 24th 2008 at 8:17 AM

Hi..

Thx for Help but.... I've installed libswt-3.4 no printing, I've removed libswt-3.2 -> Tuxguitar was romoved too... I've installed Tuxguitar again libswt-3.2 was automatically installed too... Now 3.2 and 3.4 versions are installed but no printing...
I've installed Tuxguitar older Version 0.9 and Printing is possible... wow :-)
But there is still one Problem, I could not format the measures. If I load a ptb or gp file the measures are to big, 3 ore 4 measures on one page.. Is there a posibility to change the size of measures, so that there are 2 ore 3 in one line???

By Tom


Back to Top
 
Julian
Post: Sep 24th 2008 at 11:21 AM

You can't remove a .deb dependency and keep the .deb installed.
if tuxguitar.deb depends on swt-3.2 so you don't must remove it.
What i suggested was to use "update-alternatives" to change SWT version.
but maybe the best you can do is try to download a generic GNU/Linux package of tuxguitar.
Ubuntu specific package just do that.. uses "repositories" packages as dependencies.
Generic package already includes dependencies, with java exception that you need to install it.

> I've installed Tuxguitar older Version 0.9 and Printing is possible
Is because 0.9.1 didn't use SWT to print.. it used Swing but very buggy on e lot of systems.
but i don't think "downgrade" to 0.9.1 may be a good idea.
* you'll lost a lot of features.
* you'll see a lot of bugs (fixed on 1.0)
* etc,etc, :)


Back to Top
 
Psychodelic Tom
Post: Sep 26th 2008 at 9:14 AM

Hi Julian,

thx. for all your help, but... i don't know how i have to "update-alternatives". I've tried some like this: update-alternatives --config libswt-gtk-3.4-java but there are no alternatives. ???
Now I run tuxguitar jet 1.0 whith wine and printing is possible, but there are some grafical problems, but if I change skin settings, I could see the tabulature...
I think, I use tuxguitar with wine, but its not satisfiable. Tomorrow I will try tuxguitar with openSUSE...
I don't want to use any Windows applications, but sometimes I have to. ?
And I like Your Tuxguitar Program very much because I am a guitar teacher and use Powertab and Guitar Pro under windows, but it's better to have only one Prog and I will try, to solve the printing prob...

Thx... Tom


Back to Top
 
Julian
Post: Sep 26th 2008 at 9:30 AM

tuxguitar with wine ? why ?

if you get Jet version, just download "GNU/Linux" release.


update-alternatives is not so easy to explain by me..
it's a debian thing.
when alternative don'e exist you need to do "--set" instead of "--config".
but however what you are doing may don't work.
because the script is looking for /usr/lib/java/swt.jar (not for swt-gtk-3.4 ).
you can try do this:
update-alternatives --install /usr/lib/java/swt.jar swt.jar /WHERE_IS_NEW_SWT.JAR 1

I'm not sure if that will work. so i'm writing here but not testing it.


Back to Top
 
Psychodelic Tom
Post: Sep 26th 2008 at 11:45 AM

Hi Julian

I tried:
~$ sudo update-alternatives --config swt.jar

and the message was:

Tere is only 1 Programm, wich swt.jar sets
(/usr/share/java/swt-gtk-3.4.jar). Nothing to configure.

Now I've downloaded: tuxguitar-1.0-linux-x86-jet.bin

then I do this:

thomas@thomas-desktop:~/Desktop$ sh tuxguitar-1.0-linux-x86-jet.bin

and I've got this message:

tuxguitar-1.0-linux-x86-jet.bin: 1: Syntax error: "(" unexpected


then I've downloaded Tuxguitar GNU/Linux-x86 GCJ Native Release, installed ibgcj8 also, and then I do this from console:
changed to directory, where tuxguitar is and then:

sh tuxguitar

now it runs perfect...

THX... Tom


Back to Top
 
Julian
Post: Sep 26th 2008 at 11:58 AM

"tuxguitar-1.0-linux-x86-jet.bin" is not a shell script.
so it may never work with "sh" command.

you just need direct exec it:
./tuxguitar-1.0-linux-x86-jet.bin

But, as i remember sourceforge "removes" execution access.
so you need first of all to set the file exec permissions:

chmod 775 tuxguitar-1.0-linux-x86-jet.bin
And then:
./tuxguitar-1.0-linux-x86-jet.bin

it may uncrompress the content and create a new folder
tuxguitar-1.0-jet (i think)

then you can enter that folder and make 2 clicks to tuxguitar.

GCJ is another alternative. but "not all plugins" are available for it, because it have some java api missings.


Back to Top
 
Psychodelic Tom
Post: Sep 26th 2008 at 3:40 PM

Hi Julian... :-)

ok. I've done it like You said... Now it works fine...
Thx for Your help... sometimes it's a long way...

cu and thx

Tom


Back to Top
 
Gio
Post: Oct 17th 2008 at 10:25 AM

Ok...maybe this is huge but...I will ask anyway...how about a guide? I am a total computer idiot and I did not understand anything...the more you can go step by step the better it is...think like if you were explaining it to a new born child!

:)


Back to Top
 
Serge
Post: Nov 16th 2008 at 8:42 PM

Hi,

I have installed the deb found on sourceforge. The printing don't work (the "Option" windows appears, and it close itself normally when i clic the OK button. The box to choose the printer don't appears). No error messages are done if i launch tuxguitar in terminal. The libswt-gtk-3.4-java is installed.


Back to Top
 
Julian
Post: Nov 16th 2008 at 11:23 PM

> The libswt-gtk-3.4-java is installed.
This name sounds like an Debian, Ubuntu, etc.. repository package.
if it's true, install it is not enougth. you'll need edit the launcher script of tuxguitar to "use" this SWT version.

when tuxguitar 1.0 was released, allmost GNU/Linux distributions didn't include SWT 3.4.. so the launcher script don't have idea about it's existense.

I suspect that you downloaded Ubuntu version of tuxguitar, that uses SWT 3.2 from repositories (and it don't have printer support).
if yes, try edit "/usr/bin/tuxguitar" as root,
and on some place there is a path pointing to: "/usr/lib/java/swt.jar".
try replace it to "/usr/share/java/swt.jar"

Then, next time you run tuxguitar, it should start with SWT 3.4.


Back to Top