Skip to main content

LG3D on Debian

20 replies [Last post]
afishionado
Offline
Joined: 2004-05-26

Hello,

I haven't played with LG in a long time, and thought I'd give it another go. Just for the heck of it, I'm trying to get the Ubuntu packages running on Debian Etch.

Dev mode works like a charm. App mode isn't working, but gives me this console output:

~$ /usr/share/lg3d/bin/lg3d-app

Starting up Project Looking Glass...

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc:unscaled, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/:unscaled, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/URW, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/truetype, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/uni:unscaled, removing from list!
Could not init font path element /opt/kde3/share/fonts, removing from list!
Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!

Fatal server error:
could not open default font 'fixed'
access control disabled, clients can connect from any host
~$

After Googling the forums, I tried symlinking /lib/X11/fonts to /usr/share/fonts (which seems to be where Debian keeps fonts):

cd /lib/X11
mv fonts fonts.orig
ln -s /usr/share/fonts

And nothing changed.

Anybody here more familiar with the Debian file hierarchy that I am?

William

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
deronj
Offline
Joined: 2003-09-02

I just integrated a fix for this into head. Please test.

deronj
Offline
Joined: 2003-09-02

This is a known bug (650). I'm working on fixing it today.

Pierre D.

Le Dimanche 23 Juillet 2006 22:34, lg3d@javadesktop.org a écrit :
> Hello,
Hello
>
> ~$ /usr/share/lg3d/bin/lg3d-app
>
> Starting up Project Looking Glass...
>
> Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
> error opening security policy file
> /usr/X11R6/lib/X11/xserver/SecurityPolicy Could not init font path element
> /usr/X11R6/lib/X11/fonts/misc, removing from list!
> ....
> Fatal server error:
> could not open default font 'fixed'
> access control disabled, clients can connect from any host
> ~$
>
> After Googling the forums, I tried symlinking /lib/X11/fonts to
It's /usr/X11R6/lib/X11/fonts... not /lib/X11/fonts !

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

Ack, typo in my post. /usr/X11R6/lib/X11/fonts *is* the directory I was in, and it still doesn't work. :-(

BTW, is there someplace that the LG3D Xserver writes its logs to? /var/log/Xorg.0.log looks like the log for my standard Xserver (no errors in it), and there's no Xorg.1.log in that directory.

debian:/usr# cd /usr/X11R6/lib/X11/fonts
debian:/usr/X11R6/lib/X11# mv fonts fonts.orig
debian:/usr/X11R6/lib/X11# ls
fonts.orig icons
debian:/usr/X11R6/lib/X11# ln -s /usr/share/fonts
debian:/usr/X11R6/lib/X11# ls
fonts fonts.orig icons
debian:/usr/X11R6/lib/X11# /usr/share/lg3d/bin/lg3d-app

Starting up Project Looking Glass...

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc:unscaled, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/:unscaled, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/URW, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/truetype, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/uni:unscaled, removing from list!
Could not init font path element /opt/kde3/share/fonts, removing from list!
Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!

Fatal server error:
could not open default font 'fixed'
access control disabled, clients can connect from any host
debian:/usr/X11R6/lib/X11#

Pierre D.

Le Dimanche 23 Juillet 2006 23:52, lg3d@javadesktop.org a écrit :
> Ack, typo in my post. /usr/X11R6/lib/X11/fonts *is* the directory I was in,
> and it still doesn't work. :-(
>
> BTW, is there someplace that the LG3D Xserver writes its logs to?
> /var/log/Xorg.0.log looks like the log for my standard Xserver (no errors
> in it), and there's no Xorg.1.log in that directory.
>
> debian:/usr# cd /usr/X11R6/lib/X11/fonts
> debian:/usr/X11R6/lib/X11# mv fonts fonts.orig
> debian:/usr/X11R6/lib/X11# ls
> fonts.orig icons
> debian:/usr/X11R6/lib/X11# ln -s /usr/share/fonts
It's /usr/share/fonts/X11
so the right command is :
ln -s /usr/share/fonts/X11 fonts

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

> It's /usr/share/fonts/X11
> so the right command is :
> ln -s /usr/share/fonts/X11 fonts

That did the trick! I'm posting with Firefox inside of LG3D right now. :-)

> I just integrated a fix for this into head. Please test.

I'll do that in a minute.

William

afishionado
Offline
Joined: 2004-05-26

1. The lg3d-core package won't uninstall, but that doesn't seem to be a showstopper at the moment.
2. I do not see the postinstall script anywhere in lg3d-core. I ran find just to make sure, and it's not there. Has the file name changed?

As it is, if I run lg3d-app from the build directory, it spits out:

Log file : /var/tmp/lgserver.log
LG3D Dir : /home/william/lg3d/lg3d-core/src/devscripts/../..
X Server Version : dev-0-9-0-1
JAVA_HOME : /usr/share/lg3d-jdk
LGX11HOME : /home/william/lg3d/lg3d-core/src/devscripts/../.././build/current/debug/lib/linux-i686/lg3d-x11

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
access control disabled, clients can connect from any host

Duh, of *course* I already have an X server running. ;-) I assume that the postinstall script fixes this.

I also can't get lg3d-demo-apps to build, but that's probably a topic for a different thread.

BTW, thanks everyone for helping me instead of screaming JUST INSTALL UBUNTU ALREADY! :-)

William

afishionado
Offline
Joined: 2004-05-26

Could anybody tell me if I hit some kind of bug, or if I'm just being retarded? (Probably just me being retarded.) I honestly don't see the file. Is it supposed to be generated by the ant script?

Juan González

Hi William,
do you see some message in /var/tmp/lgserver.log?

BTW, if you are using the .deb files, then the postinstall file is not needed
as the Xorg file should already be setuid, anyway i attach it so you can give
it a try.

El Miércoles, 26 de Julio de 2006 00:15, lg3d@javadesktop.org escribió:
> Could anybody tell me if I hit some kind of bug, or if I'm just being
> retarded? (Probably just me being retarded.) I honestly don't see the file.
> Is it supposed to be generated by the ant script? [Message sent by forum
> member 'afishionado' (afishionado)]
>
> http://forums.java.net/jive/thread.jspa?messageID=136504
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net
[postinstall]
---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

I'm trying to uninstall the deb files and compile from CVS to see how Deronj's fix works.

I just now noticed, waaay at the beginning of the build output Ant complains that it can't find tools.jar. Could this be causing my problems? I'm using Etch's ant package, because it seems to be recent enough to work, but maybe the package is buggy. :-P

I don't have time at the moment to reconfigure ant, but maybe this weekend I'll get to play with LG3D again.

Ugh, today seems to be my day to post stupid questions on the net and THEN figure out the problem. :-(

William
(Looking forward to getting the darn thing to build so that I can start hacking! ;))

Juan González

the tools.jar is part of the jdk, but anyway maybe you need to install the
ant-optional package, I remember something along the line of some needed
tasks not beeing included in the ant package, but not sure either. BTW, does
the ant build process end succesfully?

El Miércoles, 26 de Julio de 2006 07:07, lg3d@javadesktop.org escribió:
> I'm trying to uninstall the deb files and compile from CVS to see how
> Deronj's fix works.
>
> I just now noticed, waaay at the beginning of the build output Ant
> complains that it can't find tools.jar. Could this be causing my problems?
> I'm using Etch's ant package, because it seems to be recent enough to work,
> but maybe the package is buggy. :-P
>
> I don't have time at the moment to reconfigure ant, but maybe this weekend
> I'll get to play with LG3D again.
>
> Ugh, today seems to be my day to post stupid questions on the net and THEN
> figure out the problem. :-(
>
> William
> (Looking forward to getting the darn thing to build so that I can start
> hacking! :)) [Message sent by forum member 'afishionado' (afishionado)]
>
> http://forums.java.net/jive/thread.jspa?messageID=136617
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

> the tools.jar is part of the jdk, but anyway maybe
> you need to install the
> ant-optional package, I remember something along the
> line of some needed
> tasks not beeing included in the ant package, but not
> sure either. BTW, does
> the ant build process end succesfully?

The line is:

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/lib/tools.jar

packages.debian.org reports that that file is included in java-gcj-compat-dev. I installed that, and rebuilt LG3D.

I still see no postinstall script in the build directory, but when I run app mode as a normal user I get:

Fatal server error:
Could not create server lock file: /tmp/.X1-lock

However, I am now able to run app mode as root. I'm slowly getting there. :-)

I should make clear that the 0.8.1 package is running just fine right now. It's the build from CVS that's fighting me.

William

deronj
Offline
Joined: 2003-09-02

> I still see no postinstall script in the build
> directory

You shouldn't need to run postinstall anymore.
We've removed it from the latest install instructions
(or, at least, we should have).
>
> Fatal server error:
> Could not create server lock file: /tmp/.X1-lock

This looks like you previously ran lg3d-app as a different
user and it did not exit cleanly, so Xvfb left behind
a lock file. I'm guessing that you previously ran it
as root and now are trying to run it as a normal user.
Become root and remove the file. Then try to run lg3d-app
as a normal user again.

David Weizades

I maybe be wrong, but isn't lg3d impossible to run on 1.4.2, especially gcj?
If you're running debian you should check that your java_home is set
correctly. You can do this by doing "bash# update-alternatives --config
java". If doesn't work check your $ JAVA_HOME to see if it points to a
supported JVM.

Just a thought :)
/Dave

On 7/26/06, lg3d@javadesktop.org wrote:
>
> > I still see no postinstall script in the build
> > directory
>
> You shouldn't need to run postinstall anymore.
> We've removed it from the latest install instructions
> (or, at least, we should have).
> >
> > Fatal server error:
> > Could not create server lock file: /tmp/.X1-lock
>
> This looks like you previously ran lg3d-app as a different
> user and it did not exit cleanly, so Xvfb left behind
> a lock file. I'm guessing that you previously ran it
> as root and now are trying to run it as a normal user.
> Become root and remove the file. Then try to run lg3d-app
> as a normal user again.
> [Message sent by forum member 'deronj' (deronj)]
>
> http://forums.java.net/jive/thread.jspa?messageID=136902
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net
>
>
[att1.html]

hideya
Offline
Joined: 2003-07-22

> I maybe be wrong, but isn't lg3d impossible to run on 1.4.2, especially gcj?

Now 0.8.1 requires 1.6 (Mustang) to run fine. You can force it run on 1.5 kind-of (with lots of issues), but I'm very much skeptical about 1.4, especially with gcj...

hideya

Pierre D.

Le Mercredi 26 Juillet 2006 23:25, lg3d@javadesktop.org a écrit :
> > I maybe be wrong, but isn't lg3d impossible to run on 1.4.2, especially
> > gcj?
>
> Now 0.8.1 requires 1.6 (Mustang) to run fine. You can force it run on 1.5
> kind-of (with lots of issues), but I'm very much skeptical about 1.4,
> especially with gcj...
It's impossible with 1.4. Just impossible.

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

At first I assumed that ant was using a different VM than LG, but I think I just forgot to set $JAVA_HOME that time. :-P

> You shouldn't need to run postinstall anymore.
> We've removed it from the latest install
> instructions (or, at least, we should have).

Then maybe you'd better fix [url=https://lg3d.dev.java.net/lg3d-developers-guide.html#Configuring_app_mode]this[/url].

At any rate, I now can run LG3D from CVS in app mode. :-)

Now, I just have to build lg3d-demo-apps, and I'll be all set!

[javac] Compiling 28 source files to /home/william/lg3d/lg3d-demo-apps/${build.platform.dir}/classes
[javac] /home/william/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/wg/SwingNodeRenderer.java:30: package org.jdesktop.j3d.utils.math does not exist
[javac] import org.jdesktop.j3d.utils.math.Math3D;
[javac] ^
[javac] /home/william/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/wg/SwingNode.java:43: package org.jdesktop.j3d.utils.math does not exist
[javac] import org.jdesktop.j3d.utils.math.Math3D;
[javac] ^
[javac] /home/william/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/displayserver/nativewindow/NativePopup3D.java:45: package gnu.x11 does not exist
[javac] import gnu.x11.Visual;
[javac] ^
[javac] /home/william/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/displayserver/nativewindow/TiledNativeWindowImage.java:22: package gnu.x11 does not exist
... Bunch more errors ...

Um, is the Java3D SDK installed? Oops.

EDIT: Yeah, I goofed. I need to reinstall the JDK. :-P

afishionado
Offline
Joined: 2004-05-26

Alright, I *am* stupid. :-P

1. The apps I wanted are in lg3d-incubator, not lg3d-demo-apps.
2. All I had to do to build those was download them to the right place and re-run the build script in lg3d-core.
3. I didn't need to do *anything* to my JDK.

Well, thanks for baby-sitting me. :-) Maybe I can help out by writing some idiot-friendly documentation. :-P

William

hideya
Offline
Joined: 2003-07-22

Hi afishionado,

> Alright, I *am* stupid. :-P

Hey, don't say that. Sometimes it takes long time to figure out simple things. In any case, I'm glad to know that it works fine on your side :)

hideya

afishionado
Offline
Joined: 2004-05-26

FWIW, I've already managed to get my own "Hello World" app running in LG3D, so maybe there's hope for me yet. :-)

(BTW, is there any way in LG3D to load a texture from a BufferedImage? I know Java3D allows this, but I'm guessing that the server architecture makes this impossible.)

In case anybody is interested, my system specs:

Debian Etch
nVidia GeForce 4 with nVidia's driver version 1.0-8762
2.0 GHz Athlon
886Mb RAM (512MB + 256MB + 128MB)

Firefox inside of LG3D is just barely laggy enough to be annoying, but LG3D's performance with native 3D apps is pretty good. I'm happy. :-)

William