Login  Register

Re: Building JOGAMP with pre-built GlueGen

Posted by Michael Bien on Sep 21, 2010; 12:22pm
URL: https://forum.jogamp.org/What-about-Maven-tp844816p1535025.html

On 09/19/2010 07:08 PM, utgarda [via jogamp] wrote:
To check if putting GlueGen to maven repo can be of any use to anyone, trying to build JOGL only with pre-built artifacts from repo, having troubles:

1) JOGL buildfiles refer to gluegen-cpptasks.xml and otherwise relies rather heavily on ../../gluegen/ , which is not-so-cool, so I'm trying to add an option to rely only on artifacts fetched by maven, for this I pack gluegen-cpptasks*.xml into another jar. The problem is those files refer to ${gluegen.root}/make/ , which makes it difficult to import them though <import> <javaresource>, so I have to unpack them to ../../gluegen/make and ../../gluegen/build after fetching with maven, which is totally not cool. Yep, maybe I can fix that myself, but maybe you guys can do that faster.

all projects depend on gluegen (_the_project) at buildtime. The inter-project dependencies are ugly but the only way to share build scripts.

gluegen.jar contains the code generator (Ant tasks). Ant however doesn't support loading of ant scripts directly from jar files (include statement).. so we can't just put it into it.

So I don't see how this could work via maven. :/

I would recommend to concentrate at the actual artefacts (gluegen-rt.jar). Thats what most people want... just be able to add the dependency and start coding.



2) cpptasks.jar is present in repos, so copying it to some lib directory should work fine. The problem is that gluegen-cpptasks.xml gets it though ${gluegen.root}/make/lib/ , not some variable that means library folder.
i believe the cpptasks.jar we use is patched.. so not the original file



Please review the changes to buildfiles: GlueGen, JOGL

3) Seems like gluegen-rt.jar still doesn't contain everything required to run those cpp tasks, here's an attempt to build JOGL with only gluegen-rt:
rt == runtime. Its not for build. Its just a common set of classes and native libs.
gluegen.jar != gluegen-rt.jar

regards,
michael


-- 
- - - -
http://michael-bien.com