Using JOGL in an Elipse RCP

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Using JOGL in an Elipse RCP

brbrett
I have looked around the documentation and the web and not found a good recent complete correct example of how to do this.

The Wiki example http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE#Eclipse_IDE_project  does not create a RCP plugin package.

http://www.cyslider.de/blog/index.php/2009/01/06/adding-a-jar-file-to-your-eclipse-rcp-pl describes just putting the jar into your top level project

http://www.youtube.com/watch?v=2EaaQrgvsL0 shows something similar, while unpacking the .dll's into a specific place explicitly, for which he is criticized by

"gouessej
1 year ago

3:30 You should not have to extract any DLL from the JAR (as GlueGen does it for you under the hood, it extracts and loads the proper native libraries). Maybe there was another problem in your environment or maybe this was a bug but it should have worked fine without this step. Please fix your tutorial in order to avoid confusions. If you still have this problem, please report it as a bug."


It appears that the video is correct - the .dll in the .jar files are not unpacked and found automatically in the RCP case.


Could someone please update the Wiki with a complete worked example of using JOGL in an RCP

Thank!
Reply | Threaded
Open this post in threaded view
|

Re: Using JOGL in an Elipse RCP

Wade Walker
Administrator
I've got a tutorial showing how to create a JOGL RCP plugin the old way (with unpacked .dll/.dylib/.so) at http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/. The other tutorials on my blog show how to use the RCP plugin to make a complete project.

There is also an example of how to create a JOGL RCP plugin the new way (with the .dll/.dylib/.so left inside JAR files) in my GitHub at https://github.com/WadeWalker/com.jogamp.jogl. If you check out that repo, it'll give you a complete JOGL RCP plugin, though you'll probably want to upgrade the JOGL JARs to the latest version after you make sure it works.
Reply | Threaded
Open this post in threaded view
|

Re: Using JOGL in an Elipse RCP

brbrett
Clear, precise, and works!

Thank you

/Bevin
Reply | Threaded
Open this post in threaded view
|

Re: Using JOGL in an Elipse RCP

gouessej
Administrator
In reply to this post by brbrett
Hi

The video you quoted is a pure crap. Its author chose the wrong JVM and blamed JOGL for that. I wrote: "
It should be even simpler than this. If he hadn't used the wrong JRE, he would have done this in less than 3 minutes."
"His tutorial ruins a bit our effort. For example, as he uses the wrong JVM and as he doesn't get the JARs for both architectures (x86 and amd64) from the start, he doesn't benefit of the automatic extraction and loading of native libraries, a new feature of JOGL 2.0."
"If you had done that first, if you had used the proper JRE from the beginning, GlueGen would have succeeded in extracting and loading the native libraries. Please fix your tutorial"

Please edit your post and remove the link to this video. I'm sorry to ask you to do that but what this guy did is really problematic, he has never fixed his video.

There have been several attempts of creating OSGI bundles for JOGL, for example this one:
https://github.com/agentlab/jogl4e

In my humble opinion, Wade's tutorials are very good and understandable :)
Julien Gouesse | Personal blog | Website