Installing the cross compiler environment, Compiling an application, Installing the cross – ThingMagic Mercury API v1.23.0 User Manual

Page 115: Compiler environment

Advertising
background image

Building On-Reader Applications

On Reader Applications

115

Installing the Cross Compiler Environment

Precompiled Linux binaries for the cross compiler are available on the ThingMagic
website. The easiest way to setup the environment and build applications is to download
the cross-compiler environment (available on rfid.thingmagic.com/devkit) and extract it
into the root directory (/). This installs the necessary files and libraries into /usr/local. Our
Makefiles are coded to expect them there so no Makefile modification will be necessary. If
they are extracted into a different location modifications to the Makefile will be required,
specifically to the referenced ../arch/ARM/ixp42x/module.mk.

Copy the file arm-linux-tools-20030927.tar.gz to your local file system and extract the files
using the following commands:

Your-Linux-PC-Prompt> sudo tar -xvf arm-linux-tools-20030927.tar.gz -C /

usr/local/include/g++-3/floatio.h

usr/local/include/g++-3/sstream

usr/local/include/g++-3/editbuf.h

usr/local/include/g++-3/builtinbuf.h

usr/local/include/g++-3/PlotFile.h

...

Compiling an Application

The MercuryAPI SDK contains several sample C language application in
[SDKInstall]\c\src\samples. The Makefile for building these samples is in
[SDKInstall]\c\src\api. These sample can be compiled for both client usage and as on-
reader applications. To build all the samples as on-reader applications follow these steps:

1. Navigate to the C sample apps makefile directory in the MercuryAPI SDK:

Your-Linux-PC-Prompt>

cd SDK_INSTALL_DIR/c/src/api

2. Clean up from any previous builds

Your-Linux-PC-Prompt>

make clean

3. Build to the M6 target platform:

Your-Linux-PC-Prompt>

make PLATFORM=EMBEDDED

All the sample codelet binaries for use on the M6 are now available in the current

directory.

Advertising