USERNAME PASSWORD LOST PASSWORD? REGISTER
"A Complete Mobile Application Development Environment"
Advertisement

Downloads
Documentation
Forums
Blog
Press
Bug Tracking
Creator IDs
Contact Us




Installation and Configuration PDF Print E-mail
Documentation »  ACCESS Linux Platform Native Development »  Getting Started »  Installation and Configuration

This chapter is designed to get you up and running on the ACCESS Linux Platform. These instructions assume that you are installing on a Linux machine running Ubuntu version 6.10 that doesn't already contain a version of the ACCESS Linux Platform. If you install the SDK on Ubuntu version 7.10, the installation procedure might be slightly different.


NOTE: Although Ubuntu 6.10 is not listed on Ubuntu's main download page (http://www.ubuntu.com/getubuntu/download), it can be found at http://releases.ubuntu.com/edgy/ (if you are in the United States) or at http://www.ubuntu.com/getubuntu/downloadmirrors.

This chapter describes how to install and configure Scratchbox and the ACCESS Linux Platform SDK. Scratchbox provides a form of host simulation so that the cross compiler can be called simply as "gcc". This greatly simplifies your environment as your configuration appears to be a native configuration rather than a cross configuration.

This chapter contains the following sections:

Prerequisites ^TOP^

You can install ACCESS Linux Platform on Ubuntu 6.10 or 7.10.


NOTE: See Chapter 3, "Scratchbox Build Environment," for detailed documentation on Scratchbox and the ACCESS Linux Platform build environment. We highly recommend that you review and understand at least the section "About "chrooted" Environments" before continuing with the setup described in this chapter. Further documentation can also be found in the ReadMe files in the SDK.

Make sure that both the main and the universe sections of the repository are enabled:

  1. From the Ubuntu menu, choose System > Administration > Software Sources.

    This opens the Software Sources dialog.

  2. Make sure that both of the following options are enabled on the Ubuntu 6.10 tab:
    • Community maintained Open Source software (universe)
    • Canonical supported Open Source software (main)

Installing the Development Environment ^TOP^

This section describes how to install and configure the SDK and Scratchbox, which is the development environment used for developing ACCESS Linux Platform and ACCESS Linux Platform applications.

How you install depends upon how the packages were delivered to you. If you have a CD that has a directory named binary-i386 at its root, begin with "Installation from CD-ROM", below. If not, you should have a single file named sdk.tgz (whether or not it is delivered on a CD-ROM is not important). In this case you'll need to start with the instructions under "Installation from Files."


NOTE: If you have an existing installation, ACCESS recommends that you first remove that installation before proceeding. Also, if you encounter any problems during or after installation on top of an existing installation, try removing the existing installation and reinstalling. For instructions on backing up your work and removing an existing installation, see "Uninstalling the Development Environment."

Installation from CD-ROM ^TOP^

To install directly from the CD, complete the following steps.

  1. Insert the CD and verify that it contains Packages.gz as well as the following folders:
    • .disk
    • binary-i386
  2. From the Ubuntu menu, choose System > Administration > Synaptic Package Manager and enter your password.
  3. In the Synaptic Package Manager menu, choose Edit > Add CD-ROM.

    This adds the packages that are listed on the CD to the list of packages available for installation.

  4. Verify that the alp-sdk package is available in Synaptic Package Manager, then proceed to Step 7f in the next section, "Installation from Files."

Installation from Files ^TOP^

If the files are supplied as a single tar file (typically named sdk.tgz), you can install from a local directory.

  1. Double-click the sdk.tgz file to uncompress it.

    This produces a folder named SDK.

  2. Click the SDK folder, then click the Extract button.
  3. Navigate to the to /tmp in the Extract in folder field and verify that the All files option is selected.
  4. Click the Extract button.

    This extracts the SDK files to the /tmp directory.

  5. Close the Extract window.
  6. Check the contents of the /tmp directory to verify that it contains the SDK folder:
ls /tmp
  1. Now it is time to install the packages. In general, you should install the alp-sdk package to get all of the needed packages at once. If you prefer, you can install the packages individually.
    1. From the Ubuntu menu, choose System > Administration > Synaptic Package Manager and enter your password.
    2. From the Synaptic Package Manager, choose Settings > Repositories.

      This opens the Software Sources dialog.

    3. Click the Third Party tab, then click the Add button.
    4. Enter the path name to the directory where the SDK directory is located, then click Add Source. Note that you must enter the name exactly as shown below:

      deb file:/tmp/SDK ./

    5. Close the Software Sources dialog, and then click the Synaptic Package Manager Reload button.
    6. Right-click the alp-sdk package and choose Mark for Installation from the menu.

      This marks multiple packages for installation in addition to the alp-sdk package. You might see a warning that the software cannot be authenticated. You can ignore the warning and click the Mark button.

    7. Click the Apply button.

      This displays a dialog that summarizes the list of packages to be installed.

    8. Review the list of packages, then click the Apply button at the bottom of the dialog.
    9. Close the Changes Applied dialog and then close Synaptic Package Manager.

      All of the required SDK packages are installed.

  2. If you want to be able to access the network from within the ACCESS Linux Platform Simulator, choose the bridge-utils package in Synaptic Package Manager and install it the same way you installed the alp-sdk package.

    Alternatively, you can install it with the following line command:

sudo apt-get install bridge-utils

Note that if you do not install it at this time and try to start the Simulator with the Create host network bridge option enabled (or using the --net option), an error message displays, telling you to install this package. You can wait to install it until you need it, if you prefer; it is not needed for Simulator operations that do not involve the network.


NOTE: You can also install the ACCESS Linux Platform package from the command line. Verify that your sources.list file contains the location of the packages you downloaded, then enter the following command:
sudo apt-get install alp-sdk
If apt-get asks to "Install these packages without verification [y/N]?", enter y.

Configuring Scratchbox ^TOP^


NOTE: The following procedure assumes that Scratchbox is installed at /scratchbox (or that a symbolic link exists so that it appears that Scratchbox is installed there).
  1. Add yourself as a Scratchbox user with this command (note that you must use back-quotes, these are not single quotes):
sudo /scratchbox/sbin/sbox_adduser `whoami` yes

If prompted, press Enter at each prompt to accept the default answer.

  1. Either log out and then log back in, or use the su command as follows. This allows the group changes (made by sbox_adduser) to take effect:
su `whoami`
  1. Run the groups command to confirm that you are now in the "sbox" group.
  2. Test your install by logging in to Scratchbox by simply typing scratchbox (which links to /scratchbox/login):
scratchbox

NOTE: Scratchbox will tell you that you have no targets defined. This is not an error; you'll define them in the next step.
  1. If you see the Scratchbox login prompt (the prompt looks something like: [sbox-alp-simulator: ~] >), proceed to "Configuring Your Scratchbox Target".

    If Scratchbox throws an error when you log in, such as:

    ERROR: Scratchbox is not properly set up!

    Check to see if the Scratchbox process is running. Do this by issuing the following commands to stop and re-start Scratchbox:

sudo /scratchbox/sbin/sbox_ctl stop
sudo /scratchbox/sbin/sbox_ctl start

If all is working correctly, the following should be displayed:

Starting Scratchbox: binfmt_misc, mount.

Now you should be able to log in by simply typing:

scratchbox

Configuring Your Scratchbox Target ^TOP^

Once Scratchbox has been configured, you need to set up one or more Scratchbox targets.

Configuring a Simulator Target

  1. All of the commands used to configure a target need to be run from within Scratchbox. If you aren't already logged in to Scratchbox, do so with:

    scratchbox

  2. Set up the target by running the following command:
sb-conf setup alp-simulator -c i686-linux-gnu

If the command produces the message "sb-conf: No current target", ignore it; the next command selects the simulator target.

  1. Select the simulator target with:
sb-conf select alp-simulator

At this point, the screen clears as the shell restarts.

  1. Verify the target with the following command:
sb-conf show

It should produce the following:

Compiler: i686-linux-gnu
Devkits: none
CPU-transparency: none
  1. Determine the name of the Simulator rootstrap.
ls /scratchbox/ALP/rootstrap/alp-x86-dbg-*

This rootstrap file is used to load the target with prebuilt binaries. Note that because each release of the SDK contains new binaries, the rootstrap name is not static. You need the exact name of this rootstrap file for the next step.

  1. Enter the following command to "rootstrap" the target, substituting the actual name of the rootstrap file for the filename (here, alp-x86-dbg-GCC4-main-123456.tar.gz):
sb-conf rootstrap /scratchbox/ALP/rootstrap/\
alp-x86-dbg-GCC4-main-123456.tar.gz

You should see the following message:

Unpacking rootstrap...

The scratchbox environment is now configured, and you can proceed to "Testing the Installation".

If you encountered problems during the installation process, you can find additional information in Chapter 4, "Troubleshooting."

Uninstalling the Development Environment ^TOP^

In the event you need to uninstall the ACCESS Linux Platform Development Suite, these instructions take you through the procedure.

Back Up Your Work ^TOP^

Uninstallation requires you to remove the entire /scratchbox directory. Before performing the appropriate uninstallation procedure, back up any work inside Scratchbox that you want to save. If you are using a source control system such as Perforce, be sure to confirm that you do not have any open (that is, pending or unsubmitted) edits.

Copy or move /scratchbox/users/$USER to some place outside of the /scratchbox directory to keep it safe.

Uninstall ^TOP^

  1. Exit all of your Scratchbox sessions. (Type exit to exit a Scratchbox session.)
  2. Stop the Scratchbox process with:

    sudo /scratchbox/sbin/sbox_ctl stop

  3. You can either remove the packages using the GUI or from the command line:

    To use the GUI:

    1. Start the Synaptic Package Manager with:

      sudo synaptic

    2. Select all of the packages whose names begin with alp-. Note that you can quickly isolate the relevant packages by performing a search from within the Synaptic Package Manager. Then you can select all of the ones whose names begin with alp-.
    3. From the Package menu, select Mark for Complete Removal.
    4. Select all of the packages whose names begin with scratchbox-.
    5. From the Package menu, select Mark for Complete Removal.
    6. From the Edit menu, select Apply Marked Changes. In the dialog that is displayed confirming the operation, click Apply.
    7. Quit the Synaptic Package Manager.

      If you prefer to use the command line, remove the packages with the following commands:

sudo dpkg --get-selections | grep 'alp-'  \
# just to see what will be removed
sudo dpkg --purge `dpkg --get-selections | \
grep 'alp-' | cut -f1`
sudo dpkg --get-selections | \
grep 'scratchbox-'   \
# just to see what will be removed
sudo dpkg --purge `dpkg --get-selections | \
grep 'scratchbox-' | cut -f1`
  1. If the /tmp/SDK directory has not been removed by the uninstall procedure, remove it by entering the following command in a shell window:
sudo rm -fr /tmp/SDK
  1. In a shell, remove any remaining files with the following command:
sudo rm -fr /scratchbox/*
  1. Navigate to your home directory and remove the hidden .alp-dev directory with the following command:
rm -rf .alp-dev

The SDK is completely uninstalled and the system is ready for reinstallation.

 

Add as favourites (57) | Quote this article on your site | Views: 3004

Comments (5)
RSS comments
1. Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it on 15-02-2008 00:47 - Guest
 
 
ubuntu 6.10
"Later versions of Ubuntu are not officially supported" 
I have never seen such a thing ! 
To develop on ALP we shan't use an OS up tp date ? 
Firstly we can't choose the OS and secondly we can't use an OS up to date.
 
2. Written by myokoyama1 on 18-04-2008 02:41 - Registered
 
 
Gishi
If I follow the instructions to execute 'sudo /scratchbox/sbin/sbox_adduser `whoami` yes' in this page, I get later an error from the find command. 
 
find: Filesystem loop detected; `./scratchbox/users/michael/scratchbox' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy. 
 
Is the command safe?
 
3. Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it on 21-04-2008 08:15 - Guest
 
 
researcher
Hello, 
I am doing a research on the available mobile linux platforms. I have a confusion here. If one developer needs to develop some applications, should he download Hiker application framework or Access linux platform. I like to make small application and test it . Does the SDK provide any emulators.  
What is the procedure for creating 3rd party application with ALP 
Br 
Jipson
 
4. Written by hhh333 on 05-05-2008 09:24 - Registered
 
 
Poor user experience
1. The installation and configuration process is horrible. Obviously someone missed the whole point of the Debian packaging and its dependency system. 
 
2. I understand that putting an online package repository would render useless your infamous download process which requires a user account, but .. is the account *really* required ? I mean, I don\'t want your spam, I just want to try the software. Is it really necessary to cripple the easiness of APT for the sole purpose of forcing your users to go through a registration process so you can have some random data ? Because, really.. what is the ratio of people writing their real infos vs those who don\'t ? 
 
3. Where is support for Hardy Heron ? :( Nowhere in the painful download process I was warned that this software was working only in Ubuntu Edgy. It\'s only after going through the registration process and downloading/extracted 500+mb that I saw \"edgy\" in the package name, this *really* sucks. 
 
- A pissed off user whot registered for nothing and never got to try the damn software.
 
5. Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it on 05-05-2008 18:01 - Guest
 
 
Poor user experience
As far as I know, neither PalmSource nor ACCESS 
has used my email address that I left here for Spam 
:grin  
 
Yes I would like to see support for Hardy Heron 
myself, and I imagine that ACCESS must be so 
understaffed at this point.
 

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Personal verbal attacks will be deleted.
  • Please don't use comments to plug your web site. Such material will be removed.
  • Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
  • Keep in mind that the above process only applies if you simply entered the wrong security code.
Name:
E-mail
Homepage
Title:
BBCode:Web AddressEmail AddressBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



Code:* Code
I wish to be contacted by email regarding additional comments

Powered by AkoComment Tweaked Special Edition v.1.4.6
AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com
All right reserved

 


© 2008 ACCESS Developer Network    |    Joomla! is Free Software released under the GNU/GPL License.    |    ACCESS Global Website
Events Support Community Platforms Home