btf: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.parser / README
CommitLineData
47e50160
AM
1Getting compile errors in this plugin? Wondering why? Keep on reading!
2
3This file describes how to build the CTF Java parser files. They are not stored
4in the git repository anymore, and must be generated by the build system.
5
6Unfortunately there is no easy way to setup an Eclipse builder to generate those
7files, since the Antlr plugin in Orbit only provides the runtime, and not the
8tool to generate Java files.
9
10You have two options:
11- On Linux distros:
12 You can install Antlr 3.2, and then run the generate-grammar.sh script in this
13 directory. On Ubuntu 12.04, getting Antlr is a simple
14 $ sudo apt-get install antlr3
15
16 The files were only tested with Antlr 3.2 though, so they might not compile
17 with other versions.
18
19- On all systems:
20 For a more cross-platform solution you can use Maven to generate the parser
21 files. If you have Maven installed on your system, you can cd into this
22 directory and type "mvn install" in a terminal.
23
24 Another option is to install the Maven Eclipse integration plugin "m2e". It
25 can be found in the default Eclipse repository (under "Collaboration"). Once
26 it's installed, you can right-click the pom.xml file in this directory and
27 choose Run As -> Maven install.
28
29Both methods should create the Java files and put them in the correct directory.
30You may need to refresh the project, after which the compilation errors should
31disappear.
This page took 0.039842 seconds and 5 git commands to generate.