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.zipAndroid-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!