LAMW problems lazarus / 43-Android ---------------------------------------------------------------------- zorfox · 2015-12-06 20:29 I'm having problems with building android projects. Sorry for my ignorance when it comes to this. I'm an FPC newbie.  I'm using the following, Lazarus 1.4.4 r49931 FPC 3.0.0 i386-win32-win32/win64 LAMW downloaded from here, https://github.com/jmpessoa/lazandroidmodulewizard/archive/master.zip Android-ndk-r10e Android sdk Apache-ant-1.9.6 First, when attempting to create an onClick event (by double clicking a button in the design view) I receive an error. "TDefaultComponentEditor has created the error: Unable to find method... androidwidget.pas(15,51) Error: unit not found: CustApp If I restart the IDE this error disappears. No big deal really it's just odd. The biggest problem I have is dealing with paths and include files. I dropped a listview, dbf and a button on a form. I set the dbf to a table and set the button onclick event to display data in the listview. When I try and build the application I get multiple "Cannot find unit XYZ" errors. The IDE finds the units but the compiler does not so I assume it's a problem with the FPC.cfg file. Adding a path in the project options does nothing. Btw, when adding C:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtk+\gtk in the project options it complains about unusual characters. I suppose it's the + sign. error example... gtk2cellrenderer.pas(30,3) Fatal: Cannot find unit gtk2 used by Gtk2CellRenderer of package LCL. If I add a path to the fpc.cfg file they are found. Here is a list of the units not found, gtk2, glib2, atk, pango, gdk2pixbuf, gdk2, Cairo, xlib, gdk2x, gtk2ext Here is what I added to the fpc.cfg file. -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtk+\gtk -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\glib\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\atk\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\pango\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtk+\gdk- pixbuf\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtk+\gdk\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\cairo\src\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\x11\src\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtk2x11\ -FuC:\Android\laz4android\fpc\3.0.0\source\packages\gtk2\src\gtkext\ Is there a way to recursively look in subdirectories rather than entering so many paths? Now the app will build and install on an emulator. Unfortunately, it stops before it starts. I attempted to upgrade the code templates for the project to see if this would help. The .java files update fine. The controls.lpr cause an access violation. If I choose to cancel Lazarus finally crashes and needs to be terminated. Sorry for such a long winded post. I just wanted to give as much information as possible in the event they all are related. Thanks in advance! ---------------------------------------------------------------------- jmpessoa · 2015-12-06 20:57 Hello zorfox! 1. Quote I'm using... Lazarus 1.4.4 r49931 FPC 3.0.0 i386-win32-win32/win64 [yes, you can prepare your own Lazarus to  "cross-compile" ...] But, please, get "Laz4Android" from here: http://sourceforge.net/projects/laz4android/files/?source=navbar [EDITED: Ok, you have "Laz4Android!"] 2. Quote..I dropped a listview, dbf and a button on a form.... Go to IDE menu "Project" -->> "New Project" -->> "JNI Android Module [Lamw GUI]" to create a cross android project... and, please, use "Android Bridges" and "Android Bridges Extra" components... not listview, dbf and a button, etc.. You can see "readme_get_start.txt" .... ---------------------------------------------------------------------- zorfox · 2015-12-06 21:13 Thanks for the quick reply! I think I did download the IDE from that link. http://iweb.dl.sourceforge.net/project/laz4android/laz4android1.4.4- FPC3.0.0.exe Is this not correct? As far as the components I was using items from the android bridge. The listview was jListView1 and the button jButton1. Should I not use TDbf? Instead use jSqliteDataAccess from the bridges component palette? I will have to figure out how to use the sqlLite components. Otherwise, I would have tested it already. Overall, I need to use only components from the android brides? ---------------------------------------------------------------------- jmpessoa · 2015-12-06 21:45 QuoteOverall, I need to use only components from the android brides? Yes, but pure "FCL" [not LCL dependent] component  can be used, too... [well, "LCLBase" dependency is ok,  need to get component resource icon...]