I’ve been getting a dev system ready to start playing with the Legato module (which according to FedEx should be here tomorrow). I’ve found a few things that tripped me up, and (in my opinion) need to be changed in the provided Getting Started PDF.
I’m starting from a fresh download of Ubunto 12.04.3 desktop amd64
[ol][li]The section Prepare development machine needs to be before the section Install Android Tools.[/li]
[li]The android tools need a java runtime installed to run - and no Java VM (JRE) was installed automatically with the Ubuntu install package I used. I had to do the following:sudo apt-get install openjdk-7-jreto install Java. Note that this is the ‘OpenJava’ JRE, not the genuine ‘Oracle’ JRE. More info on Ubuntu and the various JVMs can be found here[/li]
[li]The Android SDK referred to in the documentation no longer includes the ‘platform-tools’ download (which is required for both the adb and fastboot applications (referenced later in the document). To download/install these applications (and a few others), it is required to use the Android SDK update manager. This IS installed as part of the Android SDK (and why we need to install Java). To install the platform tools, do the following:
[list=a][]navigate to the directory where you installed the android SDK[/li]
[li]change to thetools/directory[/li]
[li]execute the followingsudo ./android sdk[/li]
[li]In the GUI application that opens, expand the ‘tools’ option and select Android SDK Platform-tools. Make sure that none of the other Android APIs are selected - we don’t appear to need them.[/li]
[li]Click on Install Packages to install the platform-tools to Ubuntu.[/li][/ol][/:m]
[li]Update the path to include the path to the platform-tools directory. Edit (using your favourite editor - I use nano) the file .bashrc and either update the path or add the following to the bottom:export PATH=${PATH}:/opt/android-sdk-linux:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-toolsRemember to quote the paths if there are any spaces and note that I’ve installed the SDK into/opt/android-sdk-linux[/li]
[li]When testing fastboot, it is required to use sudo to run it. The ‘Flash Images’ section of the documentation needs to be updated to show:sudo fastboot devicesand similar, or you will get the unhelpful messagefastboot: No such file or directorywhich at first look like fastboot had not been installed, or was corrupt in some way[/li][/list:o]
As discussed in this forum post viewtopic.php?f=177&t=7659&p=31335#p31334, it also appears that you need to have the IA32-LIBS package installed to get the Android SDK tools (i.e. fastboot) to run correctly when using a 64bit distribution.
sudo apt-get install ia32-libs
This needs to be added to the list of packages in the doco.
You shouldn’t need to do anything. We’re using a mixture of 12.04 (32 and 64 bit), 13.04 and others to make sure our stuff works across most platforms.
The only real problems I have hit are with 13.10 and gcc 4.8 where the Yocto builds don’t work because of an issue with the EGLIBC version in Yocto 1.4.1. So you’re good.
[quote=“amitchell”]You shouldn’t need to do anything. We’re using a mixture of 12.04 (32 and 64 bit), 13.04 and others to make sure our stuff works across most platforms.
The only real problems I have hit are with 13.10 and gcc 4.8 where the Yocto builds don’t work because of an issue with the EGLIBC version in Yocto 1.4.1. So you’re good.
[quote] To install the platform tools, do the following:
[ol][li]navigate to the directory where you installed the android SDK[/li]
[li]change to thetools/directory[/li][/ol][/quote]
but that then becomes problematic:
As (at least some of) the grief seems to be due to permissions on /opt, I tried installing to /usr/local instead - and that worked OK.
Another difference was that I had previously decompressed the download on Windows, and then copied across on a USB stick - because the Ubuntu GUI Archive Manager gave me grief about permissions for the /opt folder, and I didn’t know the command line way.