I have some packaging questions.
First off, I've created a yum repository with my jogl RPMS. Just copy the following into /etc/yum.repos.d/spindazzle.org.repo and run...
$ yum install jogl
---- cut here --------------------------------------------------- # All SRPMS are found in http://spindazzle.org/yum/FC4/SRPMS
[spindazzle.org] name=spindazzle.org FC4 $basearch baseurl=http://spindazzle.org/yum/FC4/$basearch gpgkey=http://spindazzle.org/yum/green@spindazzle.org-pubkey.txt enabled=1 gpgcheck=1 ---- cut here ---------------------------------------------------
I also tried packaging the Gears demo, but ran into a couple of problems. My spec file builds Gears like so:
gcj -o Gears --main=demos.gears.Gears Gears.java -ljogl.jar
I think this is supposed to work, since....
$ ls -l /usr/lib/libjogl.jar.so lrwxrwxrwx 1 root root 21 May 24 17:12 /usr/lib/libjogl.jar.so -> libjogl-1.1b11.jar.so
I've placed the Gears SRPM here: http://spindazzle.org/yum/FC4/SRPMS
If you build it and try to install, you'll get:
error: Failed dependencies: libjogl.jar.so is needed by jogl-demos-Gears-1.5-1fc.i386
I don't understand why I'm getting this, since the symlink and underlying library do exist.
The next problem is that Gears executable won't run. When I try it I get a NullPointerException in VMClassLoader.resolveClass (this is the exception causing a LinkageError: unexpected exception during linking: net.java.games.jogl.GLCapabilities).
The Gears demo _does_ run when I run it from bytecode and have the appropriate jar files in my CLASSPATH.
Any suggestions re: these two problems?
Thanks!
AG
On Tuesday 24 May 2005 21:11, Anthony Green wrote:
$ ls -l /usr/lib/libjogl.jar.so lrwxrwxrwx 1 root root 21 May 24 17:12 /usr/lib/libjogl.jar.so -> libjogl-1.1b11.jar.so
I've placed the Gears SRPM here: http://spindazzle.org/yum/FC4/SRPMS
If you build it and try to install, you'll get:
error: Failed dependencies: libjogl.jar.so is needed by jogl-demos-Gears-1.5-1fc.i386
I don't understand why I'm getting this, since the symlink and underlying library do exist.
The "jogl" RPM doesn't provide libjogl.jar.so.
| $ wget http://spindazzle.org/yum/FC4/i386/jogl-1.1b11-3fc.i386.rpm | $ rpm -qp --provides jogl-1.1b11-3fc.i386.rpm | warning: jogl-1.1b11-3fc.i386.rpm: V3 DSA signature: NOKEY, key ID 207e4a1a | libjogl-1.1b11.jar.so | libjogl.so | jogl = 0:1.1b11-3fc
I haven't looked at the spec file. You may have to add this "Provides" header manually. Or you may want to look at the script that auto-generates Provides headers, and try and figure out why it's failing to pick up libjogl.jar.so.
| $ rpm --eval '%{__find_provides}' | /usr/lib/rpm/redhat/find-provides | $ file /usr/lib/rpm/redhat/find-provides | /usr/lib/rpm/redhat/find-provides: Bourne-Again shell script text executable
java-devel@lists.fedoraproject.org