
Arcom Embedded Linux Technical Manual Developing software for AEL
2 Configure the application:
$ ./configure --prefix=/usr --host=arm-linux
$ make
Again, 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 for the target:
$ make install-strip DESTDIR=/tmp/trivial-app
Installing on the target
To install the application on the target, follow these steps:
1 Generate the tarball to be installed based on the installed files:
$ cd /tmp/trivial-app
$ tar czvf ../trivial-app.tar.gz *
$ cd ..
For a real application, you may want to remove files that are not required
on the target (such as documentation) from the temporary folder before
you build the tarball.
2 Transfer the installation tarball to the target board using scp (example assumes
that target board’s IP address is 10.2.55.5):
If DNS is set, you can use the name of the target board in above command
(example assumes that the name of target board is penguin.example.net)
3 Enter the following command on the target board (as root):
# cd /
# tar xzvf /tmp/trivial-app.tar.gz
4 Update the shared library cache:
# ldconfig
5 Run the application:
$ trivial-app
The following message is displayed:
This is a trivial application.
This is a trivial function in a trivial shared library.
© 2006 Arcom Issue G 41
Kommentare zu diesen Handbüchern