That's because it builds with Maven and not Ant. Read the build instructions in 
the top level directory if you feel the need to build it yourself, but you 
don't need to do that, just download the jar on the download page and run it.

 

Jim

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Mukkaysh Srivastav
Sent: Monday, December 07, 2009 8:51 PM
To: [email protected]
Subject: [antlr-interest] Antlr-v3.2 Installation - Linux x86_64

 

Hello All,

I am newbie for using antlr-v3.2 on Linux x86_64 system with both GCC (-v4.1 
onwards) and ICC (v-11.0.074) compilers. But currently I am using GCC as below 
configuration -

---------
gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla 
--enable-bootstrap --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i586 
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
-------

I did download and untar following packages as demonstrated in 
http://www.antlr.org/wiki/display/ANTLR3/FAQ+-+Getting+Started - 
-----
antlr-3.2.jar  
antlr-3.2.tar.gz  
examples-v3.tar.gz  
stringtemplate-3.2.1.tar.gz
-----

Following things have been done -

1. I have made antlr folder as follows "/home/user/antlr" which has two 
directories as -
(a) untar of antlr-3.2.tar.gz 
(b) unjar of antlr-3.2.jar

2. Java version on x86_64 is -

$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-29.b16.fc11-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

3. CLASSPATH
I did set the classpath as "export 
CLASSPATH=/home/mukkaysh/antlr/antlr-toolchain" where antlr-3.2.jar  & 
stringtemplate-3.2.1.tar.gz contents are available.

4. build.xml contents in incorporated in path "/home/user/antlr" as -
----
<?xml version="1.0"?>
<!-- Build file for ANTLR-v3 application -->
<project name="antlr" default="/home/user/antlr/antlr-3.2" basedir=".">
<target name="antlr-3.2" >
<javac 
srcdir="/home/user/antlr/antlr-3.2/runtime/Java/src/main/java/org/antlr/runtime"
 destdir="/home/user/antlr/antlr-output" debug="true"
includes="**/*.java"
/>
</target>
</project>
----

On doing ant on the top "/home/user/antlr", I get below message -
---
$ ant
Buildfile: build.xml

BUILD FAILED
Target "/home/mukkaysh/antlr/antlr-3.2" does not exist in the project "antlr". 

Total time: 0 seconds
----

I know some thing I am missing, could I have a clue.

Also, is there any reference manual for antlr-v3.2 available freely.

~BR



--

You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to