Difference between revisions of "Compiling ScummVM/Android-SDL"

Jump to navigation Jump to search
Line 16: Line 16:


This guide assumes that you create an "''~/Android''" folder inside your home directory to put the ''Android SDK'' and ''NDK''.
This guide assumes that you create an "''~/Android''" folder inside your home directory to put the ''Android SDK'' and ''NDK''.
== Install the Android SDK ==
=== Install Android SDK command line tools only ===
Navigate to url: https://developer.android.com/studio/index.html
Navigate to url: https://developer.android.com/studio/index.html<br />
* Download the "''Command line tools only''" packet for Linux ("''sdk-tools-linux-4333796.zip''" at the time of this writing).
Download the "''Command line tools only''" packet for Linux ("''sdk-tools-linux-4333796.zip''" at the time of this writing).
*# Create an "''~/.android''" and an "''~/Android''" folder in your home directory. Then, create a "''~/Android/android-sdk''" subfolder.<br />To do this from a shell terminal, issue:<br /><syntaxhighlight lang="console">mkdir ~/.android
# Create an "''~/.android''" and an "''~/Android''" folder in your home directory. Then, create a "''~/Android/android-sdk''" subfolder.<br />To do this from a shell terminal, issue:<br /><syntaxhighlight lang="console">mkdir ~/.android
mkdir ~/Android
mkdir ~/Android
mkdir ~/Android/android-sdk</syntaxhighlight>Unpack the ''command line tools'' zip file inside the "''~/Android/android-sdk''" folder. This should create a "''tools''" subfolder.<br />
mkdir ~/Android/android-sdk</syntaxhighlight>
*# Install the required Android SDK tools.<br />Using a shell terminal issue:<br /><syntaxhighlight lang="console">touch ~/.android/repositories.cfg
# Unpack the ''command line tools'' zip file inside the "''~/Android/android-sdk''" folder. This should create a "''tools''" subfolder.<br />
# Install the required Android SDK tools.<br />Using a shell terminal issue:<br /><syntaxhighlight lang="console">touch ~/.android/repositories.cfg
cd ~/Android/android-sdk/tools/bin
cd ~/Android/android-sdk/tools/bin
./sdkmanager --install "platforms;android-26"
./sdkmanager --install "platforms;android-26"
./sdkmanager --install "build-tools;26.0.0"
./sdkmanager --install "build-tools;26.0.0"
./sdkmanager --install "extras;android;m2repository"</syntaxhighlight>Accept any license agreement you are prompted with during the above installation process. Also, for good measure, issue the following command, then review and accept any pending license agreements:<br /><syntaxhighlight lang="console">./sdkmanager --licenses</syntaxhighlight>Then, using the following command verify that you've installed the correct tools:<br /><syntaxhighlight lang="console">./sdkmanager --list</syntaxhighlight>You should see a printout that begins like the following:<syntaxhighlight lang="console">
./sdkmanager --install "extras;android;m2repository"</syntaxhighlight>Accept any license agreement you are prompted with during the above installation process. Also, for good measure, issue the following command, then review and accept any pending license agreements:<br /><syntaxhighlight lang="console">./sdkmanager --licenses</syntaxhighlight>Then, using the following command verify that you've installed the correct tools:<br /><syntaxhighlight lang="console">./sdkmanager --list</syntaxhighlight>You should see a printout that begins like the following:<syntaxhighlight lang="console">
Path                         | Version   | Description                     | Location
Path                       | Version | Description                   | Location
-------                       | -------   | -------                         | -------
-------                     | ------- | -------                       | -------
build-tools;26.0.0           | 26.0.0   | Android SDK Build-Tools 26.0.0 | build-tools/26.0.0/
build-tools;26.0.0         | 26.0.0 | Android SDK Build-Tools 26.0.0 | build-tools/26.0.0/
extras;android;m2repository   | 47.0.0   | Android Support Repository     | extras/android/m2repository/
extras;android;m2repository | 47.0.0 | Android Support Repository     | extras/android/m2repository/
platforms;android-26         | 2         | Android SDK Platform 26         | platforms/android-26/
platforms;android-26       | 2       | Android SDK Platform 26       | platforms/android-26/
tools                         | 26.1.1   | Android SDK Tools 26.1.1       | tools/
tools                       | 26.1.1 | Android SDK Tools 26.1.1       | tools/
</syntaxhighlight>
</syntaxhighlight>
* '''Alternatively''', you could download and install the Android Studio for Linux 64-bit. You can then use the ''sdk-manager GUI tool'' to install the required additional tools and SDK resources. Use the above list as a guide to what packages you should download and install.
 
=== Install Android SDK with Android Studio ===
'''Alternatively''', you could download and install the Android Studio for Linux 64-bit. You can then use the ''sdk-manager GUI tool'' to install the required additional tools and SDK resources. Use the above list as a guide to what packages you should download and install.


== Install the Android NDK ==
== Install the Android NDK ==
792

edits

Navigation menu