Compiling Applications And Libraries - Korenix JetBox 8100 User Manual

Embedded linux
Hide thumbs Also See for JetBox 8100:
Table of Contents

Advertisement

#mount /dev/cdrom /mnt/cdrom
#tar –jxvf /mnt/cdrom/toolchain/jetbox8100-toolchain.tar.bz2 –C /
Wait for a few minutes while the Tool Chain is extract on your Linux PC.
Once the host environment has been installed, add the directory
/opt/korenix/gcc-4.1.1-glibc-2.3.6/i686-korenix-linux-gnu/bin to your
path and optionally the directory
/opt/korenix/gcc-4.1.1-glibc-2.3.6/i686-korenix-linux-gnu/man/ to your
manual path. You can do this temporarily for the current login session by
issuing the following commands:
#export PATH="/opt/korenix/gcc-4.1.1-glibc-2.3.6/i686-korenix-linux-gnu/bin:$PATH"
#export MANPATH="/opt/korenix/gcc-4.1.1-glibc-2.3.6/i686-korenix-linux-gnu/man/"
Alternatively, you can add the same commands to $HOME/.bash_profile to
cause it to take effect for all login sessions initiated by this user.
To obtain help on Korenix toolchain gcc version, you can use the Linux
man utility to obtain help on many of the utilities provided by the tool chain.
For example to get help on the i686-korenix-linux-gnu-gcc compiler, issue
the command:
#man i686-korenix-linux-gnu-gcc

5.2.1 Compiling Applications and Libraries

To compile a simple C application, just use the compiler instead of the
regular compiler:
#i686-korenix-linux-gnu-gcc –o outfile –g -02 souce_code.c
# i686-korenix-linux-gnu-strip –s outfile
JetBox 8100 User Manaual_Linux_1.1
Figure 5-2 mount "toolchain"
Figure 5-3 add "toolchain" file path
Figure 5-4 korenix toolchain gcc version
Figure 5-5 compiler C application
31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jetbox 8100-lJetbox 8100-lm

Table of Contents