Вы сами хотите чтоб взять и установить всё разом и без проблем. Но если вы попробуете автоматизировать то что вы написали, то вы поймёте, что это не так просто, как кажется. Это займёт длительное время. На каждом вашем шаге будут встречаться ошибки, которые вы может и сможете разрешить
Хорошо, переходим на русский язык.
Про автоматизацию я написал в конце как вариант дальнейшего развития Лазаря.
То что сначала было написано было рассчитано на ручную установку.
А именно: разработчики настраивают все инструменты для компиляции - sdk, ndk, gradle, ant.
И размещают их в папки на сервере, чтобы юзер скачал их или указал пути к ним на сервере для LAWM.
Эти папки делаются руками. Обновляются тоже руками, если надо.
Разработчики руками в сборку Лазаря добавляют кросс-компиляторы в соответствующую папку.
Или дают возможность юзерам скачать готовые кроссы, чтобы руками кинуть их в нужное место.
Файл конфига тоже делается руками.
В Лазаре делаются настройки проекта, компилятора для Андроида, пути к библиотекам и т.д.
Вот по этой инструкции для начала.
https://wiki.lazarus.freepascal.org/Android_tutorial#Compile_the_demo_%22androidlcl%22Раздел называется
Compile the demo "androidlcl"
Сохраняется тоже руками по кнопке Export.
Кладется на сервер для скачивания юзерам.
Юзер руками загружает конфиг по кнопке Import.
Юзер загружает и ставит JDK на свою машину тоже руками.
Руками ставит пакет LAMW через Менеджер пакетов. В том порядке как в инструкции автора LAMW.
Папки sdk, ndk, gradle, ant нужны для компиляции в любом случае.
И для любых Андроид-плагинов.
К примеру,
Las4Apk тоже просит пути к этим папкам. Скрин прилагаю.
Если ещё раз перечитать инструкцию, которую я выше указал, то даже в самом Лазаре в разделе Compiler options нужно указать пути к sdk, ndk и т.д.
И в чем проблема?
Что теперь разрабам стало уже сложно настроить и дать доступ к Android sdk, ndk и остального для компиляции?
Или скомпилить и выложить готовые кросс-компиляторы?
Это раньше вообще мог любой админ сделать, даже не программист.
А вот уже после того как будет доступ к sdk, ndk и всего остального, пусть каждый юзер решает что использовать для компиляции в Андроид -
LAMW, LAZ4Apk, другие пакеты
или вообще
Project options Лазаря и батники по вышеприведенной инструкции.
Okay, let's switch to Russian.
I wrote about automation at the end as an option for further development of Lazarus.
What was written at first was intended for manual installation.
Namely: the developers configure all the tools for compilation - sdk, ndk, gradle, ant.
And place them in folders on the server so that the user downloads them or specifies the paths to them on the server for LAWM.
These folders are made manually. They are also updated manually, if necessary.
The developers manually add cross-compilers to the Lazarus assembly in the appropriate folder.
Or they give users the opportunity to download ready-made crosses so that they can manually throw them in the right place.
The config file is also made manually.
In Lazarus, project settings, a compiler for Android, paths to libraries, etc. are made.
Here are the instructions for starting.
https://wiki.lazarus.freepascal.org/Android_tutorial#Compile_the_demo_%22androidlcl%22The section is called
Compile the demo "androidlcl"
It is also saved manually by pressing the Export button.
The user manually loads the config by pressing the Import button.
The user also manually downloads and installs the JDK on his machine.
Manually installs the LAMW package via the Package Manager. In the order as in the instructions of the LAMW author.
The folders sdk, ndk, gradle, ant are needed for compilation in any case.
And for any Android plugins.
For example,
Las4Apk also asks for paths to these folders. I am attaching a screenshot.
If you reread the instructions I indicated above, then even in Lazar itself, in the Compiler options section, you need to specify the paths to the sdk, ndk, etc.
And what's the problem?
Is it now difficult for developers to configure and provide access to the Android sdk, ndk, and the rest for compilation?
Or compile and publish ready-made cross-compilers?
Any admin could do this before, even a non-programmer.
But after there is access to the sdk, ndk, and everything else, let each user decide what to use for compilation in Android -
LAMW, LAZ4Apk, other packages, or even
Lazar's Project options and batch files according to the instructions above.