Recent

Author Topic: compile android application  (Read 6445 times)

zeljkoc

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
compile android application
« on: January 13, 2013, 05:26:49 pm »
problem compile android application winxp 32 and CodeTyphon 3.10

1._____________________________
LAZARUS 1.1
FPC Version 2.7.1
svn 39670

compile library liblclapp.so, build_debug_apk.bat and adb_install.bat

android application work

2._____________________________________
CodeTyphon 3.10

lazarus change application:

Project -> options -> Other
add: -FLlibdl.so

LCLWidgetType change LCLWidgetType1

compile library liblclapp.so, build_debug_apk.bat and adb_install.bat

android application not work

emulator message:

Sorry!

The application LCL Test
(process com.pascal.lcltest)
has stopped unexpectedly.
Please try again.

Test compile options:

HINT: using config file C:\codetyphon\fpc\bin\i386-win32\fpc.cfg
WARNING: ppu exists twice: C:\codetyphon\fpc\units\arm-linux\fv\dialogs.ppu, C:\codetyphon\lazarus\lcl\units\arm-linux\dialogs.ppu
WARNING: ppu exists twice: C:\codetyphon\fpc\units\arm-linux\fv\menus.ppu, C:\codetyphon\lazarus\lcl\units\arm-linux\menus.ppu

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12786
  • FPC developer.
Re: compile android application
« Reply #1 on: January 13, 2013, 10:47:43 pm »
Simply delete the ones in directly "FV"

zeljkoc

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
Re: compile android application
« Reply #2 on: January 14, 2013, 07:42:38 am »
I tried to clear all the "FV" directories but it did not work

C:\codetyphon\fpc\examples\fv
C:\codetyphon\fpcsrc\packages\fv
C:\codetyphon\fpc\units\arm-linux\fv
C:\codetyphon\fpc\units\i386-win32\fv

(my english google translate)

zeljkoc

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
Re: compile android application
« Reply #3 on: January 15, 2013, 09:33:41 pm »
1._____________________________
LAZARUS 1.1
FPC Version 2.7.1
svn 39670

compile library liblclapp.so, build_debug_apk.bat and adb_install.bat

android application work

not work:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(ComboBox1.Items.Strings[ComboBox1.ItemIndex]);
end;
______________________________________
CodeTyphon 3.10

I replaced the c:\codetyphon\FPC with c:\codetyphon\fpc_rez
copy c:\ lazarus\ fpc  to  C:\codetyphon\FPC

tools - > options
rename:(Compiler path (e.g. fpc)) C:\codetyphon\fpc\2.7.1\bin\i386-win32\fpc.exe
copy fpc4android_2.5.1 to  C:\codetyphon\FPC\2.5.1
copy C:\lazarus\fpc\2.5.1\bin\i386-win32\*.* to  C:\codetyphon\fpc\2.7.1\bin\i386-win32\*.*

compile library liblclapp.so, build_debug_apk.bat and adb_install.bat
android application work

not work:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(ComboBox1.Items.Strings[ComboBox1.ItemIndex]);
end; 





« Last Edit: January 15, 2013, 09:35:41 pm by zeljkoc »

 

TinyPortal © 2005-2018