Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop:documentation:manual:native_android_export [2016/04/26 00:24]
4ian [Compile the game]
gdevelop:documentation:manual:native_android_export [2020/06/01 13:35] (current)
rapperdinesh [Compile the game]
Line 1: Line 1:
 ====== Export native games to Android ====== ====== Export native games to Android ======
  
-The latest version of GDevelop has an experimental feature allowing to compile a native game for Android. Compared to HTML5 games built with Intel XDK, the games natively built for Android have better performances and can use more extensions.+The latest version of GDevelop has an experimental feature allowing ​us to compile a native game for Android. Compared to HTML5 games built with Intel XDK, the games natively built for Android have better performances and can use more extensions.
  
 <note important>​Currently,​ only the base features (including "​Sprites"​),​ "Text objects",​ "Tiled Sprite objects",​ "Panel Sprites (9-patch) objects",​ "​TileMap object",​ "​Physics behavior",​ "​Top-down movement",​ "​Destroy outside screen behavior",​ "​Platformer behavior"​ and "​Platform behavior"​ are compatible with the android export feature. The other extensions will be available soon!</​note>​ <note important>​Currently,​ only the base features (including "​Sprites"​),​ "Text objects",​ "Tiled Sprite objects",​ "Panel Sprites (9-patch) objects",​ "​TileMap object",​ "​Physics behavior",​ "​Top-down movement",​ "​Destroy outside screen behavior",​ "​Platformer behavior"​ and "​Platform behavior"​ are compatible with the android export feature. The other extensions will be available soon!</​note>​
  
 ===== Tools installation ===== ===== Tools installation =====
-This section explains the installation of all required tools used to compile a game to Android.+This section explains the installation of all the required tools used to compile a game to Android.
  
 ==== CMake ==== ==== CMake ====
Line 23: Line 23:
 For Windows, download it on [[http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​jdk8-downloads-2133151.html|site officiel]] and install it. For Windows, download it on [[http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​jdk8-downloads-2133151.html|site officiel]] and install it.
  
-For Linux, you can install the package called ​openjdk-7-jdk or openjdk-8-jdk (this can varies according to your distribution).+For Linux, you can install the package called ​OpenJDK-7-JDK or OpenJDK-8-JDK (this can varies according to your distribution).
  
 ==== Android SDK ==== ==== Android SDK ====
-The Android SDK contains ​the tools that are specific to Android development.+The Android SDK contains tools that are specific to Android development.
 For Windows and Linux, download it on the website by selecting your operating system in the section called "Get just the command line tools" [[http://​developer.android.com/​sdk/​index.html#​downloads|on this SDK download page]]. For Windows and Linux, download it on the website by selecting your operating system in the section called "Get just the command line tools" [[http://​developer.android.com/​sdk/​index.html#​downloads|on this SDK download page]].
  
 Launch the installer. ​ Launch the installer. ​
  
-At the end, launch "SDK Manager.exe"​ (This file is inside the folder where the SDK was installed) on Windows or the script called "​android"​ inside the "​tools"​ folder on Linux. Wait a bit for this window to appear:+In the end, launch "SDK Manager.exe"​ (This file is inside the folder where the SDK was installed) on Windows or the script called "​android"​ inside the "​tools"​ folder on Linux. Wait a bit for this window to appear:
  
 {{ :​fr:​gdevelop:​documentation:​manual:​androidsdk.png?​nolink |}} {{ :​fr:​gdevelop:​documentation:​manual:​androidsdk.png?​nolink |}}
Line 37: Line 37:
 Uncheck everything, we're going to select only what we need. Uncheck everything, we're going to select only what we need.
  
-Select "SDK Platform",​ "​Source for Android SDK" in the category 4.4.2, API 19. If you want to launch the game in an emulator later, select "​System images"​ in "ARM EABI v7a System ​image" and "Intel x86 Atom System image"​.+Select "SDK Platform",​ "​Source for Android SDK" in the category 4.4.2, API 19. If you want to launch the game in an emulator later, select "​System images"​ in "ARM EABI v7a System ​Image" and "Intel x86 Atom System image"​.
  
 <​note>​The game will works on older/newer versions of Android even if we select a particular version of the "​API"​.</​note>​ <​note>​The game will works on older/newer versions of Android even if we select a particular version of the "​API"​.</​note>​
Line 48: Line 48:
 ==== Android NDK ==== ==== Android NDK ====
 To compile games exported by GDevelop, you also need the ''​Android NDK''​ (a software development kit for native apps). GDevelop currently supports the **r11c** version of the Android NDK. You can download this version by following these links: To compile games exported by GDevelop, you also need the ''​Android NDK''​ (a software development kit for native apps). GDevelop currently supports the **r11c** version of the Android NDK. You can download this version by following these links:
-  * Windows 32 bits : http://​dl.google.com/​android/​repository/​android-ndk-r11c-windows-x86.zip +  * Windows 32 bits: http://​dl.google.com/​android/​repository/​android-ndk-r11c-windows-x86.zip 
-  * Windows 64 bits : http://​dl.google.com/​android/​repository/​android-ndk-r11c-windows-x86_64.zip +  * Windows 64 bits: http://​dl.google.com/​android/​repository/​android-ndk-r11c-windows-x86_64.zip 
-  * Linux 64 bits : http://​dl.google.com/​android/​repository/​android-ndk-r11c-linux-x86_64.zip+  * Linux 64 bits: http://​dl.google.com/​android/​repository/​android-ndk-r11c-linux-x86_64.zip
  
-<note warning>​It seems that the 32 bits NDK causes ​some problems when compiling a game for Android. If you have Windows 32 bits, you may not be able to export your game to Android.</​note>​+<note warning>​It seems that the 32 bits NDK cause some problems when compiling a game for Android. If you have Windows 32 bits, you may not be able to export your game to Android.</​note>​
  
 ==== SFML ==== ==== SFML ====
Line 67: Line 67:
 <WRAP group> <WRAP group>
 <WRAP half column box > <WRAP half column box >
-**Windows :**+**Windows:​**
  
 In the terminal enter ''​%%"​GDEVELOP_FOLDER\CppPlatform\MinGW32\mingwvars.bat"​%%''​ with GDEVELOP_FOLDER being ''​C:​\Program Files (x86)\GDevelop''​ on Windows 64 bits and being ''​C:​\Program Files\GDevelop''​ on Windows 32 bits.  In the terminal enter ''​%%"​GDEVELOP_FOLDER\CppPlatform\MinGW32\mingwvars.bat"​%%''​ with GDEVELOP_FOLDER being ''​C:​\Program Files (x86)\GDevelop''​ on Windows 64 bits and being ''​C:​\Program Files\GDevelop''​ on Windows 32 bits. 
  
 Type in the command line prompt: ''​%%PATH="​PATH_TO_ANT\bin";"​PATH_TO_NDK";"​PATH_TO_SDK\tools"; ​                               "​PATH_TO_SDK\platform-tools";​%PATH%%%''​ Type in the command line prompt: ''​%%PATH="​PATH_TO_ANT\bin";"​PATH_TO_NDK";"​PATH_TO_SDK\tools"; ​                               "​PATH_TO_SDK\platform-tools";​%PATH%%%''​
-with PATH_TO_ANT being the folder where Ant was extracted, PATH_TO_NDK the folder to the Android NDK and PATH_TO_SDK the path to the Android SDK. (Beware, be sure to use ''​\''​ and not ''/'',​ and don't forget the quotes!)+with PATH_TO_ANT being the folder where Ant was extracted, PATH_TO_NDK the folder to the Android NDKand PATH_TO_SDK the path to the Android SDK. (Beware, be sure to use ''​\''​ and not ''/'',​ and don't forget the quotes!)
 </​WRAP>​ </​WRAP>​
  
 <WRAP half column box > <WRAP half column box >
-**Linux :**+**Linux:**
  
 In the terminal: ''​%%export PATH="​PATH_TO_NDK":"​PATH_TO_SDK/​tools":"​PATH_TO_SDK/​platform-tools":​$PATH%%''​ In the terminal: ''​%%export PATH="​PATH_TO_NDK":"​PATH_TO_SDK/​tools":"​PATH_TO_SDK/​platform-tools":​$PATH%%''​