Menu

LazSDL2Design configuration

Imants

1. Introduction

After LazSDL2Design package installation - Lazarus menu will have some new options:
Tools->Options...->SDL - this will contain options which will be used for all Lazarus projects.
Tools->Options...->SDL (Project) - will contain project-specific options.

P. S.
Tools->Options...->SDL (Project) is the wrong place for these options, but because of Lazarus bug it cannot be placed elsewhere.

2. Configuration

2.1 IDE options

2.1.1 General

General Lazarus options mostly contain all that is necessary for Android compilation.

Fields:
Android-SDK - path to Android SDK folder (can be downloaded here;
Android-NDK - path to Android NDK folder (can be downloaded here;
Target min SDK - Minimal supported Android version. You can find the correlation between the SDK and the Android versions here;
Target SDK - version for which you actually have built and tested this application for;
* Ant - Ant executable location. Ant is used to build Android applications.
General

For Android compiler to work properly you need to create symlinks in /usr/bin or $HOME/bin directory for these files in Linux:
arm-linux-androideabi-as -> /path/to/android-ndk-linux/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as
arm-linux-androideabi-ld -> /path/to/android-ndk-linux/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld
arm-linux-androideabi-ld.bfd -> /path/to/android-ndk-linux/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld.bfd
arm-linux-androideabi-ld.gold -> /path/to/android-ndk-linux/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld.gold

P.S. If you do not have bin directory and you created it in your home folder it is good to log of for changes to take effect.

In windows you can just add path ro Android NDK folder to PATH environment variable.

2.2 Project options

2.2.1 General.

It contains project-specific settings for SDL (mostly for Android compilations).

Fields:
Package name - Java package name used in an Android project must be identical with the package name for the main Java class;
Main - main Java class name used in an Android from package pointed out in "Package name";
Project name - Android project name (if not filled in - "Project -> Options... -> Compiler options -> Target file name" is used instead);
Target min SDK - can change minimal Android version specifically for the project. If not filled then value from Lazarus options is used instead;
Target SDK - can change target SDK specifically for the project. If not filled then value from Lazarus options is used instead;
OpenGL ES - which OpenGL ES version to use while constructing OpenGL context in Android applications;
* Screens - shows what kinds of screens your Android application is supporting.
Project General

2.2.2 Libraries

Specify all libraries which must be copied to the lib directory after a successful build. Works on all platforms. In case of Android all libraries are built-in into ".apk" file.
Libraries

2.2.3 Rights

Specify all rights which are needed for Android applications.

Rights


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.