Sign in Join
Wiki copytemporary

LAMW: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-*(Android only)*
1+[![Android robot.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/50px-Android_robot.svg.png)](</File:Android_robot.svg>)
22
3-![](/wiki-images/c/cd/Lamw_git_small_circle.png)
3+This article applies to [Android](</Category:Android> "Category:Android") only.
44
5-**LAMW**: Lazarus Android Module Wizard is a wizard to create JNI Android loadable module (.so) and Android Apk using Lazarus/Free Pascal.
5+See also: [[Multiplatform Programming Guide]]
66
7-**Features:**
7+[![LAMW](/wiki-images/b/b3/lamw_git_small_circle.png)](<https://github.com/jmpessoa/lazandroidmodulewizard> "LAMW")
88
9-
10-Native Android GUI
9+**LAMW** : Lazarus Android Module Wizard is a wizard to create JNI Android loadable module (.so) and Android Apk using Lazarus/Free Pascal.
1110
1211
13-
12+**Features:**
13+
14+Native Android GUI
15+
1416AppCompat and Material Design supported!
1517
16-
17-RAD! Form designer and drag&drop component development model!
18+RAD! Form designer and drag&drop component development model!
1819
19-
20-
2120More than 140 components!
2221
2322Github Page: <https://github.com/jmpessoa/lazandroidmodulewizard>
2423
24+
25+
2526## Get Lazarus for Android
2627
2728### Laz4Android 2.0.12 (Windows)
2829
29-
3030All cross-android compilers already installed!
3131
32-
3332arm-android/aarch64-android/i386-android/x86_64-android/jvm-android
3433
35-How to
36-
3734
38-Install * [Laz4Android 2.0.12](http://sourceforge.net/projects/laz4android/files/?source=navbar)
3935
40-> **Note:** Install here: "C:\laz4android2.0.12" (not "Program Files" !!!)
36+**How to**
4137
42-
43-Install * [LAMW](https://github.com/jmpessoa/lazandroidmodulewizard/archive/master.zip)
38+Install * [Laz4Android 2.0.12](<http://sourceforge.net/projects/laz4android/files/?source=navbar>)
4439
45-> **Note:** Download LAMW and unzip it in some folder (ex. "C:\laz4android2.0.12\components")
40+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Install here: "C:\laz4android2.0.12" (not "Program Files" !!!)
4641
47-
48-
42+Install * [LAMW](<https://github.com/jmpessoa/lazandroidmodulewizard/archive/master.zip>)
43+
44+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Download LAMW and unzip it in some folder (ex. "C:\laz4android2.0.12\components")
45+
4946Packages installations order/sequence:
5047
51-
52-
5348tfpandroidbridge_pack.lpk (in "..../android_bridges" folder)
5449
5550lazandroidwizardpack.lpk (in ""..../android_wizard" folder)
5651
5752amw_ide_tools.lpk (in "..../ide_tools" folder)
5853
59-Go to Infrastructure.
54+**Go toInfrastructure.**
6055
6156### LAMW Manager (Linux and Windows)
6257
63-> **Note:** All in One! LAMW Manage produces a complete Lazarus for Android environment by automating the step Infrastructure!
58+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** All in One! LAMW Manage produces a complete Lazarus for Android environment by automating the step Infrastructure!
6459
65-
66-Install * [LAMW Manager Installer for Linux](https://github.com/dosza/LAMWManager-linux)
60+Install * [LAMW Manager Installer for Linux](<https://github.com/dosza/LAMWManager-linux>)
6761
68-Install * [LAMW Manager Installer for Windows](https://github.com/dosza/LAMWManager-win)
62+Install * [LAMW Manager Installer for Windows](<https://github.com/dosza/LAMWManager-win>)
6963
7064### Install LAMW using fpcupdeluxe (Linux and Windows)
7165
72-
73-
74-[How to install on Linux (FPCUPdeluxe + LAMW)](https://wiki.freepascal.org/LAMW_install_linux_fpcupdeluxe)
66+[[LAMW install linux fpcupdeluxe|How to install on Linux (FPCUPdeluxe + LAMW)]]
7567
76-[How to install on Windows (FPCUPdeluxe + LAMW)](https://wiki.freepascal.org/LAMW_install_windows_fpcupdeluxe)
68+[[LAMW install windows fpcupdeluxe|How to install on Windows (FPCUPdeluxe + LAMW)]]
7769
7870### Do It Yourself! (Windows)
7971
80-
81-Install * [Lazarus 2.0.12](https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%202.0.12/lazarus-2.0.12-fpc-3.2.0-win64.exe/download)
72+Install * [Lazarus 2.0.12](<https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%202.0.12/lazarus-2.0.12-fpc-3.2.0-win64.exe/download>)
8273
83-> **Note:** Install here: "C:\lazarus2.0.12" (not "Program Files" !!!)
74+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Install here: "C:\lazarus2.0.12" (not "Program Files" !!!)
8475
85-
86-Install * [LAMW](https://github.com/jmpessoa/lazandroidmodulewizard/archive/master.zip)
76+Install * [LAMW](<https://github.com/jmpessoa/lazandroidmodulewizard/archive/master.zip>)
8777
88-> **Note:** Download LAMW and unzip it in some folder (ex. "C:\lazarus2.0.12\components")
78+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Download LAMW and unzip it in some folder (ex. "C:\lazarus2.0.12\components")
8979
90-
91-
9280Packages installations order/sequence:
9381
94-
95-
9682tfpandroidbridge_pack.lpk (in "..../android_bridges" folder)
9783
9884lazandroidwizardpack.lpk (in ""..../android_wizard" folder)
9985
10086amw_ide_tools.lpk (in "..../ide_tools" folder)
10187
102-
103-Install * [FPC source code (trunk)](https://gitlab.com/freepascal.org/fpc/source/-/archive/main/source-main.zip)
88+Install * [FPC source code (trunk)](<https://gitlab.com/freepascal.org/fpc/source/-/archive/main/source-main.zip>)
10489
105-
106-
10790Download FPC source code and unzip it in some folder and point up the source path in next step
10891
10992
110-Go to Lazarus menu "Tools" \>\> "\[LAMW\] Android Module Wizard" \>\> "Build FPC Cross Android"
11193
112-> **Note:** repeat the "Build and install" process once for each architecture
94+Go to Lazarus menu "Tools" >> "[LAMW] Android Module Wizard" >> "Build FPC Cross Android"
11395
114-
115-
116-\(x\) Armv7a + Soft (android 32 bits \<\< tested!)
96+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** repeat the "Build and install" process once for each architecture
11797
118-
119-
98+(x) Armv7a + Soft (android 32 bits << tested!)
99+
120100Build
121101
122-
123-
124102Install
125103
126-
127-
128-\(x\) Aarch64 (android 64 bits \<\< tested!)
104+(x) Aarch64 (android 64 bits << tested!)
129105
130-
131-
132106Build
133107
134-
135-
136108Install
137109
138-> **Note:** After "build" and "install" the cross-compilers and after to do all Infrastructure go to Using LAMW and try to create your first \[New\] LAMW project!
110+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** After "build" and "install" the cross-compilers and after to do all Infrastructure go to Using LAMW and try to create your first [New] LAMW project!
139111
140-
141-If you get an error "Fatal: Cannot find unit system used by fcllaz of package FCL" when trying "Run" \>\> "Build" your project then go to "fpc.cfg" (ex. "C:\lazarus2.0.12\fpc\3.2.0\bin") and:
112+If you get an error "Fatal: Cannot find unit system used by fcllaz of package FCL" when trying "Run" >> "Build" your project then go to "fpc.cfg" (ex. "C:\lazarus2.0.12\fpc\3.2.0\bin") and:
142113
143-
144-
145114**change:**
146115
147-
148-
149-\#searchpath for units and other system dependent things
116+#searchpath for units and other system dependent things
150117
151-
152-
153--FuC:\lazarus2.0.12\fpc\\\$FPCVERSION/units/\$fpctarget
118+-FuC:\lazarus2.0.12\fpc\$FPCVERSION/units/$fpctarget
154119
155-
156-
157--FuC:\lazarus2.0.12\fpc\\\$FPCVERSION/units/\$fpctarget/*
120+-FuC:\lazarus2.0.12\fpc\$FPCVERSION/units/$fpctarget/*
158121
159-
160-
161--FuC:\lazarus2.0.12\fpc\\\$FPCVERSION/units/\$fpctarget/rtl
122+-FuC:\lazarus2.0.12\fpc\$FPCVERSION/units/$fpctarget/rtl
162123
163-
164-
165124**to:**
166125
167-
168-
169-\#searchpath for units and other system dependent things
126+#searchpath for units and other system dependent things
170127
171-
172-
173--FuC:\lazarus2.0.12\fpc\3.2.0/units/\$fpctarget
128+-FuC:\lazarus2.0.12\fpc\3.2.0/units/$fpctarget
174129
175-
176-
177--FuC:\lazarus2.0.12\fpc\3.2.0/units/\$fpctarget/*
130+-FuC:\lazarus2.0.12\fpc\3.2.0/units/$fpctarget/*
178131
179-
180-
181--FuC:\lazarus2.0.12\fpc\3.2.0/units/\$fpctarget/rtl
132+-FuC:\lazarus2.0.12\fpc\3.2.0/units/$fpctarget/rtl
182133
183134
184-And go to Lazarus IDE menu "Tools" \>\> "Options" \>\> "Environment" \>\> \[FPC Source\]
185135
186-
187-
136+And go to Lazarus IDE menu "Tools" >> "Options" >> "Environment" >> [FPC Source]
137+
188138**change:**
189139
190-
191-
192-\$(LazarusDir)fpc\\\$(FPCVer)\source
140+$(LazarusDir)fpc\$(FPCVer)\source
193141
194-
195-
196142**to:**
197143
198-
144+$(LazarusDir)fpc\3.2.0\source
145+
199146
200-\$(LazarusDir)fpc\3.2.0\source
201147
202148## Infrastructure
203149
204-> **Note:** Only for non-users of LAMW Manager!
150+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Only for non-users of LAMW Manager!
205151
206152### Get Java JDK
207153
208-
209-Install * [Java JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
154+Install * [Java JDK 8](<http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html>)
210155
211156### Get Android NDK
212157
213-
214-Install * [r19c](https://github.com/android/ndk/wiki/Unsupported-Downloads)
158+Install * [r19c](<https://github.com/android/ndk/wiki/Unsupported-Downloads>)
215159
216160### Get Ant builder
217161
218-
219-Install * [Ant](http://ant.apache.org/bindownload.cgi)
162+Install * [Ant](<http://ant.apache.org/bindownload.cgi>)
220163
221-
222-
223164Simply extract the zip file to a convenient location...
224165
225166### Get Gradle builder
226167
227-
228-Install * [Gradle 6.6.1](https://gradle.org/next-steps/?version=6.6.1&format=bin)
168+Install * [Gradle 6.6.1](<https://gradle.org/next-steps/?version=6.6.1&format=bin>)
229169
230-> **Note:** Use the option "extract here" to produce the folder "gradle-6.6.1" in a convenient location...
170+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Use the option "extract here" to produce the folder "gradle-6.6.1" in a convenient location...
231171
232172### Get Android SDK
233173
234-
235-Install * [r25.2.5-windows](https://dl.google.com/android/repository/tools_r25.2.5-windows.zip)
174+Install * [r25.2.5-windows](<https://dl.google.com/android/repository/tools_r25.2.5-windows.zip>)
236175
237-
238-Install * [r25.2.5-linux](https://dl.google.com/android/repository/tools_r25.2.5-linux.zip)
176+Install * [r25.2.5-linux](<https://dl.google.com/android/repository/tools_r25.2.5-linux.zip>)
239177
240-
241-Install * [r25.2.5-macosx](https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip)
178+Install * [r25.2.5-macosx](<https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip>)
242179
243-How to
180+**How to**
244181
245-
246182unpacked/install to a "sdk" folder
247183
248-
249184open a command line terminal and go to folder "sdk/tools"
250185
251-
252-run the command \>\> "android update sdk" to open a GUI "SDK Manager"
186+run the command >> "android update sdk" to open a GUI "SDK Manager"
253187
254-
255-
256-Go to \[Tools\] and keep "as is"
188+Go to [Tools] and keep "as is"
257189
258-
259-
260190Android SDK Tools (installed)
261191
262-\(x\) Android SDK Platform-Tools
192+(x) Android SDK Platform-Tools
263193
264-\(x\) Android SDK Build-Tools 29.0.3 (and others more recent)
194+(x) Android SDK Build-Tools 29.0.3 (and others more recent)
265195
266-
267-
268-Go to \[Android R\] and uncheck all!
196+Go to [Android R] and uncheck all!
269197
270-
271-
272-Go to \[Android 10 API 29\] uncheck all and check only
198+Go to [Android 10 API 29] uncheck all and check only
273199
274-
275-
276200(x)SDK Platform
277201
278-
279-
280-Go to \[Extras\] and check:
202+Go to [Extras] and check:
281203
282-
283-
284204(x)Android Support Repository
285205
286-
287-
288206(x)Google USB Drive (Windows only...)
289207
290-
291-
292208(x)Google Repository
293209
294-
295-
296210(x)Google Play Services
297211
298-
212+[Install 7 package!]
213+
299214
300-\[Install 7 package!\]
301215
302216## Using LAMW
303217
304218### Configure Paths
305219
306-
307-Lazarus IDE menu "Tools" \>\> "\[LAMW\] Android Module Wizard" \>\> "Paths Settings ..."
220+Lazarus IDE menu "Tools" >> "[LAMW] Android Module Wizard" >> "Paths Settings ..."
308221
309-> **Note:** MacOs: path to Java JDK auto setting!
222+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** MacOs: path to Java JDK auto setting!
310223
311224### Create and Run your first Android Apk
312225
313-How to
226+**How to**
314227
315-
316-From Lazarus IDE select "Project" \>\> "New Project"
228+From Lazarus IDE select "Project" >> "New Project"
317229
318-
319-From displayed dialog select "\[LAMW\] GUI Android Module" and "Ok"
230+From displayed dialog select "[LAMW] GUI Android Module" and "Ok"
320231
321-
322232Fill the form/dialog fields and "Ok"
323233
324-> **Note:** Path to Workspace" is your projects folder
234+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Path to Workspace" is your projects folder
325235
326-> **Note:** Accept "default" options! (but pay attention to the * signage)
236+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Accept "default" options! (but pay attention to the * signage)
327237
328-
329238"Save" unit1 as/where suggested
330239
331-> **Note:** Search your project folder... you will find many treasures there! (look for lazarus project in ".../jni" folder)
240+![Light bulb](https://upload.wikimedia.org/wikipedia/commons/d/d8/Nuvola_apps_ktip.png) **Note:** Search your project folder... you will find many treasures there! (look for lazarus project in ".../jni" folder)
332241
333-
334-From Lazarus IDE select "Run" \>\> "Build"
242+From Lazarus IDE select "Run" >> "Build"
335243
336-
337-
338244**Success!** Your system is up to produce your first Android Apk!
339245
340246
341-Configure your phone device to [debug mode](https://developer.android.com/studio/debug/dev-options) and plug it to the computer usb port
342247
343-
344-From Lazarus IDE select "Run" \>\> "\[LAMW\] Build Apk and Run"
248+Configure your phone device to [debug mode](<https://developer.android.com/studio/debug/dev-options>) and plug it to the computer usb port
345249
346250
347-
251+
252+From Lazarus IDE select "Run" >> "[LAMW] Build Apk and Run"
253+
348254**Congratulations!** You are now an Android Developer!
349255
350256## Other references
351257
352-[Tutorial: My First "Hello Word" App](https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/AppHelloWorld.md)
258+[Tutorial: My First "Hello Word" App](<https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/AppHelloWorld.md>)
353259
354260---
355-*From the Free Pascal wiki, page "LAMW", as it stood on 2023-05-22 after a change by WayneSherman, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
356-Category: Android
357-Category: Lazarus
261+*From the Free Pascal wiki, page "LAMW", as the Internet Archive kept it on 2025-01-17, last changed on 2023-05-23. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history