Android Controls for Lazarus lazarus / 43-Android ---------------------------------------------------------------------- simonsayz · 2013-09-18 18:30 Android control lib for lazarus. Some basic implementation.  - Form, Label, Edit,  - OpenGL ES v1,v2  - Camera ... ref. http://blog.naver.com/simonsayz/120198362100 ---------------------------------------------------------------------- Mike.Cornflake · 2013-09-18 22:59 Android native control library. Very nice, I was looking through your YouTube samples the other day, good results. Many thanks for sharing your work :-) ---------------------------------------------------------------------- jmpessoa · 2013-09-19 10:42 Great work! Thank you! ---------------------------------------------------------------------- joseme · 2013-09-19 12:31 Thank you! ---------------------------------------------------------------------- Leledumbo · 2013-09-19 16:18 wow! No, WOOOOOOOOOW!!! ---------------------------------------------------------------------- picstart · 2013-09-20 13:38 Well,         I mostly gave up on Lazarus for tablet apps. Great violence is done to the Delphi concept of ease of use when it takes a week in a room to get a Lazarus app running on Android. Sure there will always be good reasons for a bad result. Now this thread actually got an Android app to work one time within in an hour most of which was just download time. Optimistically I thought it might actually work a second time. It seems it is very dependent on the Lazarus IDE status. After it worked the first time I added a component to the Lazarus palette basically a component of mine that blinks a simulated led. After the Lazarus IDE recompiled I was hoping the included example app might still compile after a component installation using Win7_64 Lazarus v1.0.12 Wrong The error message is below. PPU Loading C:\lazarus\fpc\2.7.1\units\arm-android\rtl\system.ppu PPU Loading C:\lazarus\fpc\2.6.2\units\arm-android\rtl\system.ppu fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\fpc\2.6.2\units\arm-android\rtl\system.ppu ---------------------------------------------------------------------- Leledumbo · 2013-09-20 14:55 Got a drawing and layouting issue. On my emulator, which is set to quite a small size screen (and resolution), only parts of the whole app can be seen. On my device (Xiaomi MI-2S), I can see there are a lot of buttons on the main screen. But the captions (including text edit) are drawn in lower half. I'll post some screenshots later. ---------------------------------------------------------------------- Leledumbo · 2013-09-20 14:56 QuotePPU Loading C:\lazarus\fpc\2.7.1\units\arm-android\rtl\system.ppu PPU Loading C:\lazarus\fpc\2.6.2\units\arm-android\rtl\system.ppu fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\fpc\2.6.2\units\arm-android\rtl\system.ppuYour fpc.cfg must be wrong, as you let the compiler found units compiled both both 2.6.2 and 2.7.1. ---------------------------------------------------------------------- jmpessoa · 2013-09-20 16:25 Hi Picstart, Hint: only install new component when a windows project is open... (close the cross-android project!) Greetings! ---------------------------------------------------------------------- picstart · 2013-09-20 21:30 Thanks jmpressoa. At least I have some information about the issue. I feel Lazarus is becoming unpleasant to use. I hate Lazarus oozing out of a contained file folder Lazarus into users application who knows where else it oozes out to. Anyway it looks like the failure to do what you suggest has the consequence of rendering an hour's work useless. If Lazarus would stay contained within a folder a second copy could be used for Android exclusively. I know there will be a good explanation of why the unpleasant feature of oozing out of the Lazarus file folder is valuable. Like saving megabytes on a 3 gigabyte disk. Ease of use ( the best reason Delphi was successful ) seems to be getting forgotten as more and more obtuse steps have to be learned to get Lazarus just to compile. FPC 2.7.1 is needed for android but it's not the fpc most use ...the inter dependencies and the single point of failure consequences are alarming.   It is just getting frustrating. ---------------------------------------------------------------------- BigChimp · 2013-09-20 22:01 I think your frustrations are partly due to not completely understanding the Lazarus architecture. I haven't worked with Android, so no opinion about that part. Delphi "oozes" into the registry to store its settings. Lazarus, being cross platform, does not use the registry and uses a directory (the "primary config path"/directory). It correctly uses the OS specified directory for this (e.g. somewhere under c:\users\... for Windows Vista+). This arrangement allows seamless side by side installation of multiple Lazarus instances that don't interfere with each other at all - as long as you use separated config dirs and start Laz with the right --primary-config-path parameter to point to this dir. E.g. fpcup uses this to create entirely self-contained FPC+Laz instances - no need to even mess with the PATH. Good luck - reading about Android development on the forum and wiki, it seems the amount and variability of the components does lead to a lot of complexity.. ---------------------------------------------------------------------- Leledumbo · 2013-09-21 05:51 QuoteI think your frustrations are partly due to not completely understanding the Lazarus architectureand the release engineering (continued below) QuoteFPC 2.7.1 is needed for android but it's not the fpc most useunderstanding what development/snapshot version means would stop you from frustrating. 2.. is a development version, that means everything there is not stable, including Android support. It's available for those who would like to help development by testing and reporting bugs, not for production use, despite it might be possible for most small projects. Wait for final release if you don't want to be part of those testers. ---------------------------------------------------------------------- zariq · 2013-09-24 19:45 Has somebody built the compiler using the instructions on Simon's blog? I keep getting error make: *** no rule rule to make target 'clean'. stop. thanks. ---------------------------------------------------------------------- simonsayz · 2013-09-26 21:40 When getting Error :  r25567 ~ Temp. Solution ref. http://blog.naver.com/simonsayz/120198362100 ---------------------------------------------------------------------- halflifezy · 2013-10-15 15:20 Quote from: simonsayz on September 18, 2013, 08:30:10 pmAndroid control lib for lazarus. Some basic implementation.  - Form, Label, Edit,  - OpenGL ES v1,v2  - Camera ... ref. http://blog.naver.com/simonsayz/120198362100 does it no 32bit version? ---------------------------------------------------------------------- georgebou · 2013-10-25 16:54 Hi. While the example works fine on a real android device, it doesn't work on an emulator. Is there a fix for that? Keep up good work. You code is simple, clean and effective ---------------------------------------------------------------------- Leledumbo · 2013-10-26 03:45 QuoteWhile the example works fine on a real android device, it doesn't work on an emulator.Works for me in both emulator and real device, only some drawing issue. Probably incorrect arch. ---------------------------------------------------------------------- georgebou · 2013-10-26 13:15 Thank you very much mate. It seems to work only with API 18, but that's nice