As with the installation process itself, the steps required to set up your environment depend on your host operating system. The name of the Sourcery G++ commands all begin with arm-none-symbianelf so that you can install Sourcery G++ for multiple target systems in the same directory.
The installer automatically adds Sourcery G++ to your PATH
.
You can test that your PATH
is set up correctly by
using the following command:
> arm-none-symbianelf-g++
and verifying that you receive the message:
arm-none-symbianelf-g++.exe: no input files
Sourcery G++ does not require Cygwin or any other UNIX emulation environment. You can use Sourcery G++ directly from the Eclipse IDE or from the Windows command shell. You can also use Sourcery G++ from within the Cygwin environment, if you prefer.
The Cygwin emulation environment translates Windows path names
into UNIX path names. For example, the Cygwin path
/home/user/hello.c
corresponds to the
Windows path c:\cygwin\home\user\hello.c
.
Because Sourcery G++ is not a Cygwin application, it does not, by
default, recognize Cygwin paths.
If you are using Sourcery G++ from Cygwin, you should set the
CYGPATH
environment variable. If this environment
variable is set, Sourcery G++ will automatically translate Cygwin path
names into Windows path names. To set this environment
variable, type the following command in a Cygwin shell:
> export CYGPATH=
To resolve Cygwin path names, Sourcery G++ relies on the
cygpath utility provided with Cygwin. You
must provide Sourcery G++ with the full path to
cygpath
if cygpath is not
in your PATH
. For example:
> export CYGPATH=/path/to/cygpath
will direct Sourcery G++ to use /path/to/cygpath
as the path conversion utility.
Before using Sourcery G++ you should add Sourcery G++ to your
PATH
. The command you must use varies with the
particular command shell that you are using. If you are using the
C Shell (csh or tcsh), use
the command:
> setenv PATH $HOME/codesourcery/bin:$PATH
If you are using Bourne Shell (sh), the Korn Shell (ksh), or another shell, use:
> export PATH=$HOME/codesourcery/bin:$PATH
If you are not sure which shell you are using, try both commands.
In both cases, if you have installed Sourcery G++ in an alternate
location, you must replace the directory above with
bin
subdirectory of the directory in which
you installed Sourcery G++.
You may also wish to set the MANPATH
environment
variable so that you can access the Sourcery G++ manual pages, which
provide additional information about using Sourcery G++. To set the
MANPATH
environment variable, follow the same steps
shown above, replacing PATH
with
MANPATH
, and bin
with
man
.
You can test that your PATH
is set up correctly by
using the following command:
> arm-none-symbianelf-g++
and verifying that you receive the message:
arm-none-symbianelf-g++: no input files