Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Transfer of cross built appl. to android emulator 12 years 1 month ago #2539

  • Aias
  • Aias's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi to all.
I want to try cross compile for Android.
I install according to help the CT.
I compiled successfully my testing appl project1 folling this help:
www.pilotlogic.com/sitejoom/index.php/co...phon/codetyphon-help

But i cant'find how to copy the newly created appl to android emulator (the one of sdk) in order to test it.
-is the android appl the file project1 (without postfix)?
-Is there somewhere else any project1.apk file? ( didn't managed to find)

Please help with some instructions.
Maybe for other the answer is obvious but i am stuck

Thanks in advance

PS:
My Dev PC is Win7 64 bit.
The cross build i used is Win32 to arm as in above mentionned help


Aiasmer
Athens, Greece

Please Log in or Create an account to join the conversation.

Transfer of cross built appl. to android emulator 11 years 11 months ago #2818

  • Marius
  • Marius's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 1
I have the same problem, i have registred to start a similar thread but i found yours.
I have also tried to build a gui application and run it from the phone without success.
However, i have created a "Program" type application and compiled without error using same guide like yours. The program does nothing but has a Writeln command.
I have copied to the sdcard of the phone but i have failed to make it executable.
You have to be rooted and copy the program to "/data/local" and there you must make it executable with "chmod 755 project1"
And then you can run the program as a normal user using "/data/local/project1"

Summary ( you need root and adjust the sdcard folder in the commands below):
1. Copy program (project1) to the sdcard of your phone
2. Run "Terminal Emulator" - Free on GPlay
3.
$ su
   # cp /sdcard/project1 /data/local/project1
   # cd /data/local
   # chmod 755 project1
   # exit
   $ /data/local/project1
:woohoo:

Now, we need somone to help us combine first guide with this one, to be able to build the apk.
wiki.lazarus.freepascal.org/Custom_Drawn...K_package_in_Windows

Please, help. :(
Thanks.

Please Log in or Create an account to join the conversation.

Transfer of cross built appl. to android emulator 11 years 11 months ago #2821

  • Aleksandar
  • Aleksandar's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31

mdalacu wrote: I have the same problem, i have registred to start a similar thread but i found yours.
I have also tried to build a gui application and run it from the phone without success.
However, i have created a "Program" type application and compiled without error using same guide like yours. The program does nothing but has a Writeln command.
I have copied to the sdcard of the phone but i have failed to make it executable.
You have to be rooted and copy the program to "/data/local" and there you must make it executable with "chmod 755 project1"
And then you can run the program as a normal user using "/data/local/project1"

Summary ( you need root and adjust the sdcard folder in the commands below):
1. Copy program (project1) to the sdcard of your phone
2. Run "Terminal Emulator" - Free on GPlay
3.

$ su
   # cp /sdcard/project1 /data/local/project1
   # cd /data/local
   # chmod 755 project1
   # exit
   $ /data/local/project1
:woohoo:

Now, we need somone to help us combine first guide with this one, to be able to build the apk.
wiki.lazarus.freepascal.org/Custom_Drawn...K_package_in_Windows

Please, help. :(
Thanks.


I made some research yesterday when I tired to compile sample Android app that came with Lazarus itself (more info on compilation itself here ).

I also noticed that we need to compile .so library and then to make APK with some utils. If you compile application, that will not work.

More info on APK making here

APK need to be signed, so you first need to make signature file (debug key).

It is possible that those utils do not work with JDK 1.7, so you maybe have to install JDK (or JRE) 1.6.

You need to customize those bat files to correspond your paths.

Unfortunately I have some deadlines and haven't work for few days, so I can not test this more myself.

Please let us know if you succeed with this.

Please Log in or Create an account to join the conversation.

Last edit: by Aleksandar.

Transfer of cross built appl. to android emulator 11 years 9 months ago #3114

  • slot
  • slot's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1
Hi

I'm trying to run application on android emulator. Lazarus compile project1 sucessfully but after this:

$ su
# cp /sdcard/project1 /data/local/project1
# cd /data/local
# chmod 755 project1
# exit
$ /data/local/project1


i got /data/local/project1: not found.

How to run it properly?


Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by slot.

Transfer of cross built appl. to android emulator 11 years 9 months ago #3115

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
try
chmod 777 project1
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Transfer of cross built appl. to android emulator 11 years 9 months ago #3116

  • slot
  • slot's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 1

try
chmod 777 project1


the same result:
/data/local/project1: not found

but thank you for advice

Please Log in or Create an account to join the conversation.

Transfer of cross built appl. to android emulator 11 years 8 months ago #3388

  • zeljko
  • zeljko's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38

File Attachment:

File Name: examp_android.zip
File Size:42 KB

send android application work android emulator

Please Log in or Create an account to join the conversation.

Last edit: by zeljko.
  • Page:
  • 1