Compiling GUESS

10 views
Skip to first unread message

Borg

unread,
Jun 4, 2009, 2:02:22 PM6/4/09
to guess-discuss
Hello.

I dont have eclipse nor ant but I want to compile Guess 1.0.3b because
I want try to fix that GEM layout bug.

Can someone please provide me Makefile export from Eclipse?
Or anything that can list all *.java sources in properl order and
depends?

I can then post here GNU make Makefile for Guess.

Regards,
Borg

Eytan Adar

unread,
Jun 4, 2009, 2:24:26 PM6/4/09
to guess-...@googlegroups.com
Eclipse isn't used to compile GUESS... I use ant.  There's a build.xml file in the CVS repository.

You'll need Ant (http://ant.apache.org/)
and JavaCC (https://javacc.dev.java.net/)

and will need to modify your path and build.xml to point to where you installed these things

-Eytan

Gera...@aol.com

unread,
Jun 4, 2009, 4:54:00 PM6/4/09
to guess-...@googlegroups.com
Eclipse is a free download as you probably know and it is fairly straightforward to import the source files. I have attached the GEM Layout source that was delivered some time ago. This is not likely the current version since I have not downloaded Guess in a while.  If this is the sort of information you need, I might be able to upgrade my copy of Guess and send it to you.
GemLayout.java

Borg

unread,
Jun 6, 2009, 4:48:42 AM6/6/09
to guess-discuss
Okey. I got the ant.. I got the javacc 2.1.
Still nothing.

I placed javacc2 inside c:\java\javacc and I get this:
BUILD FAILED
U:\DEVEL\JAVA\guess.tmp\build.xml:151: failed to load JavaCC

I wonder whats wrong w/ simple makefiles and JDK..

On Jun 4, 8:24 pm, Eytan Adar <eytana...@gmail.com> wrote:
> Eclipse isn't used to compile GUESS... I use ant. There's a build.xml file
> in the CVS repository.
>
> You'll need Ant (http://ant.apache.org/)
> and JavaCC (https://javacc.dev.java.net/)
>
> and will need to modify your path and build.xml to point to where you
> installed these things
>
> -Eytan
>

Eytan Adar

unread,
Jun 6, 2009, 4:59:11 AM6/6/09
to guess-...@googlegroups.com
so is your structure c:\java\javacc\javacc-something\bin\...
or
c:\java\javacc\bin\...

the buildfile expects the second

-E

Borg

unread,
Jun 6, 2009, 10:11:46 AM6/6/09
to guess-discuss
If I extra JavaCC2_1.zip
I get this error
BUILD FAILED
U:\DEVEL\JAVA\guess.tmp\build.xml:151: Could not find a path to
JavaCC.zip or ja
vacc.jar from 'c:\java\javacc'.
Inside that zip there is JavaCC2_1.class
and dir: examples.

I dont get it..

On Jun 6, 10:59 am, Eytan Adar <eytana...@gmail.com> wrote:
> so is your structure c:\java\javacc\javacc-something\bin\...
> or
> c:\java\javacc\bin\...
>
> the buildfile expects the second
>
> -E
>

Eytan Adar

unread,
Jun 6, 2009, 12:04:54 PM6/6/09
to guess-...@googlegroups.com
You will need to do this regardless of whether you use ant, eclipse, makefiles, or manually compile every file, and I'm really not sure what the hard part is.

step 1) download JavaCC (https://javacc.dev.java.net/files/documents/17/117794/javacc-4.2.zip) or whatever the newest version is on (https://javacc.dev.java.net/)

step 2) extract the stuff from the zip, put it wherever you want

step 3) take note of where the "bin" directory of JavaCC ends up.  Mine is c:\java\javacc\bin  yours might be c:\java\javacc\javacc4.2\bin or c:\java\magical\directory\bin

step 4) modify build.xml, find the _two_ places that set the avacchome variable and set those to the directory that _contains_  the bin directory (just look for c:\\java\\javac), so yours might be:

c:\\java\\javacc or c:\\java\\javacc\\javacc4.2 or c:\\java\\magical\\directory

(note the double slashes)

step 5) enjoy

Borg

unread,
Jun 7, 2009, 6:19:40 AM6/7/09
to guess-discuss
Okey, thx a lot.. this helped
Now I get A LOT of error about unresolved symbols

compile:
[javac] Compiling 436 source files to U:\DEVEL\JAVA\guess.tmp
\build
[javac] U:\DEVEL\JAVA\guess.tmp\src\com\hp\hpl\guess\piccolo
\JpegImagesToMov
ie.java:7: package javax.media does not exist
[javac] import javax.media.*;
[javac] ^
[javac] U:\DEVEL\JAVA\guess.tmp\src\com\hp\hpl\guess\piccolo
\JpegImagesToMov
ie.java:8: package javax.media.control does not exist
[javac] import javax.media.control.*;
[javac] ^
[javac] U:\DEVEL\JAVA\guess.tmp\src\com\hp\hpl\guess\piccolo
\JpegImagesToMov
ie.java:9: package javax.media.protocol does not exist
[javac] import javax.media.protocol.*;
[javac] ^

I have jdk-1.5 at my disposal, also I downloaded
jmf-2_1_1e-alljava.zip and added some of *.jar into lib/

What else I need?


On Jun 6, 6:04 pm, Eytan Adar <eytana...@gmail.com> wrote:
> You will need to do this regardless of whether you use ant, eclipse,
> makefiles, or manually compile every file, and I'm really not sure what the
> hard part is.
>
> step 1) download JavaCC (https://javacc.dev.java.net/files/documents/17/117794/javacc-4.2.zip) or
> whatever the newest version is on (https://javacc.dev.java.net/)
>
> step 2) extract the stuff from the zip, put it wherever you want
>
> step 3) take note of where the "bin" directory of JavaCC ends up. Mine is
> c:\java\javacc\bin yours might be c:\java\javacc\javacc4.2\bin or
> c:\java\magical\directory\bin
>
> step 4) modify build.xml, find the _two_ places that set the avacchome
> variable and set those to the directory that _contains_ the bin directory
> (just look for c:\\java\\javac), so yours might be:
>
> c:\\java\\javacc or c:\\java\\javacc\\javacc4.2 or
> c:\\java\\magical\\directory
>
> (note the double slashes)
>
> step 5) enjoy
>

Borg

unread,
Jun 12, 2009, 10:56:28 AM6/12/09
to guess-discuss
Okey.. I managed to compile guess at least partly...
All I was need was just GEM class anyway.

Luicky I fixed that bug :)
Patch posted on origin post :)
Reply all
Reply to author
Forward
0 new messages