Tux Guitar

Problems

Subject Install with sources



Author Message
Pascal
Post: Oct 8th 2006 at 4:10 PM

Hello

I tried to install TuxGuitar with sources. My OS is Linux (ArchLinux). Before compiling TuxGuitar, I downloaded jdk-1_5_0_08-1, apache-ant-1.6.5-1, jre-1_5_0_08-1, swt-3.2-1.
Then I decompressed TuxGuitar-0.8-src.tar.gz on directory /opt/TuxGuitar-0.8-src and updated build.properties. I had no problems while compiling (Ref view1).
But launching was impossible (Ref view2).
Thank you for you help !

____________________________________________________________________________
View 1:
[root@Tux400 TuxGuitar-0.8-src]# export JAVA=/usr/java/jre1.5.0_08/bin/java
[root@Tux400 TuxGuitar-0.8-src]# export JAVA_HOME=/usr/java/jre1.5.0_08
[root@Tux400 TuxGuitar-0.8-src]# ant
Buildfile: build.xml
init:
[mkdir] Created dir: /opt/TuxGuitar-0.8-src/build
build:
[echo] +-------------------------------------------------------------------------+
[echo] | B U I L D I N G T U X G U I T A R |
[echo] +-------------------------------------------------------------------------+
[javac] Compiling 279 source files to /opt/TuxGuitar-0.8-src/build
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 3 files to /opt/TuxGuitar-0.8-src/build/org/herac/tuxguitar/gui/doc
build:
[echo] +---------------------------------------------------------------------------+
[echo] | P A C K A G I N G T U X G U I T A R |
[echo] +---------------------------------------------------------------------------+
[jar] Building jar: /opt/TuxGuitar-0.8-src/TuxGuitar.jar
package:
all:
BUILD SUCCESSFUL
Total time: 49 seconds
____________________________________________________________________________
View 2 :
[root@Tux400 TuxGuitar-0.8-src]# ./tuxguitar
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:793)
at org.eclipse.swt.widgets.Display.create(Display.java:781)
at org.eclipse.swt.graphics.Device.(Device.java:145)
at org.eclipse.swt.widgets.Display.(Display.java:452)
at org.eclipse.swt.widgets.Display.(Display.java:443)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
-------------------------------------------------------------------------------------------------------------------------------


Back to Top
 
Anonymous
Post: Oct 8th 2006 at 6:10 PM

you should try to run it as user, not as root, or open up your xserver ports with "xhost +" as normal user ...


Back to Top
 
Pascal
Post: Oct 8th 2006 at 6:59 PM

Hello "Anonymous",

running tuxguitar as user is really better... thank you for your answer : It helps me very much !


Back to Top
 
Julian
Post: Oct 8th 2006 at 10:21 PM

SWT don't works as root ?


Back to Top