Recent

Author Topic: Installing Lazarus, LAMW and all other addons for Android from scratch.  (Read 3083 times)

loaded

  • Hero Member
  • *****
  • Posts: 825
Hi All,
First of all, I made a video work on the installation of the Android working environment from scratch in the Window Operating system in order to guide myself a little more on the subject and then guide the new friends.
I hope it will be useful to someone.  Youtube Video

I am including the summary of the video content below;

Let's download the necessary files for the working environment.
These are build packages and plugins for IDE, Android and Other Platforms.

https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%202.0.12/
https://sourceforge.net/projects/freepascal/files/Win32/3.2.0/                              
https://github.com/jmpessoa/lazandroidmodulewizard

https://gradle.org/install/
https://developer.android.com/studio
https://github.com/android/ndk/wiki/Unsupported-Downloads
https://www.azul.com/downloads/?package=jdk#download-openjdk


If we are ready, we can start installations !!!

For convenience in our work after Lazarus Installation;
Let's create a folder where we will store the third-party plugins we have downloaded.
In this work, I used a folder name called "Lazarus_ADFOL" to evoke Android plugins for Lazarus, to be catchy and not accidentally delete :)

Let's pay attention to the order in the statement, this is important !!!

1- We are installing Lazarus and Cross Compiling Plugins.

2- Extract the Google NDK archive file to the relevant folder. *** NDK folder path is important ! We will use this folder path in the following FPC setup.

3- We install the FPC Android Build Plugin.

4- Extract the Java SDK to the relevant folder. *** Java SDK folder path is important ! We set this folder path as a value to the JAVA_HOME Environment variable (if there is no variable we must create it).
Because Android SDK needs this folder path during installation.

5- Extract the Google SDK package to the relevant folder.
Next ;
- Let's create a new text file and paste the following codes into it.
- Let's name the extension of the text file to be .BAT, then run the BAT file.
-Or;
-When in the folder view, we open the command line with SHIFT + LEFT CLICK.
- Those who use PowerShell instead of command line can open command line with CMD command after powershell.
-Then we run the following commands one by one.
-Before all this; Let's not forget to set it according to --sdk_root="C:\Lazarus_ADFOL" folder.
-Related commands are available below the video.

Echo Y| sdkmanager --sdk_root=C:\Lazarus_ADFOL\cmdline-tools "platforms;android-30"
Echo Y| sdkmanager --sdk_root=C:\Lazarus_ADFOL\cmdline-tools "build-tools;30.0.0"
Echo Y| sdkmanager --sdk_root=C:\Lazarus_ADFOL\cmdline-tools "extras;android;m2repository"
Echo Y| sdkmanager --sdk_root=C:\Lazarus_ADFOL\cmdline-tools "platform-tools"
Echo Y| sdkmanager --sdk_root=C:\Lazarus_ADFOL\cmdline-tools "tools"
pause

6- Extract the Gradle package to the relevant folder.

7- We extract the LAMW package to the relevant folder and install it. Then we make the Package File Path Settings.

Congratulations, Now you can make your "Hello World" Work :)

The emulator running at the end of the video belongs to Android Studio. If you have a real device, I recommend using it.
« Last Edit: December 25, 2021, 12:35:00 pm by loaded »
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018