Recent

Author Topic: First steps of LCL-Android are ready  (Read 125791 times)

Jonathan

  • New Member
  • *
  • Posts: 40
Re: First steps of LCL-Android are ready
« Reply #60 on: August 31, 2011, 10:08:51 am »
Hi felipemdc,I have worked out the application ! Thanks for your help.  Great Job!

laguna

  • Sr. Member
  • ****
  • Posts: 327
Re: First steps of LCL-Android are ready
« Reply #61 on: August 31, 2011, 06:01:43 pm »
Is possible developer application Android in Windows Seven?

what tools should I download?

Thanks

woma1

  • Newbie
  • Posts: 3
Re: First steps of LCL-Android are ready
« Reply #62 on: August 31, 2011, 08:26:50 pm »
Hi

And I join me to the question of the LAGUNA. Is it possible to write applications for Android in Windows 7?

DUDUS

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #63 on: August 31, 2011, 09:03:53 pm »
You should start with:

1> Android-SDK
2> Ant
3> Make sure you can compile the java part of the test project lazarus-ccr/examples/androidlcl
4> Build a cross-compiler for arm-linux (2.5.1+)
5> Obtain Lazarus SVN

laguna

  • Sr. Member
  • ****
  • Posts: 327
Re: First steps of LCL-Android are ready
« Reply #64 on: August 31, 2011, 09:34:42 pm »
can show step 2 and 4

Thanks

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #65 on: August 31, 2011, 09:41:19 pm »
step 2 is not at all specific to Lazarus, so you might want to search in google for "Android programming in Windows" or something like that. Try minimal instructions to set up the build environment and try to build the project lazarus-ccr/examples/androidlcl/android

I don't know how to install ant in Windows, it was hard enough to install it in Linux where you already have all packages in the repository. In linux you just install ant and then try to install as much as possible from Java packages until it starts working.

For step 4: http://wiki.lazarus.freepascal.org/Cross_compiling#To_Linux_2

but it just points to the buildfaq ... the fpc-pascal mailling list might come handy.

In short, I honestly think it is much easier to install Virtual PC and install Linux inside it, or install a dual boot in your computer then to build Android apps in Windows.

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: First steps of LCL-Android are ready
« Reply #66 on: September 11, 2011, 03:53:47 am »
Oh, so i need to buy new device, i hate the emulators :D
« Last Edit: September 11, 2011, 03:59:34 am by Zaher »

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: First steps of LCL-Android are ready
« Reply #67 on: September 28, 2011, 05:58:13 pm »
are there instructions somewhere from A..Z to the final APK file that I can use to create Android apps. You know kind of 1, 2, 3. steps are much appreciated.

Thx

PS: Are Standard controls supported?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #68 on: September 28, 2011, 06:02:18 pm »
are there instructions somewhere from A..Z to the final APK file that I can use to create Android apps. You know kind of 1, 2, 3. steps are much appreciated.

Use these steps to build the example project:

http://wiki.lazarus.freepascal.org/Android_Interface#Compiling_the_example_LCL-Android_Application

To create a new project simply copy and modify this example project.

Quote
PS: Are Standard controls supported?

What do you mean by that? Assuming that you are asking if LCL controls of the Standard tab are supported, then the answer is: This table contains the status of which controls are already implemented:

http://wiki.lazarus.freepascal.org/Roadmap#Status_of_native_controls_on_each_widgetset

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: First steps of LCL-Android are ready
« Reply #69 on: September 28, 2011, 06:13:21 pm »
ok, I see, thx for the info, one last question, can I paint on the Form Canvas?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #70 on: September 28, 2011, 06:19:44 pm »
ok, I see, thx for the info, one last question, can I paint on the Form Canvas?

TCanvas is not yet supported, although obviously it is a top item to be done.

Rustam Asmandiarov

  • New Member
  • *
  • Posts: 46
Re: First steps of LCL-Android are ready
« Reply #71 on: October 27, 2011, 09:38:29 am »
Hi felipemdc!
I can not compile the sample application androidlcl, shows the following error.

/usr/local/bin/arm-linux-ld: warning: /home/predator/Android/androidlcl/android/libs/armeabi/link.res contains output sections; did you forget -T?
/usr/local/bin/arm-linux-ld: /usr/arm-linux-gnueabi/lib/libc.so.6: Unknown mandatory EABI object attribute 44
/usr/local/bin/arm-linux-ld: failed to merge target specific data of file /usr/arm-linux-gnueabi/lib/libc.so.6
/usr/lib/fpc/2.4.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/lib/fpc/2.4.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
androidlcltest.lpr(21) Error: Error while linking
androidlcltest.lpr(21) Fatal: There were 1 errors compiling module, stopping

And the compiler and Lazarus assembled correctly, as turbochessclock4android compiled and running on the Android emulator.

I noticed that this error is associated with static and dynamic libraries such as crti.o crtn.o libc.so. .., it is checked by substituting different versions of the library, from which we take these libraries?

Errors have been tested for Ubuntu 10.10-10.04
compiler to 2.4.4, 2.7.1
Lazarus 0.9.31.32791
BinUtils 2.20-2.21-2.21.1

Привет felipemdc!
Я не могу скомпилировать демонстрационное приложение androidlcl, появляются следующие ошибки.
--//--
Причем компилятор и лазарус собраны правильно, так как turbochessclock4android скомпилировалось и работает на Андроид эмуляторе.
Я заметил что данная ошибка связана со статическими и динамическими библиотеками такими как crti.o crtn.o libc.so...,это проверено путем подмены разных версий библиотеки, откуда следует брать эти библиотеки?
Ошибки были проверены на Ubuntu 10.10-10.04
на компиляторе 2.4.4, 2.7.1
Лазарус 0.9.31.32791
BinUtils 2.20-2.21-2.21.1
« Last Edit: October 27, 2011, 09:51:48 am by Rustam Asmandiarov »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #72 on: October 27, 2011, 10:08:34 am »
/usr/local/bin/arm-linux-ld: failed to merge target specific data of file /usr/arm-linux-gnueabi/lib/libc.so.6
/usr/lib/fpc/2.4.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':

Free Pascal 2.4.4 is broken for Android. You *must* use 2.5.x or 2.6.x. For example from the pre-compiled installer which is in the wiki:

http://wiki.lazarus.freepascal.org/Android_Interface#Using_the_pre-compiled_compiler

Rustam Asmandiarov

  • New Member
  • *
  • Posts: 46
Re: First steps of LCL-Android are ready
« Reply #73 on: October 27, 2011, 10:17:04 am »
/usr/local/bin/arm-linux-ld: failed to merge target specific data of file /usr/arm-linux-gnueabi/lib/libc.so.6
/usr/lib/fpc/2.4.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':

Free Pascal 2.4.4 is broken for Android. You *must* use 2.5.x or 2.6.x. For example from the pre-compiled installer which is in the wiki:

http://wiki.lazarus.freepascal.org/Android_Interface#Using_the_pre-compiled_compiler
Compiler 2.7.1 from source good?
« Last Edit: October 27, 2011, 10:19:44 am by Rustam Asmandiarov »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #74 on: October 27, 2011, 10:41:50 am »
Compiler 2.7.1 from source good?

Well, you can try that, but I think that then Unicode support will be broken.

Lazarus does not yet support 2.7 because 2.7 is under development with a final state not yet decided. So supporting it makes no sense, since it will change and then we would have to adapt again.

 

TinyPortal © 2005-2018