build nightmares

ok i have been trying to build this thing for days now - for windows. i have install all sorts of stuff all over the shop on my winxp box now. i have installed and setup (and it works cool) antlr.jar. i have also got VS.net installed on my computer, along with all this cygwin stuff (all the dev tools from that just in case).

so off i go and try and build once again. all i get now is:

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\aNt.PUNKARSE>cd C:\Documents and Settings\aNt.PUNKARSE
\My Documents\Java SDK’s\CVS_Files\jogl\make

C:\Documents and Settings\aNt.PUNKARSE\My Documents\Java SDK’s\CVS_Files\jogl\ma
ke>ls
CVS gl-x11.cfg
Makefile glu-common.cfg
Makefile2 glu-impl-common-CustomCCode.c
cg-common.cfg glu-impl-common-CustomJavaCode.java
cgl-macosx.cfg glu-impl-common.cfg
gl-cgl-macosx.cfg glu-impl-macosx.cfg
gl-common-macosx.cfg glu-impl-win32-GLU13Hacks.cfg
gl-common-win32.cfg glu-impl-win32.cfg
gl-common-x11.cfg glu-impl-x11.cfg
gl-common.cfg glu-interface-common-CustomJavaCode.java
gl-glx-macosx.cfg glu.cfg
gl-glx-x11.cfg glx-macosx.cfg
gl-impl-macosx.cfg glx-x11.cfg
gl-impl-win32.cfg jawt-macosx.cfg
gl-impl-x11.cfg jawt-win32.cfg
gl-macosx.cfg jawt-x11.cfg
gl-wgl-win32.cfg stub_includes
gl-win32.cfg wingdi-win32.cfg

C:\Documents and Settings\aNt.PUNKARSE\My Documents\Java SDK’s\CVS_Files\jogl\ma
ke>make win32 VC7=true
mkdir -p …/build/obj …/build/obj/jogl …/build/obj/jogl_cg …/build/gensrc/cla
sses/net/java/games/jogl/impl …/build/gensrc/classes/net/java/games/cg …/build
/gensrc/native/jogl …/build/gensrc/native/jogl_cg …/build/classes …/build/gen
src/classes/net/java/games/gluegen/cgram
make: [win32] Error 255 (ignored)
make -f Makefile2 win32 --unix – VC7=true
make: [win32] Error 255 (ignored)

i want to start to port some of my GL4Java stuff over, and messing around with shaders. i cant at the moment. anyone no where i can get a working up to date version of all the jogl and joal files? plus all the demos and stuff as jar’s?

would be cool. splash me an email if u can help me out dudes- i want to play: ant@tomato.co.uk

cheers!

HELP!!! :frowning:

http://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=102

but thats old innit? missing the .cg folder? me down again

Sorry about the Win32 build problems. I think it could be one of two things: (1) the path to your Jogl tree has spaces in it (though I thought we fixed all of these related issues in the Makefile already), and (2) something about your cygwin installation is causing a --unix parameter to be passed to Makefile2. Try invoking Makefile2 directly with make -f Makefile2 win32 VC7=1 (after getting Makefile run once to create all of the necessary directories so the vpath prerequisites are understood by make).

I plan to cut over the build process to use the Ant build.xml people have posted. This should hopefully get rid of the make-related weirdness.

I’ve posted new binaries in the file sharing section and will put up a new post shortly describing the changes.

Wild guess:

I suspect that the apostrophe in SDK’s in

C:\Documents and Settings\aNt.PUNKARSE\My Documents\Java SDK’s\CVS_Files\jogl\ma …

might not be helping things any.

Rob

nice one Ken :slight_smile:

yer i tryed it off the top level of C:\ and still no joy. Just going to try Ken’s idea…

Didnt seem to build that way Ken. must be somthing i have installed on box. sort of start to build- even complies the Java but no Lib’s for me.

i get to error2. heres the dump if it helps?

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\aNt.PUNKARSE>cd c:\

C:>cd jogl\make

C:\jogl\make>make -f Makefile2 win32 VC7=1
Makefile2:930: target `…/build/obj’ given more than once in the same rule.
VC7 is defined, using Microsoft Visual C++ 7 compiler for native code.
mkdir -p …/build/obj …/build/obj/jogl …/build/obj …/build/gensrc/classes/ne
t/java/games/jogl/impl …/build/gensrc/native/jogl …/build/classes …/build/gen
src/classes/net/java/games/gluegen/cgram
make: *** […/build/obj] Error 255

C:\jogl\make>

if i use Cygwin (bash shell). ‘make’ gets alot more done but it still ends in two errors and no Libs are built.

the joal builds just cool under ‘ant’ :slight_smile: - it must be all in the name… and ‘ant’ build.xml in the cvs would rock.

tops

aNt

A little off-topic perhaps, but was there any reason that autoconf and automake weren’t used? It would sure make a cygwin compile much easier.