Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision |
en:software:tutorial_compiling [2009/05/07 18:06] – angelegt 84.181.67.187 | en:software:tutorial_compiling [2010/02/04 14:58] – stefan |
---|
====== Tutorial - Compiling of an example ====== | ====== Tutorial -- Compilation of an example ====== |
| |
This tutorial explains how the examples from the package can be build. The building rules are described by ''Makefile'''s, i.e. an appropriate GNU environment is required. | This tutorial explains how the examples from the package can be build. The building rules are described by ''Makefile'''s, i.e. an appropriate GNU environment is required. |
- Make sure that the [[en:software:requirements|System requirements]] are satisfied. Make sure the ''javac'' -- the Java compiler can be found, i.e. make sure that the PATH environment variable contains the the location of ''javac'' or ''javac.exe'', respectively | - Make sure that the [[en:software:requirements|System requirements]] are satisfied. Make sure the ''javac'' -- the Java compiler can be found, i.e. make sure that the PATH environment variable contains the the location of ''javac'' or ''javac.exe'', respectively |
- Open a terminal (Linux) or start MSys (Windows). | - Open a terminal (Linux) or start MSys (Windows). |
- Let's assume you have installed the package under $HOME/ztex (Linux) or under c:\ztex (Windows). Go to the example directory, using <code>cd $HOME/ztex/examples/usb-fpga-1.2/ucecho/</code> under Linux, or <code>cd /c/ztex/examples/usb-fpga-1.2/ucecho/ </code> under windows. | - Let's assume you have installed the package under $HOME/ztex (Linux) or under c:\ztex (Windows) and you want to compile the example ''examples/usb-fpga-1.2/ucecho/''. Go to the example directory, e.g. using <code>cd $HOME/ztex/examples/usb-fpga-1.2/ucecho/</code> under Linux, or <code>cd /c/ztex/examples/usb-fpga-1.2/ucecho/ </code> under windows. |
| - The command <code>make</code> builds everything (including the firmware) and packs it into a .jar archive. |
| |
| {{indexmenu_n>6000}} |