How to compile the nurbs demos developed by Tomáš Hráský?

Hello,

I have been trying to compile the NURBS demos developed by Tomáš Hráský without success.

I have downloaded the the demo’s source code and I have followed the instructions given in file \jogl-demos\doc\readme.html.

The only thing I am doing in a different way is that I am NOT building the jogl sources from scratch. Instead I am using the jar files in my
ant command:

ant nurbs -lib <path to jogl.jar & gluegen-rt.jar>

The command runs successfully but the classes are not generated.

Here’s the output:

C:\jogl\r111rc6\jogl-demos-src\jogl-demos\make>ant nurbs -lib C:\jogl\r111rc6\jogl-1.1.1-rc6-windows-i586\lib
Buildfile: build.xml

nurbs:

BUILD SUCCESSFUL
Total time: 0 seconds

Could anyone help me out?

Thanks in advance
dizizmi

I don’t know whether the -lib argument will work. If you set up a parallel jogl/build/jogl.jar directory structure alongside the jogl-demos directory then the build should work.

Hi,

Thank you very much for your reply.

Yes, it works the way you said and it also works the way I said before with the -lib argument. It compiles lots of demos but NOT the nurbs demos!?

I do not understand what am I doing wrong.

I have already looked at the build.xml file but as to my understanding it seems to have no mistakes.

It builds the following (but no NURBS):

demos.applets
demos.common
demos.context
demos.fullscreen
demos.gamma
demos.gears
demos.hdr
demos.hwShadowmapsSimple
demos.infiniteShadowVolumes
demos.j2d
demos.jgears
demos.jrefract
demos.misc
demos.multisample
demos.particles
demos.printext
demos.proceduralTexturePhysics
demos.tess
demos.testContextDestruction
demos.testContextSharing
demos.texture
demos.util
demos.vertexArrayRange
demos.vertexBufferObject
demos.vertexProgRefract
demos.vertexProgWarp
demos.xtrans
gleem.linalg

It also builds jar files:
jogl-demos.jar
jogl-demos-data.jar
jogl-demos-util.jar

Thanks,
Dizizmi

Ah, sorry. You need to do “ant -Djogl.nurbs=1”.

Hello,

Thanks. I should go and read the instructions manual for ant. :-[

Before I have seen your reply what I did was substitute the line

<target name="nurbs" if="jogl.nurbs">

with

<target name="nurbs">

and it worked.

I didn’t knew that making the -Djogl.nurbs=1 would set the property to true.

So again I should go and read the ant’s manual.

Thanks a lot
Kind regards
Dizizmi