Re: gluegen - examples needed
Posted by
peterk on
Jul 20, 2014; 5:46pm
URL: https://forum.jogamp.org/gluegen-examples-needed-tp4031123p4032599.html
Ok - I tried executing the script in jogamp/gluegen/doc/manual/example1
right definitely a documentation bug on top of needing some improvement.
To get it to run on a mingw shell on a windows machine:
#!/bin/ksh doesn't exist in the mingw install so it wont run from mingw
bash shell (I switched it to #!/bin/bash)
- The classpath wasn't in quotes.
- The path to the antlr jar file was wrong.
- The GlueGen package path has changed. (it's now com.jogamp.gluegen
instead of com.sun.gluegen)
I also set it to look at JAVA_HOME to find java as it wasn't in my base
path. *(I need to switch between 32 and 64 bit at times)
Once I fixed the above the gluegen I built ran and output code properly
when running the sample script.
*****
The next step is to have the generated code compile and link into a DLL
that will load and run in the generated class.
If a simple "Hello World" test app/examples and a script for them to
build and run was part of the rather extensive test suite this lack of
documentation sync would be easy to maintain or at least detect as the
build-test would have failed.
I would automate the example script generation with a string
substitutor so the package name and other globals came from a main
build wide setting when the example scripts are output.
I can help if needed to work on it, but at this point I'm likely best
as a first encounter tester ;^>
Peter K.
On 7/20/2014 2:34 AM, gouessej [via jogamp] wrote:
Hi
You should fill a bug report about your request for enhancement even
though it concerns the documentation.