Recent

Author Topic: Lazarus + Eclipse = create APK  (Read 1013 times)

Seenkao

  • Hero Member
  • *****
  • Posts: 546
    • New ZenGL.
Lazarus + Eclipse = create APK
« on: March 29, 2020, 08:49:41 pm »
Hello!

Всем привет! Я извиняюсь, что на русском, но думаю информация может быть полезной для многих. Хотя видео тоже на русском языке, но думаю, что многое и переводить не надо.
Правда видео довольно длинные... уж извиняюсь. )))

https://youtu.be/4oxssDB3JJE - программы, которые нужны или которые использовал
https://youtu.be/3tB_5mA2rO0 - и само создание APK-файла.

Проблемы при создании. Не советую пользоваться FPC 3.0.4 пользуйтесь версиями выше. В 3.0.4 походу недоработки где-то и скомпилированный файл может не запустится.

Проблемы с компиляцией в лазурусе. Если не компилируется файл, выдаёт ошибку, а считаете, что сделали всё верно, удалите *.lpi файл и попробуйте заново все настройки прописать.

Ещё одна проблема, вы может забыли положить скомпилированный *.so файл в нужную папку и/или включить загрузку этого файла в пакет.

Выявилась ещё одна проблемка. Работает данный метод только на Windows, на Linux проявляются проблемы с JNI. Поэтому, если кто знает как решить их, просьба указать. Я недавно на Linux. )))

google translate:
Hello everyone! I apologize for being in Russian, but I think the information may be useful for many. Although the video is also in Russian, I think that much does not need to be translated.
True, the videos are quite long ... I'm sorry. )))

https://youtu.be/4oxssDB3JJE - programs you need or used
https://youtu.be/3tB_5mA2rO0 - and the creation of the APK file itself.

Problems while creating. I do not recommend using FPC 3.0.4, use the versions above. In 3.0.4, there is a flaw somewhere and the compiled file may not start.

Compilation problems in lazarus. If the file does not compile, it gives an error, and you think that you did everything right, delete the * .lpi file and try to re-register all the settings.

Another problem, you may have forgotten to put the compiled * .so file in the correct folder and / or include the download of this file in the package.

Another problem came to light. This method works only on Windows, on Linux there are problems with JNI. Therefore, if anyone knows how to solve them, please indicate. I am recently on Linux. )))
« Last Edit: November 01, 2021, 02:17:54 am by Seenkao »
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

Seenkao

  • Hero Member
  • *****
  • Posts: 546
    • New ZenGL.
Re: Lazarus + Eclipse = create APK
« Reply #1 on: April 18, 2020, 09:42:14 am »
https://yadi.sk/d/oGNbitl9S-Koyw

archived 11 pictures
step-by-step instruction

I hope more clearly  :)
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Lazarus + Eclipse = create APK
« Reply #2 on: April 18, 2020, 10:10:35 am »
Don't understand your banter old chap.
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Seenkao

  • Hero Member
  • *****
  • Posts: 546
    • New ZenGL.
Re: Lazarus + Eclipse = create APK
« Reply #3 on: April 18, 2020, 02:52:25 pm »
I am not strong in english.

Я узнал что freepascal может компилировать под android. Но информации как и что делать не нашёл. Нашёл лишь маленькими обрывками. То тут, то там.

Была проблема, по созданию компилятора под android. Большинство примеров не работало или устарели. Как и примеры по созданию APK.

Я собрал всю информацию, что есть, проанализировал её и получилось сначала всё сделать на Windows, а следом и на Linux. Затратил не мало усилий на это, и надо как-то предоставить информацию людям, а английского я не знаю...  :)
Вот и сделал скрины, где мелкими фразами постарался объяснить последовательность действий.

И это не шутка!!! Я переработал примеры Zengl, и саму библиотеку и запустил под android.
https://www.youtube.com/watch?v=yt6EZHgWEZE

google translate:
I am not strong in english.

I found out that freepascal can compile for android. But I did not find information on how and what to do. Found only in small scraps. Here and there.

There was a problem creating a compiler for android. Most of the examples didn't work or are out of date. As well as examples for creating an APK.

I collected all the information that is, analyzed it and it turned out to be done first on Windows, and then on Linux. I spent a lot of effort on this, and I need to somehow provide information to people, but I don't know English ... :)
So I made screenshots, where I tried to explain the sequence of actions in small phrases.

And it's not a joke!!! I reworked the Zengl examples, and the library itself, and ran it under android.
https://www.youtube.com/watch?v=yt6EZHgWEZE
« Last Edit: November 01, 2021, 02:19:11 am by Seenkao »
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: Lazarus + Eclipse = create APK
« Reply #4 on: April 18, 2020, 03:37:23 pm »
@Seenkao

This works out LAMW ?
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

Seenkao

  • Hero Member
  • *****
  • Posts: 546
    • New ZenGL.
Re: Lazarus + Eclipse = create APK
« Reply #5 on: April 18, 2020, 04:00:03 pm »
проверьте. Важно fpc > 3.0.4 это создано без LCL. Возможно и LCL скомпилирует.
« Last Edit: April 18, 2020, 04:04:51 pm by Seenkao »
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Lazarus + Eclipse = create APK
« Reply #6 on: April 18, 2020, 04:12:23 pm »
Thank you for sharing what you know. It is sad you cannot communicate in English fluently. But please keep working, sharing what you found using videos or texts. Your contribution is very useful for Pascal - Android community.

~~~
Any admin here? Please move this thread to Android sub forum.
« Last Edit: April 18, 2020, 04:14:29 pm by Handoko »

 

TinyPortal © 2005-2018