This post was updated on .
Hello everyone!
Does anyone has examples of using Gluegen? i couldn't run native methods. when i call a native method i get the unsatisfiedlinkerror exception tutorial, examples, code, everything could help. i made import to 3 jar files - gluegen, gluegen-rt, gluegen-native on my java project and loaded the native labrary properly. i'm using eclipse indigo, linux x32. Thanks in advanced!! Tomer |
Administrator
|
Hi
Rather build GlueGen from source and run it as an ant task as it is explained in the manual: http://jogamp.org/gluegen/doc/manual/ I remind you that GlueGen requires some third party libraries including ANTLR.
Julien Gouesse | Personal blog | Website
|
hi what is ant task? does it affects the performance of the java task considering run time? Thanks בתאריך 8 בינו 2014 16:38, "gouessej [via jogamp]" <[hidden email]> כתב:
Hi |
In reply to this post by gouessej
another question if I may. thanks בתאריך 8 בינו 2014 16:46, "Tomer Pollak" <[hidden email]> כתב:
|
Administrator
|
You can run it in command line too but it is tricky as you have to use the correct classpath pointing to GlueGen's JARs and its dependencies whereas using Ant is easier, you can copy/paste a piece of an existing Ant call and modify it a bit to run GlueGen on your files. What you did had no chance to work.
Julien Gouesse | Personal blog | Website
|
Thank you very much..! I'll read tomorrow about this ant you're talking about. At the moment i have no knowledge about itI hope the examples online are satisfied. On Wed, Jan 8, 2014 at 5:19 PM, gouessej [via jogamp] <[hidden email]> wrote: You can run it in command line too but it is tricky as you have to use the correct classpath pointing to GlueGen's JARs and its dependencies whereas using Ant is easier, you can copy/paste a piece of an existing Ant call and modify it a bit to run GlueGen on your files. What you did had no chance to work. |
Administrator
|
You're welcome. Ant is an XML cross-platform build tool mainly used in Java projects, Eclipse has build-in support for it. You can look at the files named "build.xml" in JOGL and JOAL to see how GlueGen is called within an Ant script. Good luck.
Julien Gouesse | Personal blog | Website
|
Do I have to work with JOAL or JOGL to get to work with gluegen? Thank you again, sorry for the newbies questions Tomer בתאריך 9 בינו 2014 00:19, "gouessej [via jogamp]" <[hidden email]> כתב:
You're welcome. Ant is an XML cross-platform build tool mainly used in Java projects, Eclipse has build-in support for it. You can look at the files named "build.xml" in JOGL and JOAL to see how GlueGen is called within an Ant script. Good luck. |
Administrator
|
No, you aren't forced to work with JOAL and JOGL but they use GlueGen, they provide some consistent examples of its use.
Julien Gouesse | Personal blog | Website
|
Hi I downloaded Ant and connected the jar files that are needed. At the moment i'm looking for a way to make the Ant run with my project as an input. Perhaps you have an example of build.xml file that I can learn from? Thanks in advance בתאריך 9 בינו 2014 10:54, "gouessej [via jogamp]" <[hidden email]> כתב:
No, you aren't forced to work with JOAL and JOGL but they use GlueGen, they provide some consistent examples of its use. |
Administrator
|
You can look at the build.xml file of JOGL but it is quite complicated. I remind you that Eclipse already has a build-in support of Ant but you can install another version and set it in your IDE.
Julien Gouesse | Personal blog | Website
|
Apparently my eclipse doesn't have this plugin and i'm running on a computer with no internet access. i'll try to install another version of eclipse, maybe it has the plugin build in. After i'll have that plugin, how the Ant will know to call the gluegen jars? Thanks again!! בתאריך 9 בינו 2014 18:29, "gouessej [via jogamp]" <[hidden email]> כתב:
You can look at the build.xml file of JOGL but it is quite complicated. I remind you that Eclipse already has a build-in support of Ant but you can install another version and set it in your IDE. |
Administrator
|
There is no Ant plugin. Just go to "Window" -> "Show view" -> "Ant" and then drag and drop your build.xml file into this view. You'll have to create your own build.xml file to call the Ant target of GlueGen like in the examples of the manual.
Julien Gouesse | Personal blog | Website
|
ok i'll do so! Thank you a lot! On Fri, Jan 10, 2014 at 10:57 AM, gouessej [via jogamp] <[hidden email]> wrote: There is no Ant plugin. Just go to "Window" -> "Show view" -> "Ant" and then drag and drop your build.xml file into this view. You'll have to create your own build.xml file to call the Ant target of GlueGen like in the examples of the manual. |
In reply to this post by gouessej
Hello Gouessej
How are you?
I took a build.xml file sample from the internet and I try to run it as Ant task .There is a definition in the build.xml file which the eclipse doesn't recognize in run-time:
taskdef
name = "gluegen" classname = "com.sun.gluegen.ant.GlueGenTask" classpathref = "gluegen.classpath when i run as Ant i get this error: build failed
tassdef class com.sun.gluegen.ant.GlueGenTask cannot be found
there is also a warning during compilation
Sorry for asking so many questions.. i totally understand if you don't want to answer anymore and i do appriciate all the help you already gave to me
Tomer
On Fri, Jan 10, 2014 at 11:47 AM, Tomer Pollak <[hidden email]> wrote:
|
Administrator
|
Hi
I'm fine, thank you. You have forgotten the import clauses, look at this script: https://github.com/sgothel/jogl/blob/master/make/build-common.xml Maybe Sven could give you a more precise answer.
Julien Gouesse | Personal blog | Website
|
Administrator
|
On 01/12/2014 04:29 PM, gouessej [via jogamp] wrote:
> Hi > > I'm fine, thank you. > > You have forgotten the import clauses, look at this script: > https://github.com/sgothel/jogl/blob/master/make/build-common.xml > > Maybe Sven could give you a more precise answer. .. or GlueGen's own unit test, using GlueGen: <https://github.com/sgothel/gluegen/blob/master/make/build-test.xml#L494> signature.asc (911 bytes) Download Attachment |
Thank you for your answers!
There are lots of jar files that are imported in this file. I hope one of them is related to GlueGenTask However, i couldn't find any simple example of calling gluegen from build.xml file. I'd love to see one if someone has |
Administrator
|
On 01/12/2014 06:33 PM, doofx [via jogamp] wrote:
> Thank you for your answers! > > There are lots of jar files that are imported in this file. I hope one of them > is related to GlueGenTask > However, i couldn't find any simple example of calling gluegen from build.xml > file. I'd love to see one if someone has > > On 01/12/2014 04:36 PM, Sven Gothel wrote: > .. or GlueGen's own unit test, using GlueGen: > > <https://github.com/sgothel/gluegen/blob/master/make/build-test.xml#L494> > Allow me to help you giving 'eyes': Which reads .. a few lines later: <gluegen src="${test.junit.generation.dir}/test1-gluegen.c" outputRootDir="${build_t.gen}" config="${test.junit.generation.dir}/test1-gluegen.cfg" literalInclude="${test.junit.generation.dir}" includeRefid="stub.includes.fileset.test" emitter="com.jogamp.gluegen.JavaEmitter" dumpCPP="false" debug="false"> <classpath refid="gluegen.classpath" /> </gluegen> The following adds the gluegen task .. <https://github.com/sgothel/gluegen/blob/master/make/build-test.xml#L104>: <!-- Add the GlueGen tasks to ANT --> <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask" classpathref="gluegen.classpath" /> ~Sven signature.asc (911 bytes) Download Attachment |
Thank you Sven
I added the code you mentioned and i get a warning & run-time error on this code: <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask" classpathref="gluegen.classpath" /> warning: reference gluegen classpath not found i found that file - GlueGenTask in some package i downloaded but there are lots of references inside - so i get ~3000 references errors for what GlueGenTask using. :\ |
Free forum by Nabble | Edit this page |