Eurotech ZEUS Manual de usuario Pagina 40

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 72
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 39
Arcom Embedded Linux Technical Manual Developing software for AEL
Cross compilation example
A trivial example application that utilizes a shared library is included on the
Development Kit CD. The two source tarballs are in /examples/c/trivial/trivial-app-
1.0.tar.gz and /examples/c/trivial/libtrivial-1.0.tar.gz. This example uses a standard build
system based on the autoconf, automake and libtool utilities. The procedure is
therefore most relevant to real applications using the same build system.
The autoconf, automake and libtool utilities are commonly used by Open
Source projects. They can be found at www.gnu.org/software/autoconf/
,
www.gnu.org/software/automake/
, and www.gnu.org/software/libtool/,
respectively.
Building the shared library
To build the shared library, follow these steps:
1 Unpack the library distribution using the following commands:
$ tar xzf libtrivial-1.0.tar.gz
$ cd libtrivial-1.0
2 Configure the library as follows:
$ ./configure --prefix=/usr --host=arm-linux
$ make
Note the use of the --host option. For more information about this option,
see Common open source build systems and cross compilation
, page 38.
3 Install the library on the host (build) system by entering the following command:
# make install prefix=/opt/arcom/arm-linux
4 Install for the target (this is transferred to the target later), as follows:
$ make install-strip DESTDIR=/tmp/trivial-app
Building the application
To build the application, follow these steps:
1 Unpack the application distribution:
$ tar xzf trivial-app-1.0.tar.gz
$ cd trivial-app-1.0
© 2006 Arcom Issue G 40
Vista de pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 71 72

Comentarios a estos manuales

Sin comentarios