could you please check, if there is a “libgluegen-rt.so” in “/opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586”?
There is:
/opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586$ ls
libgluegen-rt.so libjogl_awt.so libjogl_cg.so libjogl.so
// Gregof
Strange. Maybe I packaged the wrong binaries!? Is there any way to check if the libgluegen-rt.so is suitable for your platform? If so, would you mind doing that?
Another test would be to create a distribution, by right-clicking the project node and select “build project”.
After that, open a shell and go to the dist-linux-i586 folder in the projects directory. Type
java -jar SimpleJOGL.jar -Djava.library.path=./
and post the result.
Thanks for helping!
cylab
Hi again
I’m not sure how to check if the libgluegen-rt.so is correct for my plattform, I did a ldd though;
ldd -v libgluegen-rt.so
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc9000)
/lib/ld-linux.so.2 (0x80000000)
Version information:
./libgluegen-rt.so:
libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
/lib/tls/i686/cmov/libc.so.6:
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
If someone knows a way to verify that these are the correct binaries, i would love to know
I tried running from the shell to, it produces exactly the same result.
// Gregof
first: my shell command posted above was wrong
java -Djava.library.path=. -jar SimpleJOGL.jar
should work.
second: I found the bug…
I made the wrong asumption, that “/foo/bar/jogl.jar/…/jogl-natives-linux-i586” resolves to “/foo/bar/jogl-natives-linux-i586” on linux, which is wrong. “/foo/bar/jogl.jar/…/jogl-natives-linux-i586” simple is an invalid path on linux
I have to change the libraries layout in the module to fix that. In the meanwhile, open the “nbproject/project.properties”-file and change the property “run-sys-prop.java.library.path” (line 59) to your jogl-natives folder in the netbeans-installation (e.g for gregorf: /opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586)
Sorry about that I’ll post an update soon.
cylab
Hi, thank you for fixing this.
With the changes to nbproject/project.properties it worked, I cant belive I missed the broken path before ;D
I look forward to the next version, keep the good work up!
// Gregof
I also did the changes but still get the very same error message. Even tried downloading the library myself and set a path to that without any luck. I’m gonna try on a different computer to see if that makes any difference, since I get the very same error in Eclipse (even when using -Djava.library.path=path/to/natives). I’ve started to experimenting with OpenGL in C/C++ insead in the mean time.
Might take a week or so before I get that other computer up and running. It’s a desktop and I only have a wireless connection right now, need to drill some holes and get some network cables in place. But when I’m finished I’ll report back. I’m running xubuntu with an ATI-based graphics card. Should not be an issue since all examples work fine (glx gears etc).
Thanks for your help.
@Mange
Please make sure, you haven’t installed any other version of jogl/gluegen and their natives on your system. Especially make sure, you don’t have a jogl.jar under [jre|jdk]/lib/ext
Hi,
i get this exception if I run the GLSL Editor with NetBeans 6 m8:
WARNUNG [org.netbeans.modules.editor.settings.storage.XMLStorage]: XML parser error in file Editors/text/x-glsl-fragment-shader/NetBeans/Defaults/coloring.xml
org.xml.sax.SAXParseException: Document root element "fontscolors", must match DOCTYPE root "null".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
[catch] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)
....
regards,
bienator
Thanks for the report. Never tried the plugins in NB6. I’ll hava a look.
cylab
Hi again,
I have written a NB module for native GLSL compiler integration into the IDE (screen shot attached). I have some questions on your implementation of the GLSL modules. Perhaps it would make sense to add my module to your updatecenter. So, if you are interested, please send me a PM with your mail address.
regards,
bienator
I just updated the project template to JOGL JSR-231 1.1.0-Final. You can download the available modules here:
http://cylab.codewut.de/nbms/50/net-highteq-gamedev-nbm-joglproject.nbm
Or download and install the Update-Center:
http://cylab.codewut.de/nbms/50/net-highteq-gamedev-nbm-updatecenter.nbm
After that you can install the modules (and keep track of future updates) via the “Gamedev Updatecenter” under |Tools|->|Update Center|.
This version should also fix the problems when running under linux, so try it out!
NOTE: existing projects will not get updated
I had to change the natives layout to fix the linux bug, so this version is not compatible with already created projects. The old projects will remain to work, but don’t benefit from the jogl update - they will still use the old jar versions. I am confident, that this is the last time this will occur.
Could you update your template for netbeans 6?
The GLSL editor and compiler integration module looks great (by looking at the screensot), do you plan to use it?
I have very limited free time at the moment due to work, but bienator has contacted me some time ago and he set up a project on java.net: NetBeans OpenGL Pack. We will merge our codebases there, prepare a NB6 compatible release and make the source available under BSD licence via SVN. I will post here as soon as something is available.
Any news yet when the NB6 template will be available?
Actually there is not so much to do and the SVN-trunk already runs fine on NB6, but it still misses some polishing and minor improvements. We plan to make a release available within the next two weeks.
yes, please be patient, we are short before the release. The NetBeans OpenGL Pack has now a New and Noteworthy page for more info.
https://netbeans-opengl-pack.dev.java.net/servlets/ProjectProcess?tab=1
feel free to checkout from svn and try if you can’t wait
A preview release of the NetBeans OpenGL Pack is now available. Please see this thread for more information:
http://www.java-gaming.org/index.php/topic,18726.0.html
please use the NetBeans Plugin Portal to get the OpenGL Pack (version 0.5.1 and later)
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260
NetBeans OpenGL Pack 0.5.5 ships now JOGL 1.1.1a, adds NetBeans 6.7 support (which was released today) and adds a few other things.
release notes
get it while its hot:
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260