Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lookingglass How-To
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chrroessner
Apprentice
Apprentice


Joined: 02 Dec 2003
Posts: 155
Location: Germany

PostPosted: Sat Nov 06, 2004 3:05 pm    Post subject: Reply with quote

Hi,

thanks for that howto. Anything was installed without problems so far, but lg3d-dev nor anything else seems to work here. Everything I get is:

Detected a JDK >= 1.5.0
/opt/lg3d/bin /opt/lg3d
/opt/lg3d
[1] 23441

and nothing happens.

I do not know, what is going wrong here. lookingglass is also listed as wm in KDM, but I can not start it ether. Also with root. Everything I see, I showed you above.

Any ideas?

Christian

[ebuild R ] x11-misc/lookingglass-bin [0.5] +doc 0 kB
[ebuild Rf ] dev-java/jai-bin [1.1.2.01] 0 kB
[ebuild Rf ] dev-java/sun-jdk [1.5.0] +doc -gnome -jce +kde +mozilla 0 kB
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Sun Nov 07, 2004 1:49 am    Post subject: Reply with quote

thanks for the how-to, but it doesn't work for me

when I boot without framebuffer and try to run "displayserver", I get following output:
Code:
/opt/lg3d/bin /opt/lg3d/bin
/opt/lg3d/bin
[1] 7681
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:96)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at java.awt.Toolkit$2.run(Toolkit.java:821)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
        at javax.media.j3d.MasterControl.loadLibraries(Unknown Source)
        at javax.media.j3d.VirtualUniverse.<clinit>(Unknown Source)
        at javax.media.j3d.Canvas3D.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.jdesktop.lg3d.displayserver.AppConnector.platformCheck(AppConnector.java:177)
        at org.jdesktop.lg3d.displayserver.AppConnector.<init>(AppConnector.java:51)
        at org.jdesktop.lg3d.displayserver.AppConnector.getAppConnector(AppConnector.java:78)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.<init>(ServerHandler.java:73)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.main(ServerHandler.java:291)


Btw, I found another how-to: https://lg3d-core.dev.java.net/lg3d-getting-started.html#Troubleshooting
But it couldn't help me ...


so far, I am very impressed :D
http://www.vb-leo.de/board/uploads/post-16-1099792963.jpg
Back to top
View user's profile Send private message
dnasand
n00b
n00b


Joined: 08 Nov 2004
Posts: 1
Location: Belgium

PostPosted: Mon Nov 08, 2004 9:17 pm    Post subject: Reply with quote

I have the same error when I run "displayserver" plz help!

grtz
Back to top
View user's profile Send private message
Killswitch
n00b
n00b


Joined: 11 Oct 2004
Posts: 6
Location: you won't ever hear about it ... = senseless

PostPosted: Sat Nov 13, 2004 12:22 pm    Post subject: Reply with quote

Maybe this Thread is to old :-/

Hmm i hadn't any problems with emerging and so on...
But now he doesn't want to start.
There is just an :

Code:
hask@ankhmorpork hask $ lg3d-dev
Detected a JDK >= 1.5.0
/opt/lg3d/bin /opt/lg3d
/opt/lg3d
[1] 28923


and when i try to start an -session without X-Server there occures an Error-msg with TLS-Problems

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/hask/opt/sun-java3d-bin/lib/libj3dcore-ogl.so: libnvidia-tls.so.1: cannot handle TLS data
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at javax.media.j3d.MasterControl$24.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.j3d.MasterControl.loadLibraries(Unknown Source)
        at javax.media.j3d.VirtualUniverse.<clinit>(Unknown Source)
        at javax.media.j3d.Canvas3D.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.jdesktop.lg3d.displayserver.AppConnector.platformCheck(AppConnector.java:177)
        at org.jdesktop.lg3d.displayserver.AppConnector.<init>(AppConnector.java:51)
        at org.jdesktop.lg3d.displayserver.AppConnector.getAppConnector(AppConnector.java:78)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.<init>(ServerHandler.java:73)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.main(ServerHandler.java:291)



mfg Killswitch
_________________
Nach einem Gespräch mit einem Menschen überkommt mich oft das Verlangen einen Baum zu umarmen, eine Katze zu streicheln oder meinem Hund einen großen Knochen zu spendieren.
Back to top
View user's profile Send private message
qupada
n00b
n00b


Joined: 04 Dec 2004
Posts: 12

PostPosted: Wed Dec 22, 2004 5:30 am    Post subject: Reply with quote

Code:
# lg3d-dev
Detected a JDK >= 1.5.0
/opt/lg3d/bin /opt/lg3d
/opt/lg3d
Could not find library path for jai-bin


Jai emerged fine... although i don't quite get the meaning of this message:

Code:
 * This ebuild now installs into /opt/jai-bin and /usr/share/jai-bin
 * To use you need to pass the following to java
 * -classpath $(java-config -p jai-bin)


Do you need to set an environment variable, or just append java to the start of that and run it once?
Back to top
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Thu Jan 27, 2005 1:13 pm    Post subject: Reply with quote

the looking glass desktop loads for me .. i think ... at least, I get the panorama of the grand canyon-looking-area with the nice java logo (and a jolly roger!) in the top right .. but no menu at the bottom, and clicking doesnt seem to do anything ... thoughts?

here is the console output
Code:
tim@apollo x11-misc $ /opt/lg3d/bin/lg3d-dev
/opt/lg3d/bin /usr/portage/x11-misc
/usr/portage/x11-misc
[1] 19440
tim@apollo x11-misc $           

_________________
-Tim Smith
Back to top
View user's profile Send private message
impressme
n00b
n00b


Joined: 08 Mar 2003
Posts: 5

PostPosted: Tue Feb 01, 2005 4:09 pm    Post subject: LG3D - Two Modes Reply with quote

LG has two modes. The first mode is a development mode. It is run via the script lg3d-dev. This mode is independent from the underlying OS. It runs on any system which supports JDK 1.5: Linux, Solaris, Mac, and Windows. The primary of purpose of this mode is to support the development of 3D applications. This mode does not support windows of the underlying OS window system (such as X11 windows on Linux). The development mode is started from within the OS's base window system. For example, on Linux you can run lg3d-dev from within GNOME. The other mode is the "session" mode. This is started by exiting the base window system and running lg3d-session. This mode provides the ability to start windows of the base window system. For example, on Linux you can run X11 applications in this mode. Please note that the session mode is still under development and is somewhat buggy, so it is not quite as far along as the dev mode.
Back to top
View user's profile Send private message
Trebiani
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 132
Location: Graz, AT

PostPosted: Tue Feb 08, 2005 11:56 am    Post subject: LookingGlass3D Version 0.61 Reply with quote

has someone tried the new version?
.... and is there an ebuild out there?

cheers,
treb
Back to top
View user's profile Send private message
Dhaki
Guru
Guru


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Tue Feb 08, 2005 12:19 pm    Post subject: Reply with quote

I've made a bug report: https://bugs.gentoo.org/show_bug.cgi?id=78973, but... no ebuild for the moment. I've installed manually the 0.61, but il freeze my pc when I start it :(
Back to top
View user's profile Send private message
float-
Apprentice
Apprentice


Joined: 31 Aug 2003
Posts: 174

PostPosted: Sat Feb 12, 2005 1:01 pm    Post subject: Reply with quote

mine freezes as well :(
Back to top
View user's profile Send private message
deadstar
Guru
Guru


Joined: 02 Nov 2004
Posts: 319
Location: England

PostPosted: Sat Feb 12, 2005 10:34 pm    Post subject: Reply with quote

Got it working, looking georgeous!

Can't wait til its fully featured, goodbye KDE. This is something I will patiently wait for, and will most definately use!

Cannot use the "session" option though:


Code:


[1] 19001
/opt/lg3d/bin /opt/lg3d
/opt/lg3d
[1] 19009

, Java 3D 1.3.2.
Java 3D: Shape3D bounds enabled for transparency sorting
Java 3D: render Graphics2D DrawPixel disabled
Java 3D: background texture is enabled
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.LgConfig loadConfig
INFO: Loading config null
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.LgConfig loadConfig
INFO: Using default configuration
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.LgConfig logConfig
CONFIG: SceneManager org.jdesktop.lg3d.scenemanager.glassy.GlassySceneManager
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: LG version   : 6/26/04 9:24:54 PM PDT
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: Java version : 1.5.0_01
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: Java vendor  : Sun Microsystems Inc.
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: OS name      : Linux
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: OS arch      : i386
Feb 12, 2005 10:32:56 PM org.jdesktop.lg3d.displayserver.DisplayServerControl <init>
INFO: OS version   : 2.6.9-gentoo-r13
java.rmi.ServerError: Error occurred in server thread; nested exception is:
        java.lang.NoClassDefFoundError: javax/media/jai/remote/SerializableRenderedImage
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:382)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:595)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at org.jdesktop.lg3d.sg.internal.rmi.rmiclient.SceneGraphSetup.initialiseServer(SceneGraphSetup.java:57)
        at org.jdesktop.lg3d.sg.SceneGraphSetup.initializeServer(SceneGraphSetup.java:47)
        at org.jdesktop.lg3d.displayserver.DisplayServerControl.<init>(DisplayServerControl.java:105)
        at org.jdesktop.lg3d.displayserver.AppConnector.getAppConnector(AppConnector.java:83)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.<init>(ServerHandler.java:73)
        at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.main(ServerHandler.java:291)
Caused by: java.lang.NoClassDefFoundError: javax/media/jai/remote/SerializableRenderedImage
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
        at java.lang.Class.privateGetPublicMethods(Class.java:2488)
        at java.lang.Class.getMethods(Class.java:1406)
        at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:409)
        at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:306)
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:484)
        at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:676)
        at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:665)
        at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
        at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
        at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
        at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
        at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:595)
bash-2.05b$                                 

[/code]
_________________
Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com

(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
Back to top
View user's profile Send private message
deadstar
Guru
Guru


Joined: 02 Nov 2004
Posts: 319
Location: England

PostPosted: Sun Feb 13, 2005 11:49 pm    Post subject: Reply with quote

Trying to build the latest CVS version of Looking Glass, and have bumped into a problem.

I'm using the 'ant' program to compile, and I get the following error:

[code}

bash-2.05b$ ant
Buildfile: build.xml

init-props:

init:
[echo] ${incubator.exists}

unpack-x:

compile:
[javac] Compiling 700 source files to /home/matt/projects/lg3d/lg3d-core/build/classes
[javac] /home/matt/projects/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/apps/test/CursorTest.java:27: package javax.vecmath does not exist
[javac] import javax.vecmath.Vector3f;
[javac] ^
[javac] /home/matt/projects/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/apps/test/HelloUniverseApp.java:32: package javax.vecmath does not exist
[javac] import javax.vecmath.*;
[javac] ^
[javac] /home/matt/projects/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/wg/Container3D.java:24: package javax.vecmath does not exist
[javac] import javax.vecmath.*;
[javac] ^
[javac] /home/matt/projects/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/wg/Component3D.java:32: package javax.vecmath does not exist
[javac] import javax.vecmath.*;
[javac] ^
[javac] /home/matt/projects/lg3d/lg3d-core/src/classes/org/jdesktop/lg3d/displayserver/LgBranchGroup.java:37: package com.sun.j3d.utils.picking does not exist

.....................many more similar errors later...................

BUILD FAILED
/home/matt/projects/lg3d/lg3d-core/build.xml:81: Compile failed; see the compiler error output for details.

Total time: 5 seconds
bash-2.05b$

[/code]


I've tried using different Java VMs, tried setting the packages (java-config --set-user-classpath sun-java3d-bin,jai-bin,ant-core).

By looking at the errors it seems ANT cannot find the sun-java3d-bin package (javax.vecmath is part of this package, as far as I know).

Any ideas?
_________________
Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com

(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
Back to top
View user's profile Send private message
mallchin
l33t
l33t


Joined: 21 Jan 2003
Posts: 655
Location: United Kingdom

PostPosted: Sun Mar 06, 2005 4:13 am    Post subject: Reply with quote

It's such a shame I'm using amd64, but I guess by the time this hits 1.0 it'll be compatibly (I hope)...

In the meantime I've been running 0.5 in a 32bit shell (looking glass roxx!!), unfortunately 0.6x whines and wants a newer version of Java 3D...

It's late, but I'm definately gonna give this a shot tomorrow :D
_________________
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Back to top
View user's profile Send private message
mallchin
l33t
l33t


Joined: 21 Jan 2003
Posts: 655
Location: United Kingdom

PostPosted: Mon Mar 14, 2005 8:26 pm    Post subject: Reply with quote

Did anybody get an lg3d-session working then? Screenies please......
_________________
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Back to top
View user's profile Send private message
iverasp
n00b
n00b


Joined: 11 Oct 2004
Posts: 58

PostPosted: Wed Mar 23, 2005 2:08 pm    Post subject: Reply with quote

As I couldn't find the java3d-1_3_2-build4-linux-i586.tar.gz file (seems like Sun has taken it of their servers), but the build8 one instead, I had to install it manually.

First, download the java3d-1_3_2-build4-linux-i586.tar.gz file from Sun.
Code:
> wget http://javadesktop.org/java3d/builds/stable/1_3_2-build8/java3d-1_3_2-build8-linux-i586.zip


Unzip it with
Code:
> unzip java3d-1_3_2-build8-linux-i586.zip


Now you should have a folder with some text files, and a j3d-132-build8-linux-x86.jar file. The HOW-TO-INSTALL.txt says to extract the file into the jre directory of where the Sun JDK is installed. In Gentoo i found this to be /opt/sun-jdk-1.5.0.02/jre.
Code:
> cd /opt/sun-jdk-1.5.0.02/jre/


Now extract the jar file with
Code:
> jar xvf /path/to/j3d-132-build8-linux-x86.jar


Portage will of course not know that you have installed this software manually, so you'll have to tell it not to emerge the file by doing
Code:
> mkdir /etc/portage/profile
> echo "dev-java/sun-java3d-bin-1.32-r1" >> /et/portage/profile/package.provided


Now you can continue emerging lookingglass-bin without problems :D
Back to top
View user's profile Send private message
iverasp
n00b
n00b


Joined: 11 Oct 2004
Posts: 58

PostPosted: Wed Mar 23, 2005 3:57 pm    Post subject: Reply with quote

Woh, got the lg3d-dev working fine :D! But the session version shows the same error as deadstar has. Anyone got it working?
Back to top
View user's profile Send private message
deadstar
Guru
Guru


Joined: 02 Nov 2004
Posts: 319
Location: England

PostPosted: Mon Apr 04, 2005 12:34 pm    Post subject: Reply with quote

Got the session working! Its slow as hell! As soon as I can figure out how to get a screenshot I'll post one.

Got Firefox and Kopete running on it.
_________________
Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com

(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
Back to top
View user's profile Send private message
rayen16
n00b
n00b


Joined: 28 Mar 2005
Posts: 15

PostPosted: Tue Apr 05, 2005 5:15 pm    Post subject: Reply with quote

Maybe the first post of this topic could be updated, so people could install Looking Glass easily :)
Back to top
View user's profile Send private message
Mayday
n00b
n00b


Joined: 12 Mar 2004
Posts: 13

PostPosted: Fri Apr 08, 2005 5:32 am    Post subject: Updated? Reply with quote

Has this document been updated? I was looking for anything looking glass related with the new release of 2005.0 and I have not seen anything.

There is no package in the portage tree that look slike it is related to looking glass.

Code:
emerge search lg3d
Searching...
[ Results for search key : lg3d ]
[ Applications found : 0 ]


Found this however, not sure if it works.

http://gentoo-wiki.com/HOWTO_Looking_Glass
Back to top
View user's profile Send private message
se_grulli
n00b
n00b


Joined: 01 May 2005
Posts: 1

PostPosted: Sun May 01, 2005 10:26 pm    Post subject: Reply with quote

has anyone information about this issue?

i can't find lookingglass in portage either. is it going to be working again?
Back to top
View user's profile Send private message
jd5419
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2004
Posts: 110
Location: RI, USA

PostPosted: Sat May 07, 2005 10:22 pm    Post subject: Reply with quote

Did this dissapear from portage? I tried it months ago but wanted to revisit it now and its no longer there :-\
Back to top
View user's profile Send private message
mallchin
l33t
l33t


Joined: 21 Jan 2003
Posts: 655
Location: United Kingdom

PostPosted: Sun May 08, 2005 1:35 pm    Post subject: Reply with quote

I have an overlay ebuild for lookingglass-bin-0.6.1:

Code:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/lookingglass-bin/lookingglass-bin-0.5.ebuild,v 1.2 2004/08/08 00:54:21 slarti Exp $

inherit eutils

DESCRIPTION="Looking Glass - 3D window manager written in Java"
HOMEPAGE="https://lg3d.dev.java.net/"
SRC_URI="https://lg3d-core.dev.java.net/files/documents/1834/5501/lg3d-${PV}.tar.gz"
LICENSE="GPL-2"
IUSE="doc"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND=""
RDEPEND=">=dev-java/sun-jdk-1.5.0_beta2
        >=dev-java/jai-bin-1.1.2-r3
        >=dev-java/sun-java3d-bin-1.32-r1
        || (
                app-shells/tcsh
                app-shells/csh
        )
        >=dev-java/java-config-1.2.10"

S=${WORKDIR}/lg3d

src_unpack() {
        unpack ${A} && cd ${S}
#       epatch ${FILESDIR}/lg3d-dev.patch
#       epatch ${FILESDIR}/displayserver.patch
        #epatch ${FILESDIR}/setup.patch
}

src_compile() { :; }

src_install() {
        dodir /opt/lg3d /etc/ /opt/lg3d/etc/
        mv bin ext ext-unbundled lib resources ${D}/opt/lg3d/
        mv etc/lg3d ${D}/etc/
        use doc && dodoc LICENSE.txt
        use doc && dohtml -r docs/

        dodir /etc/X11/Sessions
        dosym /opt/lg3d/bin/lg3d-session /etc/X11/Sessions/lookingglass
        dosym /etc/lg3d /opt/lg3d/etc
        into /opt
        dobin ${FILESDIR}/lg3d-dev ${FILESDIR}/lg3d-session
}


pkg_postinst() {
        echo
        ewarn "To run Looking Glass, the screen must be in 24-bit mode"
        ewarn "To run in window, run lg3d-dev"
        ewarn "To run as a session, run lg3d-session"
        echo
}



files/displayserver.patch

Code:

--- bin/displayserver   2004-06-27 06:25:06.000000000 +0200
+++ bin/displayserver   2004-07-29 11:53:51.160475080 +0200
@@ -13,6 +13,12 @@

 echo $path >> /tmp/lgserver.log

+set lp="`java-config -i sun-java3d-bin,jai-bin`"
+set cp="`java-config -p sun-java3d-bin,jai-bin`:${CLASSPATH}"
+
+echo java.library.path ${lp} >> /tmp/lgserver.log
+echo classpath ${cp} >> /tmp/lgserver.log
+

 pkill -f "rmiregistry ${RMI_PORT}"
 sleep 1
@@ -26,4 +32,4 @@
 # Add lib/i386 to path so we can find cep
 set path=( ${scriptdir}/../lib/i386 $path )

-java  -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNING" -
+java -cp ${cp} -Djava.library.path=${lp} -Dj3d.sortShape3DBounds="true" -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log



files/lg3d-dev

Code:

#!/bin/bash
# Copyright (c) 2004, Thomas Matthijs <axxo@gentoo.org>
# Copyright (c) 2004, Gentoo Foundation
#
# Licensed under the GNU General Public License, v2

# From java-utils.eclass
get-vm-version() {
        local version=$(java-config -f | sed -r "s/^[a-zA-Z-]+//")
        echo ${version}
}

is-vm-version-ge() {
        local user_major=${1-0}
        local user_minor=${2-0}
        local user_patch=${3-0}
        local user_version=${user_major}.${user_minor}.${user_patch}

        local vm_version=`get-vm-version`

        local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
        local vm_major=$(echo ${vm_version} | sed -r "s/${ver_rx}/\1/")
        local vm_minor=$(echo ${vm_version} | sed -r "s/${ver_rx}/\2/")
        local vm_patch=$(echo ${vm_version} | sed -r "s/${ver_rx}/\3/")
        local vm_extra=$(echo ${vm_version} | sed -r "s/${ver_rx}/\4/")

        if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then
                echo "Detected a JDK >= ${user_version}"
                return 0
        elif [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -ge ${user_minor} ] && [ ${vm_patch} -ge ${user_patch} ] ; then
                echo "Detected a JDK >= ${user_version}"
                return 0
        else
                echo "Detected a JDK < ${user_version}"
                return 1
        fi
}

if ! is-vm-version-ge 1 5; then
        echo "You current jdk is not >= 1.5"
        echo "Please use java-config to select a 1.5"
        exit 1
fi

cd /opt/lg3d/
exec bin/lg3d-dev $@



files/lg3d-dev.patch

Code:

--- bin/lg3d-dev        2004-07-28 21:09:27.432202120 +0200
+++ bin/lg3d-dev        2004-07-28 21:33:44.272728696 +0200
@@ -22,6 +22,11 @@

 echo $path >> /tmp/lgserver.log

+set lp="`java-config -i sun-java3d-bin,jai-bin`"
+set cp="`java-config -p sun-java3d-bin,jai-bin`:${CLASSPATH}"
+
+echo java.library.path ${lp} >> /tmp/lgserver.log
+echo classpath ${cp} >> /tmp/lgserver.log

 pkill rmiregistry
 sleep 1
@@ -30,4 +35,4 @@

 setenv DISP_CONFIG -Dlg.displayconfigurl=file://${scriptdir}/../etc/lg3d/displayconfig/j3d1x1

-java  -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} -Dorg.jdesktop.jz.jzcoresrc=$LGCORESRC org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNING" -
+java -cp ${cp} -Djava.library.path=${lp} -Dj3d.sortShape3DBounds="true" -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} -Dorg.jdesktop.jz.jzcoresrc=$LGCORESRC org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler |& tee -a /var/tmp/lgserver.log  | grep "SEVERE\|WARNING" -


files/lg3d-session

Code:

#!/bin/bash
# Copyright (c) 2004, Thomas Matthijs <axxo@gentoo.org>
# Copyright (c) 2004, Gentoo Foundation
#
# Licensed under the GNU General Public License, v2

# From java-utils.eclass
get-vm-version() {
        local version=$(java-config -f | sed -r "s/^[a-zA-Z-]+//")
        echo ${version}
}

is-vm-version-ge() {
        local user_major=${1-0}
        local user_minor=${2-0}
        local user_patch=${3-0}
        local user_version=${user_major}.${user_minor}.${user_patch}

        local vm_version=`get-vm-version`

        local ver_rx="([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"
        local vm_major=$(echo ${vm_version} | sed -r "s/${ver_rx}/\1/")
        local vm_minor=$(echo ${vm_version} | sed -r "s/${ver_rx}/\2/")
        local vm_patch=$(echo ${vm_version} | sed -r "s/${ver_rx}/\3/")
        local vm_extra=$(echo ${vm_version} | sed -r "s/${ver_rx}/\4/")

        if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then
                echo "Detected a JDK >= ${user_version}"
                return 0
        elif [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -ge ${user_minor} ] && [ ${vm_patch} -ge ${user_patch} ] ; then
                echo "Detected a JDK >= ${user_version}"
                return 0
        else
                echo "Detected a JDK < ${user_version}"
                return 1
        fi
}

if ! is-vm-version-ge 1 5; then
        echo "You current jdk is not >= 1.5"
        echo "Please use java-config to select a 1.5"
        exit 1
fi

cd /opt/lg3d/
exec bin/lg3d-session $@



files/setup.patch

Code:

--- bin/setup   2004-06-27 06:25:06.000000000 +0200
+++ bin/setup   2004-07-29 11:41:01.000000000 +0200
@@ -38,7 +38,8 @@
 # Use the default remote config by default
 if ( ${?LGCONFIG} == 0 ) then
 #    setenv LGCONFIG file://${scriptdir}/lgconfig_x_remote.xml
-    setenv LGCONFIG
+    setenv LGCONFIG file://${scriptdir}/../etc/lg3d/lgconfig_1p_nox.xml
+    #setenv LGCONFIG
 endif

 setenv CLASSPATH ${lgdir}/lib/ext/lg3d-core.jar:${lgdir}/ext/escher-0.2.2.jar:${lgdir}/



You might not need all the additional files, but I've included them anyway... Put them in files/ inside your overlay dir.
_________________
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Back to top
View user's profile Send private message
ballero
n00b
n00b


Joined: 10 Jul 2004
Posts: 62

PostPosted: Wed May 11, 2005 5:06 pm    Post subject: Reply with quote

Code:
*  dev-java/sun-java3d-bin
      Latest version available: 1.3.2
      Latest version installed: 1.3.2
      Size of downloaded files: 2,419 kB
      Homepage:    https://j3d-core.dev.java.net/
      Description: Sun Java3D API Core
      License:     sun-jrl sun-jdl


ballero ~ # /opt/lg3d/bin/lg3d-dev
/opt/lg3d/bin ~
~
LG_SETTINGS -Dlg.etcdir=/opt/lg3d/bin/../etc/
[1] 7976
SEVERE: Project Looking Glass requires Java 3D 1.3.2 or later
ballero ~ #


Any hints?
_________________
Gentoo: livin' on the edge.
Back to top
View user's profile Send private message
mallchin
l33t
l33t


Joined: 21 Jan 2003
Posts: 655
Location: United Kingdom

PostPosted: Thu May 12, 2005 5:53 pm    Post subject: Reply with quote

Same here, anyone solve this?
_________________
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Back to top
View user's profile Send private message
Trebiani
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 132
Location: Graz, AT

PostPosted: Wed May 18, 2005 6:06 pm    Post subject: Reply with quote

mallchin wrote:
Same here, anyone solve this?

java3d and jai is missing in the classpath and -Djava.library.path=/opt/sun-java3d-bin/lib should point to libj3dcore-ogl.so
after adding it lg3d-dev is running fine


this is my /opt/lg3d/bin/lg3d-dev:

Code:
#!/bin/csh -f
set tmp = $0
set scriptdir = ${tmp:h}
if (${scriptdir} == ${tmp}) set scriptdir = .
source ${scriptdir}/setup

set config = $1

if (-f ${scriptdir}/../etc/lg3d/$config) then
    echo "Using config file ${config}"
else
    set config = lgconfig_1p_nox.xml
endif

setenv LGCONFIG file:///${etcdir}/lg3d/${config}

echo LGCONFIG $LGCONFIG > /var/tmp/lgserver.log
echo JAVA_HOME $JAVA_HOME >> /var/tmp/lgserver.log
echo LGX11HOME $LGX11HOME >> /var/tmp/lgserver.log
echo X Server Version >> /var/tmp/lgserver.log
cat ${LGX11HOME}/VERSION >> /var/tmp/lgserver.log

echo $path >> /var/tmp/lgserver.log

set lp="`java-config -i sun-java3d-bin,jai-bin`"
set cp="`java-config -p sun-java3d-bin,jai-bin`:${CLASSPATH}"

echo java.library.path ${lp} >> /tmp/lgserver.log
echo classpath ${cp} >> /tmp/lgserver.log

pkill -f "rmiregistry ${RMI_PORT}"
sleep 1
rmiregistry ${RMI_PORT} &
echo LD_LIBRARY_PATH $LD_LIBRARY_PATH >> /var/tmp/lgserver.log

setenv DISP_CONFIG -Dlg.displayconfigurl=file:///${etcdir}/lg3d/displayconfig/j3d1x1

java ${DEBUG_FLAGS} -Xmx512m -cp ${cp} -Djava.library.path=${lp} -Dj3d.sortShape3DBounds="true" ${LG_SETTINGS} -Dlg.configurl=${LGCONFIG} ${DISP_CONFIG} org.jdesktop.lg3d.displayserver.Main |& tee -a /var/tmp/lgserver.log | grep "SEVERE\|WARNINGi\|ClassVersionError" -


Last edited by Trebiani on Wed May 18, 2005 7:30 pm; edited 2 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum