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

TOPIC:

need help to compile android example. 11 years 7 months ago #3592

  • sam
  • sam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
This is my current CodeTyphon setup:



This is are the project compiler settings of project androidlcltest.



If I press button "Test" inside this dialog I get the following output:

WARNING: include search path does not exists: /usr/lib/codetyphon/lazarus/examples/androidlcl/lib/arm-linux
WARNING: unit search path does not exists: /usr/lib/codetyphon/lazarus/lcl/units/arm-linux/customdrawn
WARNING: unit search path does not exists: /usr/lib/codetyphon/lazarus/lcl/units/arm-linux
WARNING: unit search path does not exists: /usr/lib/codetyphon/lazarus/components/lazutils/lib/arm-linux
HINT: using config file /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg
ERROR: compiled FPC unit not found: system.ppu
ERROR: compiled FPC unit not found: sysutils.ppu
ERROR: compiled FPC unit not found: classes.ppu
ERROR: compiled FPC unit not found: avl_tree.ppu
ERROR: compiled FPC unit not found: zstream.ppu

Any hint what is wrong here?

Thank you.

/usr/lib/codetyphon/fpc/bin/i386-linux/fpc -MObjFPC -Scghi -O1 -Tlinux -Parm -Xs -va -Fi/usr/lib/codetyphon/lazarus/examples/androidlcl/lib/arm-linux -Fl/home/sam/Downloads/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib -Fl/home/sam/Downloads/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3 -Fu/usr/lib/codetyphon/lazarus/lcl/units/arm-linux/customdrawn -Fu/usr/lib/codetyphon/lazarus/lcl/units/arm-linux -Fu/usr/lib/codetyphon/lazarus/components/lazutils/lib/arm-linux -Fu/usr/lib/codetyphon/lazarus/packager/units/arm-linux -Fu/usr/lib/codetyphon/lazarus/examples/androidlcl/ -FU/usr/lib/codetyphon/lazarus/examples/androidlcl/lib/arm-linux/ -l -dLCL -dLCLcustomdrawn -dANDROID -Xd -CpARMV6 /tmp/testcompileroptions.pas

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

Last edit: by sam.

need help to compile android example. 11 years 6 months ago #3769

  • sam
  • sam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
Still no success with Codetyphon 4.2.









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

need help to compile android example. 11 years 6 months ago #3770

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
FreePascal 2.7.1 support native
arm-android
i386-android
mipsel-android

For arm-linux request:
arm-linux-androideabi-as
arm-linux-androideabi-id

Toolchain from Android NDK

The problem is that Lazarus request :
arm-android-as and
arm-android-id

one solution is to rename
arm-linux-androideabi-as and
arm-linux-androideabi-id

to

arm-android-as and
arm-android-id

at /usr/lib/codetyphon/fpc/bin/i386-linux/

But, my suggestion is to wait for new CT version 4.30, we solve all these problems...
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

need help to compile android example. 11 years 6 months ago #3771

  • sam
  • sam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
Thanks, I will wait for CT 4.30.

By the way. How can I make a donation to your project?

Regards,

Sam

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

need help to compile android example. 11 years 6 months ago #3772

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
At "About us" page
PilotLogic Architect and Core Programmer

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

need help to compile android example. 11 years 6 months ago #3795

  • sam
  • sam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
Hi,


Renaming of the two files did help a little.

When I try to compile the androidlcltest example now , then I get the

../../../fpcsrc/packages/fcl-db/src/base/bufdataset_parser.pp(13,3) Fatal: Can't find unit dbf_prscore used by bufdataset_parser

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

need help to compile android example. 11 years 6 months ago #3799

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Original FreePascal 2.7.1 "trunk" build only RTL for Cross-Build Targets

CodeTyphon FreePascal can build all FreePascal packages for Cross-Build Targets
We use our FPC makefiles building system.

We fix this problem to CT 4.30 and we add android-ndk-r8e toolchains

Please wait for this release
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

need help to compile android example. 11 years 5 months ago #4112

  • sam
  • sam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
Hi,

I tried today again with 4.30 and now I am stuck here when trying to compile the example "androidlcltest".

sqlitejniandroid.pas(41,22) Fatal: Can not find unit CustomSqliteDS used by sqlitejniandroid.

Any idea?

Thanks.

[Edit 01]: Had to add ../../../../fpcsrc/packages/fcl-db/src/sqlite to the -Fu path setting.

Now it stops here:

/usr/lib/codetyphon/fpc/bin/i386-linux/arm-android-ld: error: /usr/lib/codetyphon/CodeOcean/2_Basics/samples/androidlcl/android/libs/armeabi/link.res:351:8: syntax error, unexpected STRING

Any idea?

[Edit 02]: I had to rename /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-androideabi-ld.bfd to arm-android-ld.bfd




Now I get: Projekt "androidlcltest" erfolgreich kompiliert. :)
But!!! Where is the compiled output-file and what's the name of that binary??????

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

Last edit: by sam.

need help to compile android example. 11 years 4 months ago #4280

  • Nicola Gorlandi
  • Nicola Gorlandi's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
You can found it in the android\libs\armeabi\ sub directory, the file is named liblclapp without extension.. (see in Project Option, path -o option)

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

  • Page:
  • 1