Login  Register

Re: gluegen - examples needed

Posted by peterk on Jul 20, 2014; 1:09am
URL: https://forum.jogamp.org/gluegen-examples-needed-tp4031123p4032591.html

Yee I have a similar newbee situation :) - let me know if this needs to be it's own topic and I'll create one!

I am just getting started with gluegen and basically need to start with a "hello world" type of build.  I have built gluegen and jogl, and it all works properly and the JOGL test suite is successful.

What I woudl love is for a simple gluegen built class a simple complete script or gnu make makefile (not Ant) which isn't factored in a convoluted hard to untangle blob of hard to trace dependencies for a simple complete C+java application.

Basically A "C" file with a simple method or methods in it like void printString(char *string) { printf(string); } and the associated .h .cfg (etc) files required for the build.

So when the simple script is run, gluegen is applied, it generates output (there are samples in the gluegen manual for part of this but only geenrating some of what is needed)

And it's output is then combined with and any ancilary code needed to create a complete loadable DLL  with all the proper export declarations and or export symbol tables, bind it with whatever libraries might be needed, and a simple java main() class that will load the built DLL and classes and properly call the method.

Ideally for both GCC and/or Microsoft (visual C) command line compilers.

An extended "complete" version would have a method for each data type supported by gluegen such as the ones well exemplified in the gluegen manual.  That part seems good, it's putting the whole thing together in a non-ant build to start working on a real C+java app is my issue.

Thanks!